Преглед на файлове

define custom properties into :root

Gildas преди 7 години
родител
ревизия
b380ab7e7e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
 		}