Skip to content

Commit 4986db1

Browse files
committed
Improve SCSS comment symbols: change // to /* */
1 parent 508d3c5 commit 4986db1

4 files changed

Lines changed: 57 additions & 55 deletions

File tree

_sass/addon/commons.scss

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ footer {
180180
}
181181
}
182182

183-
i { // fontawesome icons
183+
i { /* fontawesome icons */
184184
&.far,
185185
&.fas {
186186
@extend %no-cursor;
@@ -211,7 +211,7 @@ img[data-src] {
211211

212212
&.shadow {
213213
filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.08));
214-
box-shadow: none !important; // cover the Bootstrap 4.6.1 styles
214+
box-shadow: none !important; /* cover the Bootstrap 4.6.1 styles */
215215
}
216216

217217
@extend %img-caption;
@@ -247,7 +247,7 @@ img[data-src] {
247247
}
248248

249249
#panel-wrapper {
250-
// the headings
250+
/* the headings */
251251
.panel-heading {
252252
@include label(inherit);
253253
}
@@ -313,7 +313,7 @@ img[data-src] {
313313
margin-bottom: 0;
314314
}
315315

316-
// [scroll-focus] added by `smooth-scroll.js`
316+
/* [scroll-focus] added by `smooth-scroll.js` */
317317
&:target:not([scroll-focus]),
318318
&[scroll-focus=true] > p {
319319
background-color: var(--footnote-target-bg);
@@ -334,7 +334,7 @@ img[data-src] {
334334
transition: background-color 1.5s ease-in-out;
335335
}
336336

337-
// [scroll-focus] added by `smooth-scroll.js`
337+
/* [scroll-focus] added by `smooth-scroll.js` */
338338
@at-root sup:target:not([scroll-focus]),
339339
sup[scroll-focus=true] > a#{&} {
340340
background-color: var(--footnote-target-bg);
@@ -354,7 +354,7 @@ img[data-src] {
354354

355355
/* --- Begin of Markdown table style --- */
356356

357-
// it will be created by Liquid
357+
/* it will be created by Liquid */
358358
.table-wrapper {
359359
overflow-x: auto;
360360
margin-bottom: 1.5rem;
@@ -388,8 +388,8 @@ img[data-src] {
388388
@extend %table-cell;
389389
}
390390
}
391-
} // tbody
392-
}// table
391+
} /* tbody */
392+
}/* table */
393393
}
394394

395395
/* --- post --- */
@@ -405,7 +405,7 @@ img[data-src] {
405405
@extend %no-cursor;
406406
}
407407

408-
// created by `_includes/img-extra.html`
408+
/* created by `_includes/img-extra.html` */
409409
&.popup {
410410
cursor: zoom-in;
411411

@@ -419,7 +419,7 @@ img[data-src] {
419419
@extend %link-hover;
420420
}
421421
}
422-
} // a
422+
} /* a */
423423

424424
}
425425

@@ -469,11 +469,11 @@ img[data-src] {
469469
}
470470

