style: underline links in two-color schemes
This commit is contained in:
@@ -234,6 +234,7 @@ html[theme-color-scheme='matrix'] {
|
|||||||
| `--style-theme-title-divider` | `dashed` |
|
| `--style-theme-title-divider` | `dashed` |
|
||||||
| `--radius-theme-border` | `0` |
|
| `--radius-theme-border` | `0` |
|
||||||
| `--text-decoration-theme-link` | `none` |
|
| `--text-decoration-theme-link` | `none` |
|
||||||
|
| `--text-decoration-theme-post-link` | `var(--text-decoration-theme-link)` |
|
||||||
| `--lig-theme-font` | `none` |
|
| `--lig-theme-font` | `none` |
|
||||||
| `--width-theme-scrollbar` | `thin` |
|
| `--width-theme-scrollbar` | `thin` |
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--text-decoration-theme-link: none;
|
--text-decoration-theme-link: none;
|
||||||
|
--text-decoration-theme-post-link: var(--text-decoration-theme-link);
|
||||||
--list-theme-marker: "►";
|
--list-theme-marker: "►";
|
||||||
--size-theme-font: 1rem;
|
--size-theme-font: 1rem;
|
||||||
--height-theme-line: calc(var(--size-theme-font) * 1.8);
|
--height-theme-line: calc(var(--size-theme-font) * 1.8);
|
||||||
|
|||||||
@@ -133,6 +133,7 @@
|
|||||||
|
|
||||||
.post-content-body a {
|
.post-content-body a {
|
||||||
color: var(--color-theme-post-link);
|
color: var(--color-theme-post-link);
|
||||||
|
text-decoration: var(--text-decoration-theme-post-link);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-cover {
|
.post-cover {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@use "sass:map";
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--color-theme-background: #f4f4f4;
|
--color-theme-background: #f4f4f4;
|
||||||
--color-theme-foreground: #3e3e3e;
|
--color-theme-foreground: #3e3e3e;
|
||||||
@@ -113,5 +115,9 @@ $color-schemes: (
|
|||||||
@each $role, $color in $scheme-colors {
|
@each $role, $color in $scheme-colors {
|
||||||
--color-theme-#{$role}: #{$color};
|
--color-theme-#{$role}: #{$color};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if map.get($scheme-colors, "foreground") == map.get($scheme-colors, "accent") {
|
||||||
|
--text-decoration-theme-post-link: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user