1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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)
|