mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36: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() {
|
||||
if (bootswatchSkin) {
|
||||
if (isCustomSkin) {
|
||||
return themeData._variables || '';
|
||||
return `
|
||||
${bsVariables}
|
||||
${themeData._variables || ''}
|
||||
`;
|
||||
}
|
||||
return `@import "bootswatch/dist/${bootswatchSkin}/variables";`;
|
||||
return `
|
||||
${bsVariables}
|
||||
@import "bootswatch/dist/${bootswatchSkin}/variables";
|
||||
`;
|
||||
}
|
||||
return bsVariables;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user