style: adjust border style

This commit is contained in:
Erzbir
2025-11-17 22:33:25 +08:00
parent 4f4c8448d5
commit 11ebd6f2bb
+15 -21
View File
@@ -21,6 +21,7 @@
--scrollbar-theme-width: thin; --scrollbar-theme-width: thin;
--scrollbar-theme-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0); --scrollbar-theme-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
--font-theme-lig: none; --font-theme-lig: none;
--border-theme-width: calc(var(--font-theme-size) * 0.125);
} }
html { html {
@@ -170,7 +171,7 @@ button {
background: transparent; background: transparent;
color: var(--color-theme-accent); color: var(--color-theme-accent);
padding: calc(var(--font-theme-size) * 0.315) calc(var(--font-theme-size) * 1.125); padding: calc(var(--font-theme-size) * 0.315) calc(var(--font-theme-size) * 1.125);
border: calc(var(--font-theme-size) * 0.25) solid var(--color-theme-accent); border: calc(var(--border-theme-width) * 2) solid var(--color-theme-accent);
border-radius: var(--radius-theme-default); border-radius: var(--radius-theme-default);
transition: background 0.15s linear; transition: background 0.15s linear;
appearance: none; appearance: none;
@@ -190,7 +191,7 @@ a:focus-visible {
fieldset { fieldset {
display: inline-block; display: inline-block;
border: calc(var(--font-theme-size) * 0.125) solid var(--color-theme-foreground); border: var(--border-theme-width) solid var(--color-theme-foreground);
border-radius: var(--radius-theme-default); border-radius: var(--radius-theme-default);
padding: calc(var(--font-theme-size) * 0.625); padding: calc(var(--font-theme-size) * 0.625);
} }
@@ -221,7 +222,7 @@ textarea,
select { select {
background: transparent; background: transparent;
color: var(--color-theme-foreground); color: var(--color-theme-foreground);
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground); border: calc(var(--border-theme-width) / 2) solid var(--color-theme-foreground);
border-radius: var(--radius-theme-default); border-radius: var(--radius-theme-default);
padding: calc(var(--font-theme-size) * 0.625); padding: calc(var(--font-theme-size) * 0.625);
font: inherit; font: inherit;
@@ -278,7 +279,6 @@ input[type="checkbox"]:checked {
img { img {
display: block; display: block;
max-width: 100%; max-width: 100%;
border: calc(var(--font-theme-size) * 0.25) solid var(--color-theme-accent);
border-radius: var(--radius-theme-default); border-radius: var(--radius-theme-default);
padding: calc(var(--font-theme-size) * 0.25); padding: calc(var(--font-theme-size) * 0.25);
overflow: hidden; overflow: hidden;
@@ -347,10 +347,6 @@ ol ol {
margin-top: 0; margin-top: 0;
} }
li::marker {
color: var(--color-theme-accent);
}
ul li, ul li,
ol li { ol li {
position: relative; position: relative;
@@ -360,18 +356,18 @@ code,
kbd { kbd {
font-family: inherit !important; font-family: inherit !important;
font-feature-settings: normal; font-feature-settings: normal;
background: color-mix(in srgb, var(--color-theme-foreground) 5%, transparent); background: color-mix(in srgb, var(--color-theme-foreground) 15%, transparent);
border: calc(var(--font-theme-size) * 0.0625) solid var(--code-border); border: calc(var(--border-theme-width) / 2) solid var(--code-border);
padding: calc(var(--font-theme-size) * 0.0625) calc(var(--font-theme-size) * 0.375); padding: calc(var(--font-theme-size) * 0.0625) calc(var(--font-theme-size) * 0.375);
margin: 0 calc(var(--font-theme-size) * 0.125); margin: 0 calc(var(--font-theme-size) * 0.125);
font-size: calc(var(--font-theme-size) * 0.95); font-size: calc(var(--font-theme-size) * 0.95);
} }
kbd { kbd {
border-top: calc(var(--font-theme-size) * 0.0625) solid color-mix(in srgb, var(--color-theme-accent) 25%, transparent); border-top: calc(var(--border-theme-width) / 2) solid color-mix(in srgb, var(--color-theme-accent) 25%, transparent);
border-left: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent); border-left: calc(var(--border-theme-width) / 2) solid var(--color-theme-accent);
border-right: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent); border-right: calc(var(--border-theme-width) / 2) solid var(--color-theme-accent);
border-bottom: calc(var(--font-theme-size) * 0.25) solid var(--color-theme-accent); border-bottom: calc(var(--border-theme-width) * 2) solid var(--color-theme-accent);
border-radius: calc(var(--font-theme-size) * 0.25); border-radius: calc(var(--font-theme-size) * 0.25);
} }
@@ -390,7 +386,7 @@ pre {
font-size: calc(var(--font-theme-size) * 0.95) !important; font-size: calc(var(--font-theme-size) * 0.95) !important;
overflow: auto; overflow: auto;
border-radius: var(--radius-theme-default); border-radius: var(--radius-theme-default);
border: calc(var(--font-theme-size) * 0.0625) solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent); border: calc(var(--border-theme-width) / 2) solid color-mix(in srgb, var(--color-theme-foreground) 10%, transparent);
@media (max-width: $phone-max-width) { @media (max-width: $phone-max-width) {
white-space: pre-wrap; white-space: pre-wrap;
@@ -431,9 +427,7 @@ mark {
blockquote { blockquote {
position: relative; position: relative;
border-top: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground); border-left: var(--border-theme-width) solid var(--color-theme-accent);
border-bottom: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-foreground);
border-left: calc(var(--font-theme-size) * 0.4) solid var(--color-theme-foreground);
margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625) 0; margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625) 0;
padding: calc(var(--font-theme-size) * 1.25); padding: calc(var(--font-theme-size) * 1.25);
} }
@@ -454,7 +448,7 @@ table {
table, table,
th, th,
td { td {
border: calc(var(--font-theme-size) * 0.125) solid var(--color-theme-foreground); border: var(--border-theme-width) solid var(--color-theme-foreground);
padding: calc(var(--font-theme-size) * 0.625); padding: calc(var(--font-theme-size) * 0.625);
} }
@@ -499,7 +493,7 @@ blockquote.twitter-tweet {
background: var(--color-theme-background); background: var(--color-theme-background);
font: inherit; font: inherit;
color: inherit; color: inherit;
border: calc(var(--font-theme-size) * 0.0625) solid var(--color-theme-accent); border: calc(var(--border-theme-width) / 2) solid var(--color-theme-accent);
padding-top: calc(var(--font-theme-size) * 3.75); padding-top: calc(var(--font-theme-size) * 3.75);
} }
@@ -550,6 +544,6 @@ blockquote.twitter-tweet::before {
} }
iframe[src*="youtube.com"] { iframe[src*="youtube.com"] {
border: calc(var(--font-theme-size) * 0.5) solid var(--color-theme-accent) !important; border: calc(var(--border-theme-width) * 2) solid var(--color-theme-accent) !important;
padding: calc(var(--font-theme-size) * 0.5) !important; padding: calc(var(--font-theme-size) * 0.5) !important;
} }