refactor: rename variables

This commit is contained in:
Erzbir
2025-08-04 11:57:15 +08:00
parent 7d63249b1e
commit 8e3cd1ae8d
5 changed files with 28 additions and 28 deletions
+23 -23
View File
@@ -10,16 +10,16 @@
--color-theme-framed: ;
--color-theme-menu: ;
--color-theme-header: ;
--list-marker: "►";
--font-size: 1rem;
--line-height: 1.54em;
--radius: 0;
--list-theme-marker: "►";
--font-theme-size: 1rem;
--line-theme-height: 1.54em;
--radius-theme-default: 0;
--font-theme-default: 'JetBrains Mono';
--font--theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui',
--font-theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui',
Roboto, Oxygen, Ubuntu, Cantarell, 'open sans', 'helvetica neue';
@media (max-width: $phone-max-width) {
--font-size: 0.95rem;
--font-theme-size: 0.95rem;
}
}
@@ -48,9 +48,9 @@ html[pixel_style='true'] {
body {
margin: 0;
padding: 0;
font-family: var(--font-theme-default), var(--font--theme-fallback), sans-serif;
font-size: var(--font-size);
line-height: var(--line-height);
font-family: var(--font-theme-default), var(--font-theme-fallback), sans-serif;
font-size: var(--font-theme-size);
line-height: var(--line-theme-height);
background-color: var(--color-theme-background);
color: var(--color-theme-foreground);
text-rendering: optimizelegibility;
@@ -60,24 +60,24 @@ body {
}
h1 {
font-size: calc(var(--font-size) * 1.45);
font-size: calc(var(--font-theme-size) * 1.45);
letter-spacing: 0;
}
h2 {
font-size: calc(var(--font-size) * 1.35);
font-size: calc(var(--font-theme-size) * 1.35);
letter-spacing: 0;
}
h3 {
font-size: calc(var(--font-size) * 1.15);
font-size: calc(var(--font-theme-size) * 1.15);
letter-spacing: 0;
}
h4,
h5,
h6 {
font-size: calc(var(--font-size) * 1);
font-size: calc(var(--font-theme-size) * 1);
letter-spacing: 0;
}
@@ -112,7 +112,7 @@ button {
color: var(--color-theme-accent);
padding: 5px 18px;
border: 4px solid var(--color-theme-accent);
border-radius: var(--radius);
border-radius: var(--radius-theme-default);
transition: background 0.15s linear;
appearance: none;
cursor: pointer;
@@ -132,7 +132,7 @@ a:focus-visible {
fieldset {
display: inline-block;
border: 2px solid var(--color-theme-foreground);
border-radius: calc(var(--radius) * 1.6);
border-radius: calc(var(--radius-theme-default) * 1.6);
padding: 10px;
}
@@ -145,7 +145,7 @@ fieldset select,
fieldset textarea,
fieldset label,
fieldset button {
margin-top: calc(var(--line-height) * 0.5);
margin-top: calc(var(--line-theme-height) * 0.5);
width: 100%;
}
@@ -163,7 +163,7 @@ select {
background: transparent;
color: var(--color-theme-foreground);
border: 1px solid var(--color-theme-foreground);
border-radius: var(--radius);
border-radius: var(--radius-theme-default);
padding: 10px;
font: inherit;
appearance: none;
@@ -221,7 +221,7 @@ img {
display: block;
max-width: 100%;
border: 4px solid var(--color-theme-accent);
border-radius: var(--radius);
border-radius: var(--radius-theme-default);
padding: 4px;
overflow: hidden;
}
@@ -265,11 +265,11 @@ figure figcaption {
background: var(--color-theme-accent);
color: var(--color-theme-background);
text-align: center;
font-size: var(--font-size);
font-size: var(--font-theme-size);
font-weight: normal;
margin-top: -8px;
padding: 0 8px;
border-radius: 0 0 var(--radius) var(--radius);
border-radius: 0 0 var(--radius-theme-default) var(--radius-theme-default);
}
figure figcaption p:first-child {
@@ -306,7 +306,7 @@ kbd {
border: 1px solid var(--code-border);
padding: 1px 6px;
margin: 0 2px;
font-size: calc(var(--font-size) * 0.95);
font-size: calc(var(--font-theme-size) * 0.95);
}
kbd {
@@ -329,9 +329,9 @@ pre {
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent) !important;
color: var(--color-theme-foreground);
padding: 10px 10px;
font-size: calc(var(--font-size) * 0.95) !important;
font-size: calc(var(--font-theme-size) * 0.95) !important;
overflow: auto;
border-radius: var(--radius);
border-radius: var(--radius-theme-default);
border: 1px solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
@media (max-width: $phone-max-width) {