jekyll-theme-doodle 5.2.2 → 5.2.3
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/_sass/minima/_blockquotes.scss +63 -28
- data/_sass/minima/_fonts.scss +20 -20
- data/_sass/minima/_footer.scss +81 -81
- data/_sass/minima/_header.scss +30 -30
- data/_sass/minima/_navigation-bar.scss +133 -133
- data/_sass/minima/_pinned-post.scss +100 -100
- data/_sass/minima/_posts.scss +122 -122
- data/_sass/minima/_theme-selector.scss +91 -91
- data/_sass/minima/_theme.scss +588 -588
- data/_sass/minima/_toc.scss +45 -45
- data/assets/theme-assets/theme-icons/moon.svg +2 -2
- data/assets/theme-assets/theme-icons/sun.svg +17 -17
- data/assets/theme-assets/theme-icons/warning.svg +1 -0
- data/assets/theme-assets/theme-images/box-filled-2.svg +9 -9
- data/assets/theme-assets/theme-images/box-filled.svg +18 -18
- metadata +4 -7
@@ -1,100 +1,100 @@
|
|
1
|
-
@keyframes pin {
|
2
|
-
0% {
|
3
|
-
transform: rotate(-35deg);
|
4
|
-
}
|
5
|
-
20% {
|
6
|
-
transform: rotate(10deg);
|
7
|
-
}
|
8
|
-
40% {
|
9
|
-
transform: rotate(-3deg);
|
10
|
-
}
|
11
|
-
60% {
|
12
|
-
transform: rotate(2deg);
|
13
|
-
}
|
14
|
-
80% {
|
15
|
-
transform: rotate(-1deg);
|
16
|
-
}
|
17
|
-
100% {
|
18
|
-
transform: rotate(0deg);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
.pinned-post-card {
|
22
|
-
position: relative;
|
23
|
-
box-sizing: border-box;
|
24
|
-
display: flex;
|
25
|
-
flex-direction: column;
|
26
|
-
border-radius: 14px;
|
27
|
-
padding: 12px;
|
28
|
-
width: 30%;
|
29
|
-
transform-origin: top right;
|
30
|
-
animation: pin 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
31
|
-
background-color: var(--md-sys-color-primary-container);
|
32
|
-
& p,
|
33
|
-
span,
|
34
|
-
a {
|
35
|
-
color: var(--md-sys-color-on-primary-container);
|
36
|
-
}
|
37
|
-
& img {
|
38
|
-
// background-color: var(--md-sys-color-surface-container-high);
|
39
|
-
border-radius: 24px;
|
40
|
-
}
|
41
|
-
@media screen and (max-width: 1300px) {
|
42
|
-
width: 46%;
|
43
|
-
}
|
44
|
-
@media screen and (max-width: 850px) {
|
45
|
-
width: 100%;
|
46
|
-
& p {
|
47
|
-
display: -webkit-box;
|
48
|
-
line-clamp: 5;
|
49
|
-
-webkit-line-clamp: 5;
|
50
|
-
-webkit-box-orient: vertical;
|
51
|
-
overflow: hidden;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
.pinned-post-list {
|
57
|
-
display: flex;
|
58
|
-
margin-left: 0;
|
59
|
-
flex-wrap: wrap;
|
60
|
-
justify-content: space-around;
|
61
|
-
padding-top: 12px;
|
62
|
-
gap:8px;
|
63
|
-
list-style: none;
|
64
|
-
background-color: var(--md-sys-color-surface-container-highest);
|
65
|
-
border-radius: 24px;
|
66
|
-
padding: $spacing-unit;
|
67
|
-
min-height: 390px;
|
68
|
-
@media screen and (max-width: 850px) {
|
69
|
-
padding: $spacing-unit/2;
|
70
|
-
min-height: 200px;
|
71
|
-
}
|
72
|
-
|
73
|
-
> li:not(:last-child) {
|
74
|
-
margin-bottom: $spacing-unit;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
.pinned-post-card::before {
|
78
|
-
content: "";
|
79
|
-
position: absolute;
|
80
|
-
top: -10px;
|
81
|
-
left: -12px;
|
82
|
-
right: -10px;
|
83
|
-
bottom: -10px;
|
84
|
-
background-image: url("/assets/theme-assets/theme-images/border-thick.svg");
|
85
|
-
background-size: 100% 100%;
|
86
|
-
filter: var(--outline-filter);
|
87
|
-
pointer-events: none; /* Allows interaction with content inside the border */
|
88
|
-
}
|
89
|
-
.pin-svg {
|
90
|
-
position: absolute;
|
91
|
-
height: 80px;
|
92
|
-
width: auto;
|
93
|
-
top: -34px;
|
94
|
-
right: 15px;
|
95
|
-
z-index: 11;
|
96
|
-
}
|
97
|
-
.pin-path {
|
98
|
-
stroke: var(--md-sys-color-tertiary);
|
99
|
-
stroke-width: 2.5;
|
100
|
-
}
|
1
|
+
@keyframes pin {
|
2
|
+
0% {
|
3
|
+
transform: rotate(-35deg);
|
4
|
+
}
|
5
|
+
20% {
|
6
|
+
transform: rotate(10deg);
|
7
|
+
}
|
8
|
+
40% {
|
9
|
+
transform: rotate(-3deg);
|
10
|
+
}
|
11
|
+
60% {
|
12
|
+
transform: rotate(2deg);
|
13
|
+
}
|
14
|
+
80% {
|
15
|
+
transform: rotate(-1deg);
|
16
|
+
}
|
17
|
+
100% {
|
18
|
+
transform: rotate(0deg);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.pinned-post-card {
|
22
|
+
position: relative;
|
23
|
+
box-sizing: border-box;
|
24
|
+
display: flex;
|
25
|
+
flex-direction: column;
|
26
|
+
border-radius: 14px;
|
27
|
+
padding: 12px;
|
28
|
+
width: 30%;
|
29
|
+
transform-origin: top right;
|
30
|
+
animation: pin 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
31
|
+
background-color: var(--md-sys-color-primary-container);
|
32
|
+
& p,
|
33
|
+
span,
|
34
|
+
a {
|
35
|
+
color: var(--md-sys-color-on-primary-container);
|
36
|
+
}
|
37
|
+
& img {
|
38
|
+
// background-color: var(--md-sys-color-surface-container-high);
|
39
|
+
border-radius: 24px;
|
40
|
+
}
|
41
|
+
@media screen and (max-width: 1300px) {
|
42
|
+
width: 46%;
|
43
|
+
}
|
44
|
+
@media screen and (max-width: 850px) {
|
45
|
+
width: 100%;
|
46
|
+
& p {
|
47
|
+
display: -webkit-box;
|
48
|
+
line-clamp: 5;
|
49
|
+
-webkit-line-clamp: 5;
|
50
|
+
-webkit-box-orient: vertical;
|
51
|
+
overflow: hidden;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.pinned-post-list {
|
57
|
+
display: flex;
|
58
|
+
margin-left: 0;
|
59
|
+
flex-wrap: wrap;
|
60
|
+
justify-content: space-around;
|
61
|
+
padding-top: 12px;
|
62
|
+
gap:8px;
|
63
|
+
list-style: none;
|
64
|
+
background-color: var(--md-sys-color-surface-container-highest);
|
65
|
+
border-radius: 24px;
|
66
|
+
padding: $spacing-unit;
|
67
|
+
min-height: 390px;
|
68
|
+
@media screen and (max-width: 850px) {
|
69
|
+
padding: $spacing-unit/2;
|
70
|
+
min-height: 200px;
|
71
|
+
}
|
72
|
+
|
73
|
+
> li:not(:last-child) {
|
74
|
+
margin-bottom: $spacing-unit;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
.pinned-post-card::before {
|
78
|
+
content: "";
|
79
|
+
position: absolute;
|
80
|
+
top: -10px;
|
81
|
+
left: -12px;
|
82
|
+
right: -10px;
|
83
|
+
bottom: -10px;
|
84
|
+
background-image: url("/assets/theme-assets/theme-images/border-thick.svg");
|
85
|
+
background-size: 100% 100%;
|
86
|
+
filter: var(--outline-filter);
|
87
|
+
pointer-events: none; /* Allows interaction with content inside the border */
|
88
|
+
}
|
89
|
+
.pin-svg {
|
90
|
+
position: absolute;
|
91
|
+
height: 80px;
|
92
|
+
width: auto;
|
93
|
+
top: -34px;
|
94
|
+
right: 15px;
|
95
|
+
z-index: 11;
|
96
|
+
}
|
97
|
+
.pin-path {
|
98
|
+
stroke: var(--md-sys-color-tertiary);
|
99
|
+
stroke-width: 2.5;
|
100
|
+
}
|
data/_sass/minima/_posts.scss
CHANGED
@@ -1,122 +1,122 @@
|
|
1
|
-
.all-post-wrapper {
|
2
|
-
max-width: 1200px;
|
3
|
-
margin-left: auto;
|
4
|
-
margin-right: auto;
|
5
|
-
}
|
6
|
-
.post-header {
|
7
|
-
margin-bottom: $spacing-unit;
|
8
|
-
}
|
9
|
-
.post-meta {
|
10
|
-
font-size: $small-font-size;
|
11
|
-
color: $grey-color;
|
12
|
-
}
|
13
|
-
.post-image {
|
14
|
-
height: 200px;
|
15
|
-
width: 100%;
|
16
|
-
}
|
17
|
-
.featured-image {
|
18
|
-
height: 300px;
|
19
|
-
width: 100%;
|
20
|
-
object-fit: contain;
|
21
|
-
}
|
22
|
-
.post-excerpt {
|
23
|
-
font-size: $small-font-size;
|
24
|
-
color: var(--md-sys-color-on-surface);
|
25
|
-
}
|
26
|
-
.post-link {
|
27
|
-
display: block;
|
28
|
-
@include relative-font-size(1.5);
|
29
|
-
}
|
30
|
-
.post-title {
|
31
|
-
@include relative-font-size(2.625);
|
32
|
-
letter-spacing: -1px;
|
33
|
-
line-height: 1;
|
34
|
-
margin: 20px;
|
35
|
-
|
36
|
-
@include media-query($on-laptop) {
|
37
|
-
@include relative-font-size(2.25);
|
38
|
-
}
|
39
|
-
@include media-query($on-palm) {
|
40
|
-
margin: 12px;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
.post {
|
44
|
-
background: var(--md-sys-color-surface);
|
45
|
-
border-radius: 24px;
|
46
|
-
padding: 24px;
|
47
|
-
@include media-query($on-palm) {
|
48
|
-
padding: 8px;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
p {
|
53
|
-
text-align: justify;
|
54
|
-
}
|
55
|
-
.post-content {
|
56
|
-
margin-bottom: $spacing-unit;
|
57
|
-
|
58
|
-
// text-align: justify;
|
59
|
-
|
60
|
-
h2 {
|
61
|
-
@include relative-font-size(2);
|
62
|
-
|
63
|
-
@include media-query($on-laptop) {
|
64
|
-
@include relative-font-size(1.75);
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
h3 {
|
69
|
-
@include relative-font-size(1.625);
|
70
|
-
|
71
|
-
@include media-query($on-laptop) {
|
72
|
-
@include relative-font-size(1.375);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
h4 {
|
77
|
-
@include relative-font-size(1.25);
|
78
|
-
|
79
|
-
@include media-query($on-laptop) {
|
80
|
-
@include relative-font-size(1.125);
|
81
|
-
}
|
82
|
-
}
|
83
|
-
a{
|
84
|
-
text-decoration: underline;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
.post-list {
|
89
|
-
display: grid;
|
90
|
-
grid-template-columns: repeat(6, 1fr);
|
91
|
-
gap: 8px;
|
92
|
-
grid-auto-flow: row;
|
93
|
-
grid-auto-rows: minmax(200px, auto);
|
94
|
-
margin-left: 0;
|
95
|
-
list-style: none;
|
96
|
-
}
|
97
|
-
.post-card {
|
98
|
-
position: relative;
|
99
|
-
grid-column: auto / span 2;
|
100
|
-
box-sizing: border-box;
|
101
|
-
display: flex;
|
102
|
-
flex-direction: column;
|
103
|
-
border-radius: 14px;
|
104
|
-
padding: 20px;
|
105
|
-
border: 1px solid var(--md-sys-color-outline);
|
106
|
-
& p {
|
107
|
-
display: -webkit-box;
|
108
|
-
line-clamp: 3;
|
109
|
-
-webkit-line-clamp: 3;
|
110
|
-
-webkit-box-orient: vertical;
|
111
|
-
overflow: hidden;
|
112
|
-
}
|
113
|
-
@media screen and (max-width: 1200px) {
|
114
|
-
grid-column: auto/span 3;
|
115
|
-
}
|
116
|
-
@media screen and (max-width: 800px) {
|
117
|
-
grid-column: auto/span 6;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
.card-title {
|
121
|
-
font-family: "Comic Shanns", $base-font-family;
|
122
|
-
}
|
1
|
+
.all-post-wrapper {
|
2
|
+
max-width: 1200px;
|
3
|
+
margin-left: auto;
|
4
|
+
margin-right: auto;
|
5
|
+
}
|
6
|
+
.post-header {
|
7
|
+
margin-bottom: $spacing-unit;
|
8
|
+
}
|
9
|
+
.post-meta {
|
10
|
+
font-size: $small-font-size;
|
11
|
+
color: $grey-color;
|
12
|
+
}
|
13
|
+
.post-image {
|
14
|
+
height: 200px;
|
15
|
+
width: 100%;
|
16
|
+
}
|
17
|
+
.featured-image {
|
18
|
+
height: 300px;
|
19
|
+
width: 100%;
|
20
|
+
object-fit: contain;
|
21
|
+
}
|
22
|
+
.post-excerpt {
|
23
|
+
font-size: $small-font-size;
|
24
|
+
color: var(--md-sys-color-on-surface);
|
25
|
+
}
|
26
|
+
.post-link {
|
27
|
+
display: block;
|
28
|
+
@include relative-font-size(1.5);
|
29
|
+
}
|
30
|
+
.post-title {
|
31
|
+
@include relative-font-size(2.625);
|
32
|
+
letter-spacing: -1px;
|
33
|
+
line-height: 1;
|
34
|
+
margin: 20px;
|
35
|
+
|
36
|
+
@include media-query($on-laptop) {
|
37
|
+
@include relative-font-size(2.25);
|
38
|
+
}
|
39
|
+
@include media-query($on-palm) {
|
40
|
+
margin: 12px;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
.post {
|
44
|
+
background: var(--md-sys-color-surface);
|
45
|
+
border-radius: 24px;
|
46
|
+
padding: 24px;
|
47
|
+
@include media-query($on-palm) {
|
48
|
+
padding: 8px;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
p {
|
53
|
+
text-align: justify;
|
54
|
+
}
|
55
|
+
.post-content {
|
56
|
+
margin-bottom: $spacing-unit;
|
57
|
+
|
58
|
+
// text-align: justify;
|
59
|
+
|
60
|
+
h2 {
|
61
|
+
@include relative-font-size(2);
|
62
|
+
|
63
|
+
@include media-query($on-laptop) {
|
64
|
+
@include relative-font-size(1.75);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
h3 {
|
69
|
+
@include relative-font-size(1.625);
|
70
|
+
|
71
|
+
@include media-query($on-laptop) {
|
72
|
+
@include relative-font-size(1.375);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
h4 {
|
77
|
+
@include relative-font-size(1.25);
|
78
|
+
|
79
|
+
@include media-query($on-laptop) {
|
80
|
+
@include relative-font-size(1.125);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
a{
|
84
|
+
text-decoration: underline;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.post-list {
|
89
|
+
display: grid;
|
90
|
+
grid-template-columns: repeat(6, 1fr);
|
91
|
+
gap: 8px;
|
92
|
+
grid-auto-flow: row;
|
93
|
+
grid-auto-rows: minmax(200px, auto);
|
94
|
+
margin-left: 0;
|
95
|
+
list-style: none;
|
96
|
+
}
|
97
|
+
.post-card {
|
98
|
+
position: relative;
|
99
|
+
grid-column: auto / span 2;
|
100
|
+
box-sizing: border-box;
|
101
|
+
display: flex;
|
102
|
+
flex-direction: column;
|
103
|
+
border-radius: 14px;
|
104
|
+
padding: 20px;
|
105
|
+
border: 1px solid var(--md-sys-color-outline);
|
106
|
+
& p {
|
107
|
+
display: -webkit-box;
|
108
|
+
line-clamp: 3;
|
109
|
+
-webkit-line-clamp: 3;
|
110
|
+
-webkit-box-orient: vertical;
|
111
|
+
overflow: hidden;
|
112
|
+
}
|
113
|
+
@media screen and (max-width: 1200px) {
|
114
|
+
grid-column: auto/span 3;
|
115
|
+
}
|
116
|
+
@media screen and (max-width: 800px) {
|
117
|
+
grid-column: auto/span 6;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
.card-title {
|
121
|
+
font-family: "Comic Shanns", $base-font-family;
|
122
|
+
}
|
@@ -1,91 +1,91 @@
|
|
1
|
-
.theme-selector {
|
2
|
-
display: flex;
|
3
|
-
}
|
4
|
-
.theme-wrapper {
|
5
|
-
display: flex;
|
6
|
-
position: absolute;
|
7
|
-
right: 0;
|
8
|
-
justify-content: flex-end;
|
9
|
-
align-items: flex-start;
|
10
|
-
margin-left: auto;
|
11
|
-
padding: 6px;
|
12
|
-
margin-top: 8px;
|
13
|
-
margin-right: 8px;
|
14
|
-
border-radius: 16px;
|
15
|
-
background-color: rgba(159, 159, 159, 0.122);
|
16
|
-
backdrop-filter: blur(8px);
|
17
|
-
width: fit-content;
|
18
|
-
@media screen and (min-width: 601px) {
|
19
|
-
position: fixed;
|
20
|
-
z-index: 103;
|
21
|
-
bottom: 10px;
|
22
|
-
right: auto;
|
23
|
-
left: 9px;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
.current-theme {
|
28
|
-
height: 24px;
|
29
|
-
width: 24px;
|
30
|
-
border-radius: 50%;
|
31
|
-
background-color: var(--md-sys-color-primary); /* Initial theme color */
|
32
|
-
margin-right: 10px;
|
33
|
-
cursor: pointer;
|
34
|
-
transition: transform 0.3s;
|
35
|
-
}
|
36
|
-
.theme-options {
|
37
|
-
display: flex;
|
38
|
-
gap: 10px;
|
39
|
-
max-width: 0px;
|
40
|
-
transition: all 0.4s;
|
41
|
-
}
|
42
|
-
.theme-option {
|
43
|
-
width: 26px;
|
44
|
-
height: 26px;
|
45
|
-
border-radius: 50%;
|
46
|
-
cursor: pointer;
|
47
|
-
}
|
48
|
-
.toggle-container {
|
49
|
-
display: flex;
|
50
|
-
align-items: center;
|
51
|
-
}
|
52
|
-
|
53
|
-
.toggle-switch {
|
54
|
-
position: relative;
|
55
|
-
display: inline-block;
|
56
|
-
width: 44px;
|
57
|
-
height: 24px;
|
58
|
-
}
|
59
|
-
.toggle-switch input {
|
60
|
-
opacity: 0;
|
61
|
-
width: 0;
|
62
|
-
height: 0;
|
63
|
-
}
|
64
|
-
.slider {
|
65
|
-
position: absolute;
|
66
|
-
cursor: pointer;
|
67
|
-
top: 0;
|
68
|
-
left: 0;
|
69
|
-
right: 0;
|
70
|
-
bottom: 0;
|
71
|
-
background-color: #ccc;
|
72
|
-
transition: 0.4s;
|
73
|
-
border-radius: 34px;
|
74
|
-
background-color: var(--md-sys-color-primary);
|
75
|
-
}
|
76
|
-
.slider:before {
|
77
|
-
position: absolute;
|
78
|
-
content: url("/assets/theme-assets/theme-icons/sun.svg");
|
79
|
-
height: 20px;
|
80
|
-
width: 20px;
|
81
|
-
left: 2px;
|
82
|
-
bottom: 2px;
|
83
|
-
background-color: var(--md-sys-color-surface-container-highest);
|
84
|
-
transition: 0.4s;
|
85
|
-
border-radius: 50%;
|
86
|
-
}
|
87
|
-
input:checked + .slider:before {
|
88
|
-
transform: translateX(20px);
|
89
|
-
content: url("/assets/theme-assets/theme-icons/moon.svg");
|
90
|
-
|
91
|
-
}
|
1
|
+
.theme-selector {
|
2
|
+
display: flex;
|
3
|
+
}
|
4
|
+
.theme-wrapper {
|
5
|
+
display: flex;
|
6
|
+
position: absolute;
|
7
|
+
right: 0;
|
8
|
+
justify-content: flex-end;
|
9
|
+
align-items: flex-start;
|
10
|
+
margin-left: auto;
|
11
|
+
padding: 6px;
|
12
|
+
margin-top: 8px;
|
13
|
+
margin-right: 8px;
|
14
|
+
border-radius: 16px;
|
15
|
+
background-color: rgba(159, 159, 159, 0.122);
|
16
|
+
backdrop-filter: blur(8px);
|
17
|
+
width: fit-content;
|
18
|
+
@media screen and (min-width: 601px) {
|
19
|
+
position: fixed;
|
20
|
+
z-index: 103;
|
21
|
+
bottom: 10px;
|
22
|
+
right: auto;
|
23
|
+
left: 9px;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.current-theme {
|
28
|
+
height: 24px;
|
29
|
+
width: 24px;
|
30
|
+
border-radius: 50%;
|
31
|
+
background-color: var(--md-sys-color-primary); /* Initial theme color */
|
32
|
+
margin-right: 10px;
|
33
|
+
cursor: pointer;
|
34
|
+
transition: transform 0.3s;
|
35
|
+
}
|
36
|
+
.theme-options {
|
37
|
+
display: flex;
|
38
|
+
gap: 10px;
|
39
|
+
max-width: 0px;
|
40
|
+
transition: all 0.4s;
|
41
|
+
}
|
42
|
+
.theme-option {
|
43
|
+
width: 26px;
|
44
|
+
height: 26px;
|
45
|
+
border-radius: 50%;
|
46
|
+
cursor: pointer;
|
47
|
+
}
|
48
|
+
.toggle-container {
|
49
|
+
display: flex;
|
50
|
+
align-items: center;
|
51
|
+
}
|
52
|
+
|
53
|
+
.toggle-switch {
|
54
|
+
position: relative;
|
55
|
+
display: inline-block;
|
56
|
+
width: 44px;
|
57
|
+
height: 24px;
|
58
|
+
}
|
59
|
+
.toggle-switch input {
|
60
|
+
opacity: 0;
|
61
|
+
width: 0;
|
62
|
+
height: 0;
|
63
|
+
}
|
64
|
+
.slider {
|
65
|
+
position: absolute;
|
66
|
+
cursor: pointer;
|
67
|
+
top: 0;
|
68
|
+
left: 0;
|
69
|
+
right: 0;
|
70
|
+
bottom: 0;
|
71
|
+
background-color: #ccc;
|
72
|
+
transition: 0.4s;
|
73
|
+
border-radius: 34px;
|
74
|
+
background-color: var(--md-sys-color-primary);
|
75
|
+
}
|
76
|
+
.slider:before {
|
77
|
+
position: absolute;
|
78
|
+
content: url("/assets/theme-assets/theme-icons/sun.svg");
|
79
|
+
height: 20px;
|
80
|
+
width: 20px;
|
81
|
+
left: 2px;
|
82
|
+
bottom: 2px;
|
83
|
+
background-color: var(--md-sys-color-surface-container-highest);
|
84
|
+
transition: 0.4s;
|
85
|
+
border-radius: 50%;
|
86
|
+
}
|
87
|
+
input:checked + .slider:before {
|
88
|
+
transform: translateX(20px);
|
89
|
+
content: url("/assets/theme-assets/theme-icons/moon.svg");
|
90
|
+
|
91
|
+
}
|