Skip to content

Commit f2be28f

Browse files
committed
Fix icons
1 parent cabe9f7 commit f2be28f

File tree

7 files changed

+20
-38
lines changed

7 files changed

+20
-38
lines changed

_includes/theme-toggle.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@
1616
</div>
1717
<script type="text/javascript">
1818
const theme = localStorage.getItem('theme');
19-
if (theme === 'undefined') {
20-
theme = "dark";
21-
}
22-
if (theme === "dark") {
23-
document.documentElement.setAttribute('data-theme', 'dark');
24-
} else {
19+
20+
if (theme === "light") {
2521
document.documentElement.setAttribute('data-theme', 'light');
22+
} else {
23+
document.documentElement.setAttribute('data-theme', 'dark');
2624
}
2725
const userPrefers = getComputedStyle(document.documentElement).getPropertyValue('content');
2826

_sass/dash.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ $spacing-unit: 30px !default;
3636
@import
3737
"fa/fontawesome",
3838
"fa/solid",
39+
"fa/regular",
3940
"fa/brands",
4041
"dash/fonts",
4142
"dash/icons",

_sass/dash/_icons.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// Font Awesome Icons
22

3-
$icon-quote-right: "\f10e";
4-
$icon-chevron-right: "\f054";
5-
$icon-check: "\f00c";
6-
$icon-minus: "\f068";
7-
$icon-flask: "\f0c3";
8-
$icon-tag: "\f02b";
9-
$icon-lightbulb: "\f02b";
3+
$icon-quote-right: fa-content($fa-var-quote-right);
4+
$icon-chevron-right: fa-content($fa-var-chevron-right);
5+
$icon-check: fa-content($fa-var-check);
6+
$icon-minus: fa-content($fa-var-minus);
7+
$icon-flask: fa-content($fa-var-flask);
8+
$icon-tag: fa-content($fa-var-tag);

_sass/dash/_layout.scss

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,12 @@
1313
.command_prompt {
1414
color: $color-blue;
1515
font-size: $base-font-size;
16-
17-
svg {
18-
width: 20px;
19-
height: 20px;
20-
margin-bottom: -1px;
21-
margin-left: 1px;
22-
}
16+
margin-left: 0.1em;
2317

2418
&:before {
2519
content: $icon-chevron-right;
2620
@include font-awesome-icon;
21+
margin-right: 0.2em;
2722
}
2823
}
2924
}
@@ -98,12 +93,7 @@
9893
width: 100%;
9994
animation: type 2s steps(60, end);
10095
margin-bottom: 1em;
101-
102-
& > svg {
103-
color: $color-blue;
104-
margin-right: 0.6em;
105-
margin-bottom: -1px;
106-
}
96+
margin-left: 0.5em;
10797

10898
&:after {
10999
content: "_";
@@ -114,6 +104,8 @@
114104
&:before {
115105
content: $icon-chevron-right;
116106
@include font-awesome-icon;
107+
margin-right: 0.5em;
108+
color: $color-blue;
117109
}
118110
}
119111

@@ -267,6 +259,7 @@
267259
&:before {
268260
content: $icon-tag;
269261
@include font-awesome-icon;
262+
margin-right: 0.5em;
270263
}
271264
}
272265

@@ -365,17 +358,10 @@ ul.related-posts {
365358
margin: 0;
366359
}
367360

368-
& > svg.svg-inline--fa {
369-
color: $color-green;
370-
margin-right: 0.3em;
371-
width: 22px;
372-
height: 22px;
373-
margin-bottom: -2px;
374-
}
375-
376361
&:before {
377362
content: $icon-flask;
378363
@include font-awesome-icon;
364+
color: $color-green;
379365
}
380366
}
381367
}

_sass/dash/_mixins.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
font-variant: normal;
66
text-rendering: auto;
77
font-weight: 900;
8-
9-
display: none;
108
-webkit-font-smoothing: antialiased;
119
}
1210

_sass/dash/_themes.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $themes: (
33
background-color: $color-background-dark,
44
background-color-alt: $color-background-darker,
55
foreground-color: $color-foreground,
6-
foreground-color-alt: $color-foreground-dark,
6+
foreground-color-alt: lighten($color-foreground-dark, 10%),
77
foreground-color-contrast: white,
88
quote-primary: lighten($color-yellow, 20%),
99
quote-secondary: $color-yellow,

jekyll-dash.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-dash"
5-
spec.version = "1.3.1"
5+
spec.version = "1.3.2"
66
spec.authors = ["Miguel Gonzalez Sanchez"]
77
spec.email = ["[email protected]"]
88

0 commit comments

Comments
 (0)