471471
ul {
472-
// attribute 'hide-bullet' was added by liquid
472+
/* attribute 'hide-bullet' was added by liquid */
473473
.task-list-item[hide-bullet] {
474474
list-style-type: none;
475475

476-
> i { // checkbox icon
476+
> i { /* checkbox icon */
477477
margin: 0 0.4rem 0.2rem -1.4rem;
478478
vertical-align: middle;
479479
color: var(--checkbox-color);
@@ -490,15 +490,15 @@ img[data-src] {
490490
vertical-align: middle;
491491
}
492492

493-
} // ul
493+
} /* ul */
494494

495495
> ol,
496496
> ul {
497497
padding-left: 2rem;
498498

499499
li {
500500
ol,
501-
ul { // sub list
501+
ul { /* sub list */
502502
padding-left: 2rem;
503503
margin-top: 0.3rem;
504504
}
@@ -516,7 +516,7 @@ img[data-src] {
516516
margin-left: 1rem;
517517
}
518518

519-
} // .post-content
519+
} /* .post-content */
520520

521521
.tag:hover {
522522
@extend %tag-hover;
@@ -617,14 +617,14 @@ img[data-src] {
617617

618618
/* --- Overriding --- */
619619

620-
// magnific-popup
620+
/* magnific-popup */
621621
figure .mfp-title {
622622
text-align: center;
623623
padding-right: 0;
624624
margin-top: 0.5rem;
625625
}
626626

627-
// mermaid
627+
/* mermaid */
628628
.mermaid {
629629
text-align: center;
630630
}
@@ -672,7 +672,7 @@ $sidebar-display: "sidebar-display";
672672
border-radius: 50%;
673673
border: 2px solid rgba(222, 222, 222, 0.7);
674674
overflow: hidden;
675-
transform: translateZ(0); // fixed the zoom in Safari
675+
transform: translateZ(0); /* fixed the zoom in Safari */
676676
-webkit-transition: border-color 0.35s ease-in-out;
677677
-moz-transition: border-color 0.35s ease-in-out;
678678
transition: border-color 0.35s ease-in-out;
@@ -696,7 +696,7 @@ $sidebar-display: "sidebar-display";
696696
transform: scale(1.2);
697697
}
698698
}
699-
} // #avatar
699+
} /* #avatar */
700700

701701
.site-title {
702702
a {
@@ -715,7 +715,7 @@ $sidebar-display: "sidebar-display";
715715
line-height: 1.2rem;
716716
word-spacing: 1px;
717717
margin: 0.5rem 1.5rem 0.5rem 1.5rem;
718-
min-height: 3rem; // avoid vertical shifting in multi-line words
718+
min-height: 3rem; /* avoid vertical shifting in multi-line words */
719719
user-select: none;
720720
}
721721

@@ -759,7 +759,7 @@ $sidebar-display: "sidebar-display";
759759
width: 100%;
760760
}
761761

762-
&::after { // the cursor
762+
&::after { /* the cursor */
763763
display: table;
764764
visibility: hidden;
765765
content: "";
@@ -772,7 +772,7 @@ $sidebar-display: "sidebar-display";
772772
pointer-events: none;
773773
}
774774
}
775-
} // li
775+
} /* li */
776776

777777
@mixin fix-cursor($top) {
778778
top: $top;
@@ -797,9 +797,9 @@ $sidebar-display: "sidebar-display";
797797
}
798798
}
799799

800-
} // @for
800+
} /* @for */
801801

802-
} // ul
802+
} /* ul */
803803

804804
.sidebar-bottom {
805805
margin-bottom: 2.1rem;
@@ -850,9 +850,9 @@ $sidebar-display: "sidebar-display";
850850
border-radius: 50%;
851851
}
852852

853-
} // .sidebar-bottom
853+
} /* .sidebar-bottom */
854854

855-
} // #sidebar
855+
} /* #sidebar */
856856

857857
@media (hover: hover) {
858858
#sidebar ul > li:last-child::after {
@@ -897,7 +897,7 @@ $sidebar-display: "sidebar-display";
897897
}
898898

899899
#topbar {
900-
i { // icons
900+
i { /* icons */
901901
color: #999;
902902
}
903903

@@ -919,7 +919,7 @@ $sidebar-display: "sidebar-display";
919919
}
920920
}
921921
}
922-
} // #topbar
922+
} /* #topbar */
923923

924924
#sidebar-trigger,
925925
#search-trigger {
@@ -1019,7 +1019,7 @@ $sidebar-display: "sidebar-display";
10191019
margin-bottom: 1rem;
10201020
}
10211021

1022-
i { // icons
1022+
i { /* icons */
10231023
color: #818182;
10241024
margin-right: 0.15rem;
10251025
font-size: 80%;
@@ -1033,7 +1033,7 @@ $sidebar-display: "sidebar-display";
10331033
-webkit-box-orient: vertical;
10341034
}
10351035
}
1036-
} // #search-results
1036+
} /* #search-results */
10371037

10381038
#topbar-title {
10391039
display: none;
@@ -1103,7 +1103,7 @@ $sidebar-display: "sidebar-display";
11031103
}
11041104
}
11051105

1106-
div.row:first-of-type:last-of-type { // alone
1106+
div.row:first-of-type:last-of-type { /* alone */
11071107
margin-bottom: 4rem;
11081108
}
11091109
}
@@ -1156,7 +1156,7 @@ $sidebar-display: "sidebar-display";
11561156

