Ver Fonte

define custom properties into :root

Gildas há 7 anos atrás
pai
commit
b380ab7e7e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -903,7 +903,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				}
 			}));
 			if (indexVariable) {
-				stylesheetContent = "html{" + stylesheetContent;
+				stylesheetContent = ":root{" + stylesheetContent;
 			}
 			return stylesheetContent;
 		}