Remove scss_raw setting option
This commit is contained in:
parent
201af9473e
commit
522e798669
|
@ -92,7 +92,7 @@ export default class ThemeManager extends ContentManager {
|
|||
}
|
||||
|
||||
if (typeof value === 'string') {
|
||||
return `$${name}: ${setting.scss_raw ? value : `'${setting.value.replace(/\\/g, '\\\\').replace(/'/g, '\\\'')}'`};`;
|
||||
return `$${name}: '${setting.value.replace(/\\/g, '\\\\').replace(/'/g, '\\\'')}';`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
"type": "text",
|
||||
"value": "#00ff00",
|
||||
"text": "Primary colour",
|
||||
"hint": "A colour setting type would be nice here",
|
||||
"scss_raw": true
|
||||
"hint": "A colour setting type would be nice here"
|
||||
},
|
||||
{
|
||||
"id": "additional-colours",
|
||||
|
@ -33,8 +32,7 @@
|
|||
{
|
||||
"id": "colour",
|
||||
"type": "text",
|
||||
"value": "#ff0000",
|
||||
"scss_raw": true
|
||||
"value": "#ff0000"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@import 'vars.scss';
|
||||
|
||||
div {
|
||||
background: $divBg;
|
||||
background: unquote($divBg);
|
||||
}
|
||||
|
||||
span {
|
||||
|
|
Loading…
Reference in New Issue