Also set the color of the iframe's font (#1934)

(remove prettier:check from npm test, as the output is not helpful at all - whereas xo's output will tell the user what prettier is complaining about)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2021-10-23 19:21:19 +01:00
committed by GitHub
parent bce2476d78
commit e53f7e674e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
"prettier:fix": "prettier --write \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**/*.js\"",
"xo": "xo",
"xo:fix": "npm run xo -- --fix",
"test": "npm run prettier:check && npm run xo"
"test": "npm run xo"
},
"devDependencies": {
"autoprefixer": "^10.3.7",
+1
View File
@@ -31,6 +31,7 @@ $(function () {
var font = {
"font-family": $("pre").css("font-family"),
"font-size": $("pre").css("font-size"),
color: $("pre").css("color"),
};
var contents = $(this).contents();
contents.find("body").css(font);