Remove scss_raw setting option

This commit is contained in:
Samuel Elliott 2018-02-19 23:54:37 +00:00
parent 201af9473e
commit 522e798669
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
3 changed files with 4 additions and 6 deletions

View File

@ -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, '\\\'')}';`;
}
}

View File

@ -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"
}
]
}

View File

@ -1,7 +1,7 @@
@import 'vars.scss';
div {
background: $divBg;
background: unquote($divBg);
}
span {