Improve SCSS comment symbols: change // to /* */

This commit is contained in:
Cotes Chung
2022-02-14 23:18:24 +08:00
parent 508d3c5c6a
commit 4986db1204
4 changed files with 57 additions and 55 deletions

View File

@@ -99,7 +99,7 @@ $code-radius: 6px;
user-select: none;
}
} //.highlight
} /* .highlight */
code {
-webkit-hyphens: none;
@@ -122,7 +122,7 @@ code {
}
a > &.highlighter-rouge {
padding-bottom: 0; // show link's underlinke
padding-bottom: 0; /* show link's underlinke */
color: inherit;
}
@@ -142,8 +142,10 @@ code {
td.rouge-code {
@extend %code-snippet-padding;
// Prevent some browser extends from
// changing the URL string of code block.
/*
Prevent some browser extends from
changing the URL string of code block.
*/
a {
color: inherit !important;
border-bottom: none !important;
@@ -197,9 +199,9 @@ div {
($dot-size + $dot-margin) * 2 0 0 var(--code-header-muted-color);
}
// the label block
/* the label block */
span {
// label icon
/* label icon */
i {
font-size: 1rem;
margin-right: 0.4rem;
@@ -212,10 +214,10 @@ div {
@at-root [file] #{&} > i {
position: relative;
top: 1px; // center the file icon
top: 1px; /* center the file icon */
}
// label text
/* label text */
&::after {
content: attr(data-label-text);
font-size: 0.85rem;
@@ -224,7 +226,7 @@ div {
}
}
// clipboard
/* clipboard */
button {
@extend %cursor-pointer;