summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-24 14:10:57 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-24 14:10:57 +0800
commitcda49e03018d3dbbe8b9dc3927719471150c1608 (patch)
treea94523d13898c106c90e4d9285cf6136d45b7a33 /assets/css
parent92840887d2591d8ba9b92074e193ef1a922c118d (diff)
update: perfect animation, compatibility issue
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/main.scss25
1 files changed, 25 insertions, 0 deletions
diff --git a/assets/css/main.scss b/assets/css/main.scss
new file mode 100644
index 0000000..112a9ef
--- /dev/null
+++ b/assets/css/main.scss
@@ -0,0 +1,25 @@
+---
+# Only the main Sass file needs front matter (the dashes are enough)
+---
+
+// Default theme colors
+$theme-colors: (
+ spacegrey: #353535,
+ inkpurple: #543581,
+ aquablue: #00aaa0,
+ azureblue: #2863b1,
+ gracered: #a12a50,
+ aloegreen: #3d9e56,
+ rustbrown: #795548,
+);
+
+$theme-name: "{{ site.theme_color }}";
+$theme-color: map-get($theme-colors, "spacegrey");
+
+@if map-has-key($theme-colors, $theme-name) {
+ $theme-color: map-get($theme-colors, $theme-name);
+} @else if str-index($theme-name, "#") == 1 {
+ $theme-color: {{ site.theme_color | default: '#353535' }};
+}
+
+@import "yat";