Added vote button en/disabling, remaining vote count

This commit is contained in:
2021-03-28 13:15:54 +02:00
parent 22096f43eb
commit 21f7623859
3 changed files with 92 additions and 11 deletions

View File

@ -3,7 +3,8 @@
--main-bg-color: rgb(48, 48, 48);
--secondary-bg-color: rgba(10, 10, 10, 0.7);
--main-fg-color: white;
--main-accent-color: rgb(253, 122, 0)
--main-accent-color: rgb(253, 122, 0);
--disabled-color: gray;
}
@supports (color: color(display-p3 1 1 1)) {
:root {
@ -28,6 +29,29 @@ body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
button {
background-color: var(--main-accent-color);
outline: 1px solid var(--main-fg-color);
color: var(--main-fg-color);
cursor: pointer;
border: none;
transition: all 0.2s;
}
button:hover:not(:disabled) {
box-shadow: 4px 6px 3px 0 var(--secondary-bg-color);
transform: translate(-2px, -2px);
}
button:disabled {
background-color: var(--disabled-color);
cursor: not-allowed;
}
.hidden {
display: none;
}
/* Header */
header {
display: flex;
@ -93,3 +117,7 @@ datewrapper time {
grid-template-columns: auto 1fr;
grid-column-gap: 8px;
}
.votes-remaining {
font-size: small;
}