Skip to content

Commit b278cf3

Browse files
committed
gradient type style changes
1 parent 6e5801e commit b278cf3

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

src/components/GradientType.svelte

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@
7272
border: 1px solid transparent;
7373
padding: var(--size-2);
7474
place-content: center;
75-
color: var(--text-2);
75+
color: oklch(from var(--text-2) l c h / 50%);
7676
}
7777
78-
.switch:hover {
79-
background: var(--surface-1);
78+
.switch:is(:hover, :focus-visble) {
79+
border-color: var(--surface-3);
80+
color: var(--text-1);
8081
}
8182
8283
.switch:has(input:focus-visible) {
@@ -85,18 +86,7 @@
8586
8687
.switch:has(input:checked) {
8788
color: var(--text-1);
88-
background: var(--surface-2);
89-
border-color: var(--surface-4);
90-
}
91-
92-
@media (prefers-color-scheme: light) {
93-
.switch:hover {
94-
background: var(--surface-2);
95-
}
96-
97-
.switch:has(input:checked) {
98-
background: var(--surface-2);
99-
}
89+
border-color: var(--link);
10090
}
10191
10292
.switch > * {

0 commit comments

Comments
 (0)