Przeglądaj źródła

define custom properties into :root

Gildas 7 lat temu
rodzic
commit
b380ab7e7e
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
 		}