Skip to content

Commit 9223809

Browse files
committed
Use current color as selection
1 parent 4a0d22c commit 9223809

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

view/base/colors.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
--danger: oklch(0.59 0.23 7);
2121
--border-p3: oklch(1 0 0 / 50%);
2222
--border-rec2020: oklch(1 0 0 / 75%);
23+
--selection-text: oklch(1 0 0);
2324
}
2425

2526
@media (prefers-color-scheme: dark) {

view/base/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ select {
4747
}
4848
}
4949

50+
::selection {
51+
color: var(--selection-text);
52+
background: var(--accent);
53+
}
54+
5055
body.is-loading * {
5156
&, &::before, &::after {
5257
transition: none !important;

0 commit comments

Comments
 (0)