Fix upvote button styling
This commit is contained in:
parent
0faefe6a9f
commit
a940ba2b52
@ -18,6 +18,7 @@
|
|||||||
--transition-duration-outline: var(--transition-duration-medium);
|
--transition-duration-outline: var(--transition-duration-medium);
|
||||||
transition:
|
transition:
|
||||||
background-color ease-out var(--transition-duration-bg-color),
|
background-color ease-out var(--transition-duration-bg-color),
|
||||||
|
background-blend-mode ease-out var(--transition-duration-bg-color),
|
||||||
filter ease-out var(--transition-duration-filter),
|
filter ease-out var(--transition-duration-filter),
|
||||||
outline ease-in var(--transition-duration-outline);
|
outline ease-in var(--transition-duration-outline);
|
||||||
|
|
||||||
@ -63,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.destructive:not(.suggested) {
|
&.destructive:not(.suggested) {
|
||||||
--btn-color: #861c1c;
|
--btn-color: var(--color-destructive);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
@ -72,8 +73,10 @@
|
|||||||
|
|
||||||
&.icon {
|
&.icon {
|
||||||
--text-color: transparent;
|
--text-color: transparent;
|
||||||
background: var(--icon-url) no-repeat;
|
background-image: var(--icon-url);
|
||||||
|
background-repeat: no-repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
|
mask: var(--icon-url) center / contain no-repeat;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: var(--icon-size, 1rem);
|
width: var(--icon-size, 1rem);
|
||||||
height: var(--icon-size, 1rem);
|
height: var(--icon-size, 1rem);
|
||||||
|
@ -124,12 +124,7 @@ h1 {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
--text-color: var(--accent-color);
|
--text-color: var(--accent-color);
|
||||||
|
color: var(--text-color);
|
||||||
/*
|
|
||||||
Why doesn't it do this automatically? It is inherited from body,
|
|
||||||
so I should be able to just change --text-color, right?
|
|
||||||
*/
|
|
||||||
color: var(--text-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.upvote {
|
.upvote {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
--fg-color: #555;
|
--fg-color: #555;
|
||||||
--text-color: #dbdbdb;
|
--text-color: #dbdbdb;
|
||||||
--accent-color: oklch(65.33% 0.158 247.76);
|
--accent-color: oklch(65.33% 0.158 247.76);
|
||||||
|
--color-destructive: red;
|
||||||
--pad-datasets-block: 1rem;
|
--pad-datasets-block: 1rem;
|
||||||
--pad-datasets-inline: 2rem;
|
--pad-datasets-inline: 2rem;
|
||||||
--gap-large: 1.5rem;
|
--gap-large: 1.5rem;
|
||||||
@ -15,7 +16,7 @@
|
|||||||
--corner-radius: 1rem;
|
--corner-radius: 1rem;
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
scrollbar-gutter: stable both-edges;
|
scrollbar-gutter: stable;
|
||||||
scrollbar-color: var(--fg-color) var(--bg-color);
|
scrollbar-color: var(--fg-color) var(--bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +149,7 @@ header {
|
|||||||
--icon-size: 2rem;
|
--icon-size: 2rem;
|
||||||
|
|
||||||
&:disabled {
|
&:disabled {
|
||||||
--brightness: 1.75;
|
--brightness: 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,6 +167,11 @@ header {
|
|||||||
|
|
||||||
#reset-tools-btn {
|
#reset-tools-btn {
|
||||||
--icon-url: url(reset.svg);
|
--icon-url: url(reset.svg);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
--btn-color: var(--color-destructive);
|
||||||
|
background-blend-mode: screen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#sort-btn {
|
#sort-btn {
|
||||||
@ -179,7 +185,7 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:is(.upvote-btn, .downvote-btn).isVoted {
|
:is(.upvote-btn, .downvote-btn).isVoted {
|
||||||
--brightness: 1.1;
|
--brightness: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
select * {
|
select * {
|
||||||
|
Loading…
Reference in New Issue
Block a user