Website Summary Files Commits Branches @commit @diff @stats
path: root / assets / sass / _variables.sass
diff options
context:
space:
mode:
Commit8dad1d1bd0bc7206f16323d220fdce73c400f470 (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Files1dd6b123977afd3e391f39e2bef68f7daa0cbecb /assets/sass/_variables.sass
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar.gz
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.zip
Squashed 'website/themes/hugo-clarity/' content from commit 4969d5a
git-subtree-dir: website/themes/hugo-clarity git-subtree-split: 4969d5a1fb2c358c00e2d7f6fc1e39024d7d2355
1 files changed, 118 insertions, 0 deletions
-rw-r--r--assets/sass/_variables.sass118
diff --git a/assets/sass/_variables.sass b/assets/sass/_variables.sass
new file mode 100644
index 0000000..d9646fe
--- /dev/null
+++ b/assets/sass/_variables.sass
@@ -0,0 +1,118 @@
+$font-path: '../fonts'
+$icons: '../icons/'
+$images: '../images/'
+
+$light: #fff
+$haze: #fafafa
+$xhaze: darken($haze, 11%)
+$bg: #002538
+$theme: #0077b8
+
+@mixin content()
+ --maxWidth: 1440px
+ max-width: var(--maxWidth)
+ margin-left: auto
+ margin-right: auto
+
+@mixin viewport($width: 1024px, $margin: 25px)
+ max-width: $width
+ margin: $margin auto
+ @content
+
+@mixin shadow($opacity: 0.17)
+ box-shadow: 0 0 3rem rgba(0,0,0,$opacity)
+ &:hover
+ box-shadow: 0 0 5rem rgba(0,0,0, (1.5 * $opacity))
+
+html
+ --color-mode: 'lit'
+ --light: #fff
+ --dark: #000
+ --bg: #002538
+ --haze: #f2f2f2
+ --gray: #020202
+ --accent: var(--gray)
+ --text: #575757
+ --header-text: var(--dark)
+ --font: 'Metropolis', sans-serif
+ --theme: #0077b8
+ --ease: cubic-bezier(.19,1,.22,1)
+ --code-bg: var(--bg)
+ --table-bg: var(--light)
+ --table-haze: var(--haze)
+ --table-border: #dedede
+ --footer-bg: var(--haze)
+ --shadow: rgba(0,0,0,0.12)
+ --translucent: rgba(0,0,0,0.05)
+ --translucent-light: rgba(255,255,255,0.05)
+ --post-bg: var(--light)
+ --choice-bg: var(--haze)
+ --ease: cubic-bezier(0.39, 0.575, 0.565, 1)
+ --easing: cubic-bezier(.19,1,.22,1)
+ &.page
+ --choice-bg: var(--light)
+ @mixin darkmode
+ --color-mode: 'dim'
+ --text: var(--light)
+ --accent: var(--bubble)
+ --choice-bg: var(--bg)
+ --code-bg: var(--translucent-light)
+ --header-text: var(--light)
+ --table-bg: var(--code-bg)
+ --table-haze: rgba(255,255,255,0.1)
+ --table-border: var(--code-bg)
+ --footer-bg: var(--bg)
+ --post-bg: var(--translucent-light)
+ *
+ box-shadow: none !important
+
+
+ &[data-mode="dim"]
+ @include darkmode
+ blockquote
+ background: var(--translucent-light)
+ color: #dedede
+ svg.icon
+ fill: var(--light)
+ img:not(.nav_icon):not(.transparent)
+ // background: var(--light)
+ .icon
+ img
+ background: none
+ svg
+ fill: #fafafa
+ .sidebar
+ &_inner
+ &::before
+ display: none
+ .color
+ &_choice
+ &::after
+ background-image: url("#{$images}night-moon.jpg")
+ transform: translateX(1.4rem)
+
+ @media (prefers-color-scheme: dark)
+
+ &:not([data-mode="lit"])
+ @include darkmode
+ blockquote
+ background: var(--translucent-light)
+ color: #dedede
+ svg.icon
+ fill: var(--light)
+ img:not(.nav_icon):not(.transparent)
+ // background: var(--light)
+ .icon
+ img
+ background: none
+ svg
+ fill: #fafafa
+ .sidebar
+ &_inner
+ &::before
+ display: none
+ .color
+ &_choice
+ &::after
+ background-image: url("#{$images}night-moon.jpg")
+ transform: translateX(1.4rem)