Skip to content

Commit

Permalink
Code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
brookback committed Nov 29, 2023
1 parent da743b2 commit 93cabb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
13 changes: 1 addition & 12 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,31 +248,20 @@ td {
}

pre {
--tab-size: 2;
--top-inset: calc(var(--lineheight) / 2);

direction: ltr;
text-align: left;
line-height: var(--leading);
white-space: pre;
word-spacing: normal;
word-break: normal;
hyphens: none;
tab-size: var(--tab-size);
background: var(--pre-background);
tab-size: 2;
color: var(--code-color);
border-radius: 8px;
padding: var(--top-inset) calc(var(--lineheight));
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: none;
font-size: var(--f5);
overflow: auto;
position: relative;

@media screen and (max-width: 480px) {
padding-left: 0.25em;
}

& .line-highlight {
--cycle: 27px;
--color: 112 20% 50%;
Expand Down
11 changes: 0 additions & 11 deletions src/css/prism-matrix.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
/* Matrix theme in light and dark versions by Johan. */

code[class*='language-'],
pre[class*='language-'] {
color: hsl(112 30% 30%);
background-color: hsl(112 29.98% 97%);

@media (prefers-color-scheme: dark) {
color: hsl(112, 70%, 80%);
background-color: hsl(112, 1.27%, 13.33%);
}
}

.token {
--hue: 112;
--sat: 40%;
Expand Down

0 comments on commit 93cabb2

Please sign in to comment.