Skip to content

Commit

Permalink
moved script load, improved color names
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwa35 committed Aug 9, 2020
1 parent f71094a commit 6a6f24e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions assets/scss/pages/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $tocBreakpoint: 1024px;

.anchor:hover {
@include theme() {
color: theme-get('light-text');
color: theme-get('high-neutral');
}
}
}
Expand All @@ -49,7 +49,7 @@ $tocBreakpoint: 1024px;

a {
@include theme() {
color: theme-get('light-text');
color: theme-get('high-neutral');
}
text-decoration: underline;
}
Expand Down Expand Up @@ -237,7 +237,7 @@ footer {
&::before {
content: "-";
@include theme() {
color: theme-get('light-text');
color: theme-get('high-neutral');
}
position: absolute;
margin-left: -15px;
Expand Down Expand Up @@ -266,7 +266,7 @@ table {

thead {
@include theme() {
background: theme-get('dark-bg');
background: theme-get('low-neutral');
}
}

Expand Down
2 changes: 1 addition & 1 deletion assets/scss/pages/posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@include theme() {
color: theme-get('neutral');
&:hover {
color: theme-get('light-text');
color: theme-get('high-neutral');
}
}
}
Expand Down
1 change: 0 additions & 1 deletion assets/scss/partials/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
}
visibility: hidden;
z-index: 1;

@media screen and (min-width: $medium) {
display: block;
visibility: visible;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/partials/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ blockquote {
font-style: italic;
font-size: 0.95em;
@include theme() {
color: theme-get('light-text');
color: theme-get('high-neutral');
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions assets/scss/partials/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ $large: 1400px;
$themes: (
lightTheme: (
text: #111,
dark-bg: #f7f7f7,
low-neutral: #f7f7f7,
neutral-table-border: #eeeeee,
neutral: #9b9b9b,
light-text: #717171,
high-neutral: #717171,
bg: #fff,
accent: #9013FE,
accent-text: #580E99,
accent-bg: #A56AD9,
),
darkTheme: (
text: #fff,
dark-bg: #717171,
low-neutral: #717171,
neutral-table-border: #eeeeee,
neutral: #9b9b9b,
light-text: #f7f7f7,
high-neutral: #f7f7f7,
bg: #111,
accent: #9013FE,
accent-text: #A56AD9,
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" class="lightTheme" id="theme">
<script src="/js/dark-mode.js"></script>
<html lang="{{ .Site.LanguageCode }}" id="theme">

<head>
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
Expand Down Expand Up @@ -60,7 +61,6 @@

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

Expand Down

0 comments on commit 6a6f24e

Please sign in to comment.