Skip to content

Commit 1777139

Browse files
committed
style(css): enhance code readability and maintainability by reformatting CSS rules and improving variable naming
Refactor CSS to improve readability and maintainability by reformatting rules for better visual hierarchy. Introduce more descriptive variable names for color themes and enhance the dark mode support. This change aims to make the styles more consistent and easier to understand, while also providing a more visually appealing and accessible user interface.
1 parent 78649f7 commit 1777139

File tree

3 files changed

+598
-255
lines changed

3 files changed

+598
-255
lines changed

src/styles/code-highlight.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ pre {
148148
color: var(--hue-3);
149149
}
150150

151-
.language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation {
151+
.language-javascript
152+
.token.template-string
153+
> .token.interpolation
154+
> .token.interpolation-punctuation.punctuation {
152155
color: var(--hue-5-2);
153156
}
154157

@@ -276,7 +279,9 @@ div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
276279

277280
/* Hovering over a linkable line number (in the gutter area) */
278281
/* Requires Line Numbers plugin as well */
279-
pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before {
282+
pre[id].linkable-line-numbers.linkable-line-numbers
283+
span.line-numbers-rows
284+
> span:hover:before {
280285
background-color: var(--syntax-cursor-line);
281286
}
282287

0 commit comments

Comments
 (0)