summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/SCSSCacher.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-08-29 16:46:12 +0200
committerJulius Härtl <jus@bitgrid.net>2018-08-29 16:47:39 +0200
commite8938df1986c4b52fc1f5c9afe4cc4078ea86e4c (patch)
treec4da4127667493aac996368470b0e3832b5a69c1 /lib/private/Template/SCSSCacher.php
parent27141a960ffbbeca2fcd9693ce6fac3a49991141 (diff)
downloadnextcloud-server-e8938df1986c4b52fc1f5c9afe4cc4078ea86e4c.tar.gz
nextcloud-server-e8938df1986c4b52fc1f5c9afe4cc4078ea86e4c.zip
Move SCSS variable fetching before the variables.scss to properly calculate color values
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Template/SCSSCacher.php')
-rw-r--r--lib/private/Template/SCSSCacher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 19734355d26..c4f89a9c63c 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -284,9 +284,9 @@ class SCSSCacher {
try {
$compiledScss = $scss->compile(
'$webroot: \'' . $this->getRoutePrefix() . '\';' .
+ $this->getInjectedVariables() .
'@import "variables.scss";' .
'@import "functions.scss";' .
- $this->getInjectedVariables() .
'@import "' . $fileNameSCSS . '";');
} catch (ParserException $e) {
$this->logger->error($e, ['app' => 'core']);
@@ -349,7 +349,7 @@ class SCSSCacher {
}
$variables = '';
foreach ($this->defaults->getScssVariables() as $key => $value) {
- $variables .= '$' . $key . ': ' . $value . ';';
+ $variables .= '$' . $key . ': ' . $value . ' !default;';
}
// check for valid variables / otherwise fall back to defaults