[Themes] Update bundle declarations
Update bundle declarations to provide a THEME constant for use in filtering out theme-specific CSS additions.
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
"runs": [
|
"runs": [
|
||||||
{
|
{
|
||||||
"implementation": "StyleSheetLoader.js",
|
"implementation": "StyleSheetLoader.js",
|
||||||
"depends": [ "stylesheets[]", "$document" ]
|
"depends": [ "stylesheets[]", "$document", "THEME" ]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stylesheets": [
|
"stylesheets": [
|
||||||
@@ -194,6 +194,11 @@
|
|||||||
{
|
{
|
||||||
"key": "MCT_SCROLL_Y_ATTRIBUTE",
|
"key": "MCT_SCROLL_Y_ATTRIBUTE",
|
||||||
"value": "mctScrollY"
|
"value": "mctScrollY"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "THEME",
|
||||||
|
"value": "unspecified",
|
||||||
|
"priority": "fallback"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"containers": [
|
"containers": [
|
||||||
|
|||||||
@@ -7,6 +7,12 @@
|
|||||||
"stylesheetUrl": "css/theme-espresso.css",
|
"stylesheetUrl": "css/theme-espresso.css",
|
||||||
"priority": 1000
|
"priority": 1000
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"constants": [
|
||||||
|
{
|
||||||
|
"key": "THEME",
|
||||||
|
"value": "espresso"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Sonw",
|
"name": "Snow",
|
||||||
"description": "Snow theme: light and cool",
|
"description": "Snow theme: light and cool",
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"stylesheets": [
|
"stylesheets": [
|
||||||
@@ -7,6 +7,12 @@
|
|||||||
"stylesheetUrl": "css/theme-snow.css",
|
"stylesheetUrl": "css/theme-snow.css",
|
||||||
"priority": 1000
|
"priority": 1000
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"constants": [
|
||||||
|
{
|
||||||
|
"key": "THEME",
|
||||||
|
"value": "snow"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user