Skip to content

Commit d1abfd2

Browse files
committed
Improve code style
1 parent d5e6e5b commit d1abfd2

File tree

5 files changed

+30
-31
lines changed

5 files changed

+30
-31
lines changed

assets/css/_addon/main.scss

+21-21
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ $sidebar-display: "sidebar-display";
206206

207207
@media (hover: hover) {
208208
#sidebar ul > li:last-child::after {
209-
-webkit-transition: top .5s ease;
210-
-moz-transition: top .5s ease;
211-
-o-transition: top .5s ease;
212-
transition: top .5s ease;
209+
-webkit-transition: top 0.5s ease;
210+
-moz-transition: top 0.5s ease;
211+
-o-transition: top 0.5s ease;
212+
transition: top 0.5s ease;
213213
}
214214
}
215215

@@ -243,9 +243,9 @@ $sidebar-display: "sidebar-display";
243243
img {
244244
width: 100%;
245245
height: 100%;
246-
-webkit-transition: transform .5s;
247-
-moz-transition: transform .5s;
248-
transition: transform .5s;
246+
-webkit-transition: transform 0.5s;
247+
-moz-transition: transform 0.5s;
248+
transition: transform 0.5s;
249249

250250
&:hover {
251251
-ms-transform: scale(1.2);
@@ -298,7 +298,7 @@ $sidebar-display: "sidebar-display";
298298
&:not(:last-child) {
299299
&::after {
300300
content: "";
301-
padding: 0 .3rem;
301+
padding: 0 0.3rem;
302302
}
303303
}
304304
}
@@ -315,7 +315,7 @@ $sidebar-display: "sidebar-display";
315315
border-radius: 1rem;
316316
border: 1px solid var(--search-wrapper-bg);
317317
background: var(--search-wrapper-bg);
318-
padding: 0 .5rem;
318+
padding: 0 0.5rem;
319319
i {
320320
z-index: 2;
321321
font-size: 0.9rem;
@@ -336,7 +336,7 @@ $sidebar-display: "sidebar-display";
336336
background: center;
337337
border: 0;
338338
border-radius: 0;
339-
padding: 0.18rem .3rem;
339+
padding: 0.18rem 0.3rem;
340340
color: var(--text-color);
341341
}
342342

@@ -538,8 +538,8 @@ footer {
538538
background: none;
539539
border: 1px solid var(--btn-border-color);
540540
border-radius: 0.8rem;
541-
padding: 0.3rem .5rem;
542-
margin: 0 .35rem .5rem 0;
541+
padding: 0.3rem 0.5rem;
542+
margin: 0 0.35rem 0.5rem 0;
543543
&:hover {
544544
background-color: #2a408e;
545545
border-color: #2a408e;
@@ -642,7 +642,7 @@ blockquote {
642642
}
643643

644644
kbd {
645-
margin: 0 .3rem;
645+
margin: 0 0.3rem;
646646
}
647647

648648
sup {
@@ -676,7 +676,7 @@ sup {
676676

677677
.footnote {
678678
@at-root a#{&} {
679-
margin: 0 .2em;
679+
margin: 0 0.2em;
680680
border-bottom-style: none !important;
681681
-webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */
682682
transition: background-color 1.5s ease-in-out;
@@ -871,7 +871,7 @@ div.post-content .table-wrapper {
871871
list-style-type: none;
872872

873873
> i { // checkbox icon
874-
margin: 0 .4rem .2rem -1.4rem;
874+
margin: 0 0.4rem 0.2rem -1.4rem;
875875
vertical-align: middle;
876876
color: var(--checkbox-color);
877877
&.checked {
@@ -882,7 +882,7 @@ div.post-content .table-wrapper {
882882
}
883883

884884
input[type=checkbox] {
885-
margin: 0 .5rem .2rem -1.3rem;
885+
margin: 0 0.5rem 0.2rem -1.3rem;
886886
vertical-align: middle;
887887
}
888888

@@ -900,7 +900,7 @@ div.post-content .table-wrapper {
900900
text-align: center;
901901
background: var(--tag-bg);
902902
border-radius: 0.3rem;
903-
padding: 0 .4rem;
903+
padding: 0 0.4rem;
904904
color: inherit;
905905
line-height: 1.3rem;
906906
&:not(:last-child) {
@@ -984,7 +984,7 @@ div.post-content .table-wrapper {
984984
box-shadow: none;
985985
border-color: var(--input-focus-border-color) !important;
986986
background: center !important;
987-
transition: background-color .15s ease-in-out,border-color .15s ease-in-out;
987+
transition: background-color 0.15s ease-in-out,border-color 0.15s ease-in-out;
988988
}
989989

990990
/*--- Responsive Design ---*/
@@ -1315,8 +1315,8 @@ div.post-content .table-wrapper {
13151315
}
13161316

13171317
#search-input {
1318-
-webkit-transition: all .3s ease-in-out;
1319-
transition: all .3s ease-in-out;
1318+
-webkit-transition: all 0.3s ease-in-out;
1319+
transition: all 0.3s ease-in-out;
13201320
}
13211321

13221322
#search-result-wrapper {
@@ -1474,7 +1474,7 @@ div.post-content .table-wrapper {
14741474
@include icon-round(1.65rem);
14751475
line-height: 1rem;
14761476
font-size: 0.6rem;
1477-
padding: 0.5em 0 0 .1em;
1477+
padding: 0.5em 0 0 0.1em;
14781478
display: inline-block!important;
14791479
}
14801480
}

assets/css/_addon/syntax.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ div > pre {
6969

7070
overflow: auto;
7171
.lineno {
72-
margin-left: .2rem;
73-
padding-right: .5rem;
72+
margin-left: 0.2rem;
73+
padding-right: 0.5rem;
7474
min-width: 2.2rem;
7575
text-align: right;
7676
color: var(--highlight-lineno-color);
@@ -154,7 +154,7 @@ div {
154154
position: absolute;
155155
right: 1.8rem;
156156
margin-top: 3px;
157-
font-size: .7rem;
157+
font-size: 0.7rem;
158158
font-weight: 600;
159159
color: var(--highlight-lineno-color);
160160
text-transform: uppercase;

assets/css/_colors/light-typography.scss

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
--checkbox-color: darkgrey;
2929
--checkbox-checked-color: #07a8f7;
3030

31-
3231
/* Sidebar */
3332
--sidebar-bg: radial-gradient(
3433
circle,

assets/css/post.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
159159
position: sticky;
160160
top: 4rem;
161161
transition: top 0.2s ease-in-out;
162-
animation: fade-up .8s;
162+
animation: fade-up 0.8s;
163163
&.topbar-down {
164164
top: 6rem;
165165
}
@@ -185,9 +185,9 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
185185
border: 1px solid var(--card-border-color);
186186
background-color: var(--card-bg);
187187
box-shadow: 0 0 5px 0 var(--card-box-shadow);
188-
-webkit-transition: all .3s ease-in-out;
189-
-moz-transition: all .3s ease-in-out;
190-
transition: all .3s ease-in-out;
188+
-webkit-transition: all 0.3s ease-in-out;
189+
-moz-transition: all 0.3s ease-in-out;
190+
transition: all 0.3s ease-in-out;
191191
h3 {
192192
color: var(--text-color);
193193
}
@@ -339,7 +339,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
339339
.post {
340340
.post-meta {
341341
>div:not(:first-child)::before {
342-
@include dot(.5rem, .2rem);
342+
@include dot(0.5rem, 0.2rem);
343343
}
344344
&.flex-column {
345345
-webkit-box-orient: horizontal!important;

tools/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if $_build; then
6464
JEKYLL_ENV=production bundle exec jekyll b
6565
fi
6666

67-
bundle exec htmlproofer $DEST \
67+
bundle exec htmlproofer "$DEST" \
6868
--disable-external \
6969
--check-html \
7070
--empty_alt_ignore \

0 commit comments

Comments
 (0)