mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: use _variables.scss overrides from acp in custom skins and bootswatch skins as well
This commit is contained in:
@@ -56,9 +56,15 @@ function boostrapImport(themeData) {
|
|||||||
function bsvariables() {
|
function bsvariables() {
|
||||||
if (bootswatchSkin) {
|
if (bootswatchSkin) {
|
||||||
if (isCustomSkin) {
|
if (isCustomSkin) {
|
||||||
return themeData._variables || '';
|
return `
|
||||||
|
${bsVariables}
|
||||||
|
${themeData._variables || ''}
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
return `@import "bootswatch/dist/${bootswatchSkin}/variables";`;
|
return `
|
||||||
|
${bsVariables}
|
||||||
|
@import "bootswatch/dist/${bootswatchSkin}/variables";
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
return bsVariables;
|
return bsVariables;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user