11571157
@media all and (max-width: 576px) {
11581158

1159-
$footer-height: $footer-height-mobile; // overwrite
1159+
$footer-height: $footer-height-mobile; /* overwrite */
11601160

11611161
footer {
11621162
height: $footer-height;
@@ -1244,7 +1244,7 @@ $sidebar-display: "sidebar-display";
12441244
#sidebar {
12451245
@include slide;
12461246

1247-
transform: translateX(-#{$sidebar-width}); // hide
1247+
transform: translateX(-#{$sidebar-width}); /* hide */
12481248
-webkit-transform: translateX(-#{$sidebar-width});
12491249

12501250
.cursor {
@@ -1315,7 +1315,7 @@ $sidebar-display: "sidebar-display";
13151315
}
13161316
}
13171317

1318-
} // max-width: 849px
1318+
} /* max-width: 849px */
13191319

13201320
@media all and (max-width: 849px) and (orientation: portrait) {
13211321
[data-topbar-visible=false] #topbar-wrapper {
@@ -1620,7 +1620,7 @@ $sidebar-display: "sidebar-display";
16201620
margin-top: 0.3rem;
16211621
}
16221622

1623-
} // .profile-wrapper (min-width: 1650px)
1623+
} /* .profile-wrapper (min-width: 1650px) */
16241624

16251625
ul {
16261626
padding-left: 2.5rem;
@@ -1667,7 +1667,7 @@ $sidebar-display: "sidebar-display";
16671667
@include ml-mr(0.15rem);
16681668

16691669
height: $icon-block-size;
1670-
margin-bottom: 0.5rem; // wrap line
1670+
margin-bottom: 0.5rem; /* wrap line */
16711671
}
16721672

16731673
i {
@@ -1690,9 +1690,9 @@ $sidebar-display: "sidebar-display";
16901690
top: 0.9rem;
16911691
}
16921692

1693-
} // .sidebar-bottom
1693+
} /* .sidebar-bottom */
16941694

1695-
} // #sidebar
1695+
} /* #sidebar */
16961696

16971697
footer > div.d-flex {
16981698
width: 92%;
@@ -1705,7 +1705,7 @@ $sidebar-display: "sidebar-display";
17051705
}
17061706
}
17071707

1708-
} // min-width: 1650px
1708+
} /* min-width: 1650px */
17091709

17101710
@media all and (min-width: 1700px) {
17111711
#topbar-wrapper {

_sass/addon/module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
margin-bottom: 1.25rem;
1717

1818
&:focus {
19-
outline: none; // avoid outline in Safari
19+
outline: none; /* avoid outline in Safari */
2020
}
2121
}
2222
}

_sass/addon/syntax.scss

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $code-radius: 6px;
9999
user-select: none;
100100
}
101101

102-
} //.highlight
102+
} /* .highlight */
103103

104104
code {
105105
-webkit-hyphens: none;
@@ -122,7 +122,7 @@ code {
122122
}
123123

124124
a > &.highlighter-rouge {
125-
padding-bottom: 0; // show link's underlinke
125+
padding-bottom: 0; /* show link's underlinke */
126126
color: inherit;
127127
}
128128

@@ -142,8 +142,10 @@ code {
142142
td.rouge-code {
143143
@extend %code-snippet-padding;
144144

145-
// Prevent some browser extends from
146-
// changing the URL string of code block.
145+
/*
146+
Prevent some browser extends from
147+
changing the URL string of code block.
148+
*/
147149
a {
148150
color: inherit !important;
149151
border-bottom: none !important;
@@ -197,9 +199,9 @@ div {
197199
($dot-size + $dot-margin) * 2 0 0 var(--code-header-muted-color);
198200
}
199201

200-
// the label block
202+
/* the label block */
201203
span {
202-
// label icon
204+
/* label icon */
203205
i {
204206
font-size: 1rem;
205207
margin-right: 0.4rem;
@@ -212,10 +214,10 @@ div {
212214

213215
@at-root [file] #{&} > i {
214216
position: relative;
215-
top: 1px; // center the file icon
217+
top: 1px; /* center the file icon */
216218
}
217219

218-
// label text
220+
/* label text */
219221
&::after {
220222
content: attr(data-label-text);
221223
font-size: 0.85rem;
@@ -224,7 +226,7 @@ div {
224226
}
225227
}
226228

227-
// clipboard
229+
/* clipboard */
228230
button {
229231
@extend %cursor-pointer;
230232

0 commit comments

Comments
 (0)