mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
Reading constants in SCSS, modifying colors for Derpibooru variant
This commit is contained in:
20
src/styles/environment.scss
Normal file
20
src/styles/environment.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
@use 'sass:meta';
|
||||
@use 'sass:string';
|
||||
|
||||
@function get-defined-constant($constant-name, $default-value: '') {
|
||||
$resolved-value: $default-value;
|
||||
|
||||
@if meta.function-exists('vite-read-env-variable') {
|
||||
$candidate-value: meta.call(meta.get-function('vite-read-env-variable'), $constant-name);
|
||||
|
||||
@if string.length($candidate-value) != 0 {
|
||||
$resolved-value: $candidate-value
|
||||
}
|
||||
}
|
||||
|
||||
@return $resolved-value;
|
||||
}
|
||||
|
||||
$current-site: get-defined-constant('__CURRENT_SITE__', 'furbooru');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user