Skip to content

Commit 62e1f5f

Browse files
committed
fix[cloe #187]: fix rest of depricated things
1 parent 09b6195 commit 62e1f5f

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

docs/.vitepress/theme/custom.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@
2727
display: grid;
2828
grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
2929
margin: 0;
30+
gap: 0.625rem;
3031

3132
@media screen and (max-width: 37.5rem) {
3233
grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
3334
}
3435

3536
& {
36-
gap: 0.625rem;
3737
padding: 0;
38-
min-width: 100%;
38+
39+
& {
40+
min-width: 100%;
41+
}
3942
}
4043

4144
li {
@@ -184,13 +187,15 @@ input[type="checkbox"] {
184187
padding: 0;
185188
display: grid;
186189
grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
190+
gap: 0.625rem;
187191

188192
@media screen and (max-width: 37.5rem) {
189193
grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
190194
}
191195

192-
min-width: 100%;
193-
gap: 0.625rem;
196+
& {
197+
min-width: 100%;
198+
}
194199

195200
li {
196201
list-style: none;

src/styles/_color.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $bg-color-m-d: color.scale($bg-color-s-d, $lightness: 5%) !default;
3030
$bg-color-accent-alpha: color.scale($color-accent, $alpha: -60%) !default;
3131

3232
$bg-color-code-l: color.scale($bg-color-l, $lightness: -5%) !default;
33-
$bg-color-code-d: mix($bg-color-d, $bg-color-s-d, 60%) !default;
33+
$bg-color-code-d: color.mix($bg-color-d, $bg-color-s-d, 60%) !default;
3434

3535
$nav-bg-l: color.scale(
3636
$bg-color-s-l,

src/styles/_common.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pre {
2323

2424
code {
2525
border: 0;
26-
@include roundedNone;
26+
@include variables.roundedNone;
2727
background-color: transparent;
2828
padding: 0;
2929
color: var(--color-text);
@@ -110,7 +110,7 @@ video {
110110

111111
video:hover {
112112
transform: scale(1.06);
113-
@include roundedNone;
113+
@include variables.roundedNone;
114114
}
115115

116116
figcaption {
@@ -124,7 +124,7 @@ figcaption {
124124

125125
hr {
126126
margin: 1.25rem 5%;
127-
@include borderBasic(0.125rem);
127+
@include variables.borderBasic(0.125rem);
128128
border-radius: var(--rounded);
129129
}
130130

src/styles/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ main {
172172

173173
button {
174174
cursor: pointer;
175-
@include noBasicStyles;
175+
@include variables.noBasicStyles;
176176
}
177177

178178
abbr {

src/styles/components/_images.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
box-shadow: none;
1010

1111
& {
12-
@include roundedNone;
12+
@include variables.roundedNone;
1313
}
1414
}
1515

@@ -18,7 +18,7 @@
1818
box-shadow: none;
1919

2020
& {
21-
@include roundedNone;
21+
@include variables.roundedNone;
2222
}
2323
}
2424
}
@@ -29,18 +29,18 @@ img {
2929
max-width: 100%;
3030

3131
& {
32-
@include roundedNone;
32+
@include variables.roundedNone;
3333
}
3434
}
3535

3636
&[src*="#not-rounded"] {
3737
& {
38-
@include roundedNone;
38+
@include variables.roundedNone;
3939
}
4040

4141
&:hover {
4242
& {
43-
@include roundedNone;
43+
@include variables.roundedNone;
4444
}
4545
}
4646
}
@@ -105,14 +105,14 @@ img {
105105
border: none;
106106

107107
& {
108-
@include roundedNone;
108+
@include variables.roundedNone;
109109
}
110110

111111
&:hover {
112112
box-shadow: none;
113113
border: 0;
114114
& {
115-
@include roundedNone;
115+
@include variables.roundedNone;
116116
}
117117
}
118118
}
@@ -128,7 +128,7 @@ img {
128128
width: 100vw;
129129
max-width: 100vw;
130130
& {
131-
@include roundedNone;
131+
@include variables.roundedNone;
132132
}
133133

134134
& {
@@ -152,11 +152,11 @@ img {
152152
}
153153

154154
a img {
155-
@include borderBasic(1px);
155+
@include variables.borderBasic(1px);
156156

157157
&:hover {
158158
cursor: pointer;
159-
@include borderBasic(2px);
159+
@include variables.borderBasic(2px);
160160
}
161161

162162
&[src*="#no-border"] {

0 commit comments

Comments
 (0)