Skip to content

Commit 6a6f24e

Browse files
committed
moved script load, improved color names
1 parent f71094a commit 6a6f24e

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

assets/scss/pages/post.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $tocBreakpoint: 1024px;
3737

3838
.anchor:hover {
3939
@include theme() {
40-
color: theme-get('light-text');
40+
color: theme-get('high-neutral');
4141
}
4242
}
4343
}
@@ -49,7 +49,7 @@ $tocBreakpoint: 1024px;
4949

5050
a {
5151
@include theme() {
52-
color: theme-get('light-text');
52+
color: theme-get('high-neutral');
5353
}
5454
text-decoration: underline;
5555
}
@@ -237,7 +237,7 @@ footer {
237237
&::before {
238238
content: "-";
239239
@include theme() {
240-
color: theme-get('light-text');
240+
color: theme-get('high-neutral');
241241
}
242242
position: absolute;
243243
margin-left: -15px;
@@ -266,7 +266,7 @@ table {
266266

267267
thead {
268268
@include theme() {
269-
background: theme-get('dark-bg');
269+
background: theme-get('low-neutral');
270270
}
271271
}
272272

assets/scss/pages/posts.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
@include theme() {
4848
color: theme-get('neutral');
4949
&:hover {
50-
color: theme-get('light-text');
50+
color: theme-get('high-neutral');
5151
}
5252
}
5353
}

assets/scss/partials/_nav.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
}
1212
visibility: hidden;
1313
z-index: 1;
14-
1514
@media screen and (min-width: $medium) {
1615
display: block;
1716
visibility: visible;

assets/scss/partials/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ blockquote {
106106
font-style: italic;
107107
font-size: 0.95em;
108108
@include theme() {
109-
color: theme-get('light-text');
109+
color: theme-get('high-neutral');
110110
}
111111
}
112112
}

assets/scss/partials/_vars.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ $large: 1400px;
2525
$themes: (
2626
lightTheme: (
2727
text: #111,
28-
dark-bg: #f7f7f7,
28+
low-neutral: #f7f7f7,
2929
neutral-table-border: #eeeeee,
3030
neutral: #9b9b9b,
31-
light-text: #717171,
31+
high-neutral: #717171,
3232
bg: #fff,
3333
accent: #9013FE,
3434
accent-text: #580E99,
3535
accent-bg: #A56AD9,
3636
),
3737
darkTheme: (
3838
text: #fff,
39-
dark-bg: #717171,
39+
low-neutral: #717171,
4040
neutral-table-border: #eeeeee,
4141
neutral: #9b9b9b,
42-
light-text: #f7f7f7,
42+
high-neutral: #f7f7f7,
4343
bg: #111,
4444
accent: #9013FE,
4545
accent-text: #A56AD9,

layouts/_default/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!DOCTYPE html>
2-
<html lang="{{ .Site.LanguageCode }}" class="lightTheme" id="theme">
2+
<script src="/js/dark-mode.js"></script>
3+
<html lang="{{ .Site.LanguageCode }}" id="theme">
34

45
<head>
56
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
@@ -60,7 +61,6 @@
6061

6162
{{ $script := resources.Get "js/index.js" | minify | fingerprint }}
6263
<script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity | safeHTMLAttr }}" crossorigin="anonymous"></script>
63-
<script src="/js/dark-mode.js"></script>
6464
{{ block "scripts" . }} {{ end }}
6565
</body>
6666

0 commit comments

Comments
 (0)