materialize-jekyll 1.2.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/footer.html +1 -0
- data/_includes/navbar.html +2 -1
- data/_layouts/home.html +0 -5
- data/_layouts/post.html +17 -22
- data/_sass/_author.scss +1 -1
- data/_sass/_cards.scss +13 -7
- data/_sass/_navbar.scss +5 -4
- data/_sass/_post.scss +14 -2
- data/_sass/_tags.scss +7 -7
- data/_sass/_variables.scss +11 -0
- data/assets/css/main.scss +110 -3
- data/assets/img/icons/moon.svg +1 -0
- data/assets/img/icons/sun.svg +1 -0
- data/assets/js/mode-switcher.js +64 -0
- metadata +5 -4
- data/assets/.DS_Store +0 -0
- data/assets/img/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b791a3038cd8ef89f7c4fabdc506b718e8568c8d915b4a8ee294c5b8aef4612
|
4
|
+
data.tar.gz: 5ffab43ab0c4996c08966c0f52202d4ca4aaa4b8fe94c444cd7d202a73f9bf30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53f7f092b2383d8f214220f2ace4ccd0ee96d0cde24f6ebff8e6a869036909f76f295780a04c014b03b28180fb3e8b5770fca7cb83fb6ac3353301320251df59
|
7
|
+
data.tar.gz: d84faf6028fb081dac19b772420d1143946f6477579cc4355505cd7ee40d657127236e4f45f77b3cc633205fd9e7e710a0bb5391b9ae6f2912f72424f18cca89
|
data/_includes/footer.html
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
<script src="https://unpkg.com/scrollreveal/dist/scrollreveal.min.js"></script>
|
15
15
|
<script src="{{ "/assets/js/vendor/masonry.pkgd.min.js" | prepend: site.baseurl }}"></script>
|
16
16
|
<script src="{{ "/assets/js/init.js" | prepend: site.baseurl }}"></script>
|
17
|
+
<script src="{{ "/assets/js/mode-switcher.js" | prepend: site.baseurl }}"></script>
|
17
18
|
{% include stats.html %}
|
18
19
|
</body>
|
19
20
|
</html>
|
data/_includes/navbar.html
CHANGED
data/_layouts/home.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -5,30 +5,25 @@ layout: default
|
|
5
5
|
|
6
6
|
<header id="top-bar" class="main-top"></header>
|
7
7
|
<div class="container container-main">
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
<div class="post content">
|
9
|
+
<div class="row">
|
10
|
+
<div class="col s12 m12">
|
11
11
|
<div class="col s10 offset-s1" >
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
<h2 class="post-title col s12 center-align">{{ page.title }}</h2>
|
13
|
+
<div class="col s12">
|
14
|
+
<div class="grey-text text-lighten-1 center-align valign post-specs">
|
15
|
+
<i class="material-icons">today </i> {% include date.html date=page.date %} — <i class="material-icons">access_time </i> {{ minutesText }}
|
16
|
+
</div>
|
16
17
|
</div>
|
17
|
-
<
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
{% include share.html %}
|
30
|
-
{% include author.html %}
|
31
|
-
</div>
|
18
|
+
<p class="flow-text grey-text text-lighten-1 col s12">{{ page.introduction }}</p>
|
19
|
+
<img class="center-align" style="width: 100%;" src="{{ page.image }}">
|
20
|
+
{{ content }}
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
{% include share.html %}
|
25
|
+
{% include author.html %}
|
26
|
+
</div>
|
32
27
|
</div>
|
33
28
|
|
34
29
|
{% include comments.html %}
|
data/_sass/_author.scss
CHANGED
data/_sass/_cards.scss
CHANGED
@@ -21,21 +21,15 @@
|
|
21
21
|
transition: 0.4s ease;
|
22
22
|
}
|
23
23
|
|
24
|
-
.btm-menu {
|
25
24
|
.btn-floating {
|
26
|
-
background-color:
|
25
|
+
background-color: var(--secondary-color);
|
27
26
|
}
|
28
|
-
}
|
29
27
|
.nested-btn {
|
30
28
|
width: 36px !important;
|
31
29
|
height: 22px !important;
|
32
30
|
margin-top: 8px;
|
33
31
|
}
|
34
32
|
|
35
|
-
.post-description {
|
36
|
-
color: rgba(0, 0, 0, 0.87) !important;
|
37
|
-
}
|
38
|
-
|
39
33
|
.read-more {
|
40
34
|
color: $mainColor !important;
|
41
35
|
}
|
@@ -43,3 +37,15 @@
|
|
43
37
|
a.post-link {
|
44
38
|
text-decoration: none;
|
45
39
|
}
|
40
|
+
|
41
|
+
.card-content {
|
42
|
+
background-color: var(--card-color);
|
43
|
+
|
44
|
+
.card-title {
|
45
|
+
color: var(--main-text-color);
|
46
|
+
}
|
47
|
+
|
48
|
+
.post-description {
|
49
|
+
color: var(--main-text-color) !important;
|
50
|
+
}
|
51
|
+
}
|
data/_sass/_navbar.scss
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
.nav-wrapper {
|
2
2
|
z-index: 150;
|
3
|
-
background-color:
|
3
|
+
background-color: var(--main-color);
|
4
4
|
|
5
5
|
li a {
|
6
|
-
color:
|
6
|
+
color: var(--ligther-main-color);
|
7
7
|
}
|
8
8
|
|
9
9
|
#nav-mobile {
|
10
|
+
background-color: var(--main-background-color);
|
10
11
|
a {
|
11
|
-
color:
|
12
|
+
color: var(--text-color);
|
12
13
|
}
|
13
14
|
}
|
14
15
|
}
|
@@ -30,7 +31,7 @@
|
|
30
31
|
}
|
31
32
|
|
32
33
|
.button-collapse {
|
33
|
-
color:
|
34
|
+
color: var(--ligther-main-color);
|
34
35
|
}
|
35
36
|
|
36
37
|
@media only screen and (max-width : 537px) {
|
data/_sass/_post.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
.main-top {
|
2
|
-
background-color:
|
2
|
+
background-color: var(--ligther-main-color);
|
3
3
|
height: 200px;
|
4
4
|
float: left;
|
5
5
|
width: 100%;
|
@@ -8,7 +8,7 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.content {
|
11
|
-
background-color:
|
11
|
+
background-color: var(--card-color);
|
12
12
|
box-shadow: 5px 10px 15px 5px rgba(0, 0, 0, 0.26);
|
13
13
|
border-radius: 2px;
|
14
14
|
overflow: hidden;
|
@@ -20,6 +20,7 @@
|
|
20
20
|
display: inline-block;
|
21
21
|
padding: 50px 0 0 0;
|
22
22
|
max-width: 100%;
|
23
|
+
color: var(--main-text-color);
|
23
24
|
}
|
24
25
|
|
25
26
|
.post > .row {
|
@@ -46,6 +47,10 @@ section {
|
|
46
47
|
.blog-post-img img {
|
47
48
|
width: 100%;
|
48
49
|
}
|
50
|
+
|
51
|
+
.post-specs {
|
52
|
+
font-size: .8em;
|
53
|
+
}
|
49
54
|
}
|
50
55
|
|
51
56
|
.browser-default > li {
|
@@ -54,3 +59,10 @@ section {
|
|
54
59
|
font-size: 1.25rem;
|
55
60
|
letter-spacing: 0.1rem;
|
56
61
|
}
|
62
|
+
|
63
|
+
.material-icons {
|
64
|
+
display: inline-flex;
|
65
|
+
align-items: center;
|
66
|
+
justify-content: center;
|
67
|
+
vertical-align: middle;
|
68
|
+
}
|
data/_sass/_tags.scss
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
li {
|
13
13
|
transition: 0.4s ease;
|
14
14
|
margin-bottom: 50px;
|
15
|
-
border-bottom: 1px solid
|
15
|
+
border-bottom: 1px solid var(--ligther-main-color);
|
16
16
|
line-height: 50px;
|
17
17
|
}
|
18
18
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
.post-title {
|
24
24
|
font-size: 20px;
|
25
|
-
color:
|
25
|
+
color: var(--ligther-main-color);
|
26
26
|
font-weight: 300;
|
27
27
|
border-bottom: 5px;
|
28
28
|
.entry-date{
|
@@ -35,22 +35,22 @@
|
|
35
35
|
}
|
36
36
|
|
37
37
|
.chip {
|
38
|
-
color:
|
39
|
-
background:
|
40
|
-
border:
|
38
|
+
color: var(--secondary-color);
|
39
|
+
background-color: var(--card-color);
|
40
|
+
border: var(--secondary-color) solid 1px;
|
41
41
|
transition: background-color 0.4s ease;
|
42
42
|
transition: border-color 0.4s ease;
|
43
43
|
transition: color 0.4s ease;
|
44
44
|
}
|
45
45
|
|
46
46
|
.chip:hover {
|
47
|
-
background:
|
47
|
+
background: var(--secondary-color);
|
48
48
|
color: #fff;
|
49
49
|
border: #e4e4e4 solid 1px;
|
50
50
|
}
|
51
51
|
|
52
52
|
.chip.active {
|
53
|
-
background:
|
53
|
+
background: var(--secondary-color);
|
54
54
|
color: #fff;
|
55
55
|
border: #e4e4e4 solid 1px;
|
56
56
|
}
|
data/_sass/_variables.scss
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
$mainColor: #8d6e63;
|
2
|
+
$cardColor: #fff;
|
3
|
+
$textColor: #000;
|
2
4
|
$lightMainColor: #bcaaa4;
|
3
5
|
$lighterMainColor: #d7ccc8;
|
6
|
+
$background: #fff;
|
4
7
|
$secondaryColor: #26a69a;
|
5
8
|
|
9
|
+
$darkMainColor: #3A3A3A;
|
10
|
+
$darkCardColor: #191919;
|
11
|
+
$darkTextColor: #e0e0e0;
|
12
|
+
$darkLightMainColor: #757575;
|
13
|
+
$darkLighterMainColor: #616161;
|
14
|
+
$darkBackground: #808080;
|
15
|
+
$darkSecondaryColor: #00796b;
|
16
|
+
|
6
17
|
$facebookColor: #3b5998;
|
7
18
|
$twitterColor: #55acee;
|
data/assets/css/main.scss
CHANGED
@@ -10,9 +10,41 @@
|
|
10
10
|
@import "post";
|
11
11
|
|
12
12
|
body {
|
13
|
+
background-color: var(--main-background-color);
|
13
14
|
display: flex;
|
14
15
|
min-height: 100vh;
|
15
16
|
flex-direction: column;
|
17
|
+
|
18
|
+
.highlighter-rouge {
|
19
|
+
color: #000;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
nav {
|
24
|
+
background-color: var(--main-color);
|
25
|
+
}
|
26
|
+
|
27
|
+
#theme-toggle {
|
28
|
+
&.dark {
|
29
|
+
background-color: var(--text-color);
|
30
|
+
mask: url(../img/icons/sun.svg) no-repeat;
|
31
|
+
-webkit-mask: url(../img/icons/sun.svg) no-repeat;
|
32
|
+
}
|
33
|
+
&.light {
|
34
|
+
background-color: #757575;
|
35
|
+
mask: url(../img/icons/moon.svg) no-repeat;
|
36
|
+
-webkit-mask: url(../img/icons/moon.svg) no-repeat;
|
37
|
+
}
|
38
|
+
right: 30px;
|
39
|
+
top: 75px;
|
40
|
+
position: absolute;
|
41
|
+
display: inline-block;
|
42
|
+
width: 35px;
|
43
|
+
height: 35px;
|
44
|
+
-webkit-mask-size: contain;
|
45
|
+
mask-size: contain;
|
46
|
+
-webkit-mask-position: center;
|
47
|
+
mask-position: center;
|
16
48
|
}
|
17
49
|
|
18
50
|
main {
|
@@ -60,6 +92,11 @@ p {
|
|
60
92
|
.author-info {
|
61
93
|
text-align: center;
|
62
94
|
}
|
95
|
+
|
96
|
+
#theme-toggle {
|
97
|
+
top: 12px;
|
98
|
+
z-index: 1000;
|
99
|
+
}
|
63
100
|
}
|
64
101
|
|
65
102
|
@media screen and (max-width : 1250px ){
|
@@ -72,19 +109,89 @@ p {
|
|
72
109
|
.container-main {
|
73
110
|
width: 98%;
|
74
111
|
}
|
112
|
+
|
113
|
+
#top-bar {
|
114
|
+
padding-top: 0px;
|
115
|
+
height: 150px;
|
116
|
+
}
|
117
|
+
|
118
|
+
#theme-toggle {
|
119
|
+
position: fixed;
|
120
|
+
top: 16px;
|
121
|
+
z-index: 1000;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
@media screen and (max-width : 425px ){
|
126
|
+
#theme-toggle {
|
127
|
+
top: 12px;
|
128
|
+
}
|
75
129
|
}
|
76
130
|
|
77
131
|
footer.page-footer {
|
78
132
|
margin: 0;
|
79
133
|
padding-top: 0px;
|
80
|
-
background-color:
|
134
|
+
background-color: var(--main-color);
|
81
135
|
|
82
136
|
.footer-copyright {
|
83
|
-
background-color:
|
137
|
+
background-color: var(--main-color);
|
84
138
|
}
|
85
139
|
|
86
140
|
.container {
|
87
|
-
color:
|
141
|
+
color: var(--ligther-main-color);
|
88
142
|
}
|
89
143
|
}
|
90
144
|
|
145
|
+
html, html[data-theme="light"] {
|
146
|
+
--text-color: #{$textColor};
|
147
|
+
--main-color: #{$mainColor};
|
148
|
+
--card-color: #{$cardColor};
|
149
|
+
--main-background-color: #{$background};
|
150
|
+
--light-main-color: #{$lightMainColor};
|
151
|
+
--ligther-main-color: #{$lighterMainColor};
|
152
|
+
--main-text-color: #{$textColor};
|
153
|
+
--secondary-color: #{$secondaryColor};
|
154
|
+
}
|
155
|
+
|
156
|
+
html[data-theme="dark"] {
|
157
|
+
--text-color: #{$darkTextColor};
|
158
|
+
--main-color: #{$darkMainColor};
|
159
|
+
--card-color: #{$darkCardColor};
|
160
|
+
--main-background-color: #{$darkBackground};
|
161
|
+
--light-main-color: #{$darkLightMainColor};
|
162
|
+
--ligther-main-color: #{$darkLighterMainColor};
|
163
|
+
--main-text-color: #{$darkTextColor};
|
164
|
+
--secondary-color: #{$darkSecondaryColor};
|
165
|
+
}
|
166
|
+
|
167
|
+
@media (prefers-color-scheme: dark) {
|
168
|
+
html, html[data-theme="dark"] {
|
169
|
+
--text-color: #{$darkTextColor};
|
170
|
+
--main-color: #{$darkMainColor};
|
171
|
+
--card-color: #{$darkCardColor};
|
172
|
+
--main-background-color: #{$darkBackground};
|
173
|
+
--light-main-color: #{$darkLightMainColor};
|
174
|
+
--ligther-main-color: #{$darkLighterMainColor};
|
175
|
+
--main-text-color: #{$darkTextColor};
|
176
|
+
--secondary-color: #{$darkSecondaryColor};
|
177
|
+
}
|
178
|
+
|
179
|
+
html[data-theme="light"] {
|
180
|
+
--text-color: #{$textColor};
|
181
|
+
--main-color: #{$mainColor};
|
182
|
+
--card-color: #{$cardColor};
|
183
|
+
--main-background-color: #{$background};
|
184
|
+
--light-main-color: #{$lightMainColor};
|
185
|
+
--ligther-main-color: #{$lighterMainColor};
|
186
|
+
--main-text-color: #{$textColor};
|
187
|
+
--secondary-color: #{$secondaryColor};
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
html,
|
192
|
+
html *,
|
193
|
+
html *:before,
|
194
|
+
html *:after {
|
195
|
+
transition: color 1s !important;
|
196
|
+
transition: background-color 1s !important;
|
197
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 312.999 312.999"><path d="M305.6 178.053c-3.2-.8-6.4 0-9.2 2-10.4 8.8-22.4 16-35.6 20.8-12.4 4.8-26 7.2-40.4 7.2-32.4 0-62-13.2-83.2-34.4-21.2-21.2-34.4-50.8-34.4-83.2 0-13.6 2.4-26.8 6.4-38.8 4.4-12.8 10.8-24.4 19.2-34.4 3.6-4.4 2.8-10.8-1.6-14.4-2.8-2-6-2.8-9.2-2-34 9.2-63.6 29.6-84.8 56.8-20.4 26.8-32.8 60-32.8 96.4 0 43.6 17.6 83.2 46.4 112s68.4 46.4 112 46.4c36.8 0 70.8-12.8 98-34 27.6-21.6 47.6-52.4 56-87.6 2-6-1.2-11.6-6.8-12.8zm-61.2 83.6c-23.2 18.4-52.8 29.6-85.2 29.6-38 0-72.4-15.6-97.2-40.4-24.8-24.8-40.4-59.2-40.4-97.2 0-31.6 10.4-60.4 28.4-83.6 12.4-16 28-29.2 46-38.4-2 4.4-4 8.8-5.6 13.6-5.2 14.4-7.6 29.6-7.6 45.6 0 38 15.6 72.8 40.4 97.6s59.6 40.4 97.6 40.4c16.8 0 32.8-2.8 47.6-8.4 5.2-2 10.4-4 15.2-6.4-9.6 18.4-22.8 34.8-39.2 47.6z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 302.4 302.4"><path d="M204.8 97.6C191.2 84 172 75.2 151.2 75.2s-40 8.4-53.6 22.4c-13.6 13.6-22.4 32.8-22.4 53.6s8.8 40 22.4 53.6c13.6 13.6 32.8 22.4 53.6 22.4s40-8.4 53.6-22.4c13.6-13.6 22.4-32.8 22.4-53.6s-8.4-40-22.4-53.6zm-14.4 92.8c-10 10-24 16-39.2 16s-29.2-6-39.2-16-16-24-16-39.2 6-29.2 16-39.2 24-16 39.2-16 29.2 6 39.2 16 16 24 16 39.2-6 29.2-16 39.2zM292 140.8h-30.8c-5.6 0-10.4 4.8-10.4 10.4 0 5.6 4.8 10.4 10.4 10.4H292c5.6 0 10.4-4.8 10.4-10.4 0-5.6-4.8-10.4-10.4-10.4zM151.2 250.8c-5.6 0-10.4 4.8-10.4 10.4V292c0 5.6 4.8 10.4 10.4 10.4 5.6 0 10.4-4.8 10.4-10.4v-30.8c0-5.6-4.8-10.4-10.4-10.4zM258 243.6l-22-22c-3.6-4-10.4-4-14.4 0s-4 10.4 0 14.4l22 22c4 4 10.4 4 14.4 0s4-10.4 0-14.4zM151.2 0c-5.6 0-10.4 4.8-10.4 10.4v30.8c0 5.6 4.8 10.4 10.4 10.4 5.6 0 10.4-4.8 10.4-10.4V10.4c0-5.6-4.8-10.4-10.4-10.4zM258.4 44.4c-4-4-10.4-4-14.4 0l-22 22c-4 4-4 10.4 0 14.4 3.6 4 10.4 4 14.4 0l22-22c4-4 4-10.4 0-14.4zM41.2 140.8H10.4c-5.6 0-10.4 4.8-10.4 10.4s4.4 10.4 10.4 10.4h30.8c5.6 0 10.4-4.8 10.4-10.4 0-5.6-4.8-10.4-10.4-10.4zM80.4 221.6c-3.6-4-10.4-4-14.4 0l-22 22c-4 4-4 10.4 0 14.4s10.4 4 14.4 0l22-22c4-4 4-10.4 0-14.4zM80.4 66.4l-22-22c-4-4-10.4-4-14.4 0s-4 10.4 0 14.4l22 22c4 4 10.4 4 14.4 0s4-10.4 0-14.4z"/></svg>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
let systemInitiatedDark = window.matchMedia("(prefers-color-scheme: dark)");
|
2
|
+
let theme = sessionStorage.getItem('theme');
|
3
|
+
|
4
|
+
if (systemInitiatedDark.matches) {
|
5
|
+
document.getElementById("theme-toggle").classList.add('dark');
|
6
|
+
document.getElementById("theme-toggle").classList.remove('light');
|
7
|
+
} else {
|
8
|
+
document.getElementById("theme-toggle").classList.add('light');
|
9
|
+
document.getElementById("theme-toggle").classList.remove('dark');
|
10
|
+
}
|
11
|
+
|
12
|
+
function prefersColorTest(systemInitiatedDark) {
|
13
|
+
if (systemInitiatedDark.matches) {
|
14
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
15
|
+
document.getElementById("theme-toggle").classList.add('light');
|
16
|
+
document.getElementById("theme-toggle").classList.remove('dark');
|
17
|
+
sessionStorage.setItem('theme', '');
|
18
|
+
} else {
|
19
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
20
|
+
document.getElementById("theme-toggle").classList.add('dark');
|
21
|
+
document.getElementById("theme-toggle").classList.remove('light');
|
22
|
+
sessionStorage.setItem('theme', '');
|
23
|
+
}
|
24
|
+
}
|
25
|
+
systemInitiatedDark.addListener(prefersColorTest);
|
26
|
+
|
27
|
+
|
28
|
+
function modeSwitcher() {
|
29
|
+
let theme = sessionStorage.getItem('theme');
|
30
|
+
if (theme === "dark") {
|
31
|
+
document.getElementById("theme-toggle").classList.add('light');
|
32
|
+
document.getElementById("theme-toggle").classList.remove('dark');
|
33
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
34
|
+
sessionStorage.setItem('theme', 'light');
|
35
|
+
} else if (theme === "light") {
|
36
|
+
document.getElementById("theme-toggle").classList.add('dark');
|
37
|
+
document.getElementById("theme-toggle").classList.remove('light');
|
38
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
39
|
+
sessionStorage.setItem('theme', 'dark');
|
40
|
+
} else if (systemInitiatedDark.matches) {
|
41
|
+
document.getElementById("theme-toggle").classList.add('dark');
|
42
|
+
document.getElementById("theme-toggle").classList.remove('light');
|
43
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
44
|
+
sessionStorage.setItem('theme', 'light');
|
45
|
+
} else {
|
46
|
+
document.getElementById("theme-toggle").classList.add('light');
|
47
|
+
document.getElementById("theme-toggle").classList.remove('dark');
|
48
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
49
|
+
sessionStorage.setItem('theme', 'dark');
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
if (theme === "dark") {
|
54
|
+
document.getElementById("theme-toggle").classList.add('dark');
|
55
|
+
document.getElementById("theme-toggle").classList.remove('light');
|
56
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
57
|
+
sessionStorage.setItem('theme', 'dark');
|
58
|
+
// document.getElementById("theme-toggle").innerHTML = sun;
|
59
|
+
} else if (theme === "light") {
|
60
|
+
document.getElementById("theme-toggle").classList.add('light');
|
61
|
+
document.getElementById("theme-toggle").classList.remove('dark');
|
62
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
63
|
+
sessionStorage.setItem('theme', 'light');
|
64
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: materialize-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Presumido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -96,16 +96,17 @@ files:
|
|
96
96
|
- _sass/_syntax.scss
|
97
97
|
- _sass/_tags.scss
|
98
98
|
- _sass/_variables.scss
|
99
|
-
- assets/.DS_Store
|
100
99
|
- assets/css/.DS_Store
|
101
100
|
- assets/css/main.scss
|
102
|
-
- assets/img/.DS_Store
|
103
101
|
- assets/img/icons/facebook.svg
|
104
102
|
- assets/img/icons/github.svg
|
105
103
|
- assets/img/icons/instagram.svg
|
106
104
|
- assets/img/icons/linkedin.svg
|
105
|
+
- assets/img/icons/moon.svg
|
106
|
+
- assets/img/icons/sun.svg
|
107
107
|
- assets/img/icons/twitter.svg
|
108
108
|
- assets/js/init.js
|
109
|
+
- assets/js/mode-switcher.js
|
109
110
|
- assets/js/vendor/masonry.pkgd.min.js
|
110
111
|
homepage: https://github.com/victorpre/materialize-jekyll
|
111
112
|
licenses:
|
data/assets/.DS_Store
DELETED
Binary file
|
data/assets/img/.DS_Store
DELETED
Binary file
|