Browse Source

define custom properties into :root

Gildas 7 năm trước cách đây
mục cha
commit
b380ab7e7e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 		}