2021-03-27 19:37:17 +00:00
|
|
|
/* Globals */
|
|
|
|
:root {
|
|
|
|
--main-bg-color: rgb(48, 48, 48);
|
|
|
|
--secondary-bg-color: rgba(10, 10, 10, 0.7);
|
|
|
|
--main-fg-color: white;
|
2021-03-28 11:15:54 +00:00
|
|
|
--main-accent-color: rgb(253, 122, 0);
|
|
|
|
--disabled-color: gray;
|
2021-03-28 19:19:04 +00:00
|
|
|
--green: green;
|
2021-03-27 19:37:17 +00:00
|
|
|
}
|
|
|
|
@supports (color: color(display-p3 1 1 1)) {
|
|
|
|
:root {
|
|
|
|
--main-accent-color: color(display-p3 0.927 0.506 0.028)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a:visited, a {
|
|
|
|
color: var(--main-accent-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
a svg {
|
|
|
|
stroke: var(--main-accent-color);
|
|
|
|
width: 1.5em;
|
|
|
|
height: 1.5em;
|
|
|
|
stroke-width: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: var(--main-bg-color);
|
|
|
|
color: var(--main-fg-color);
|
|
|
|
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";
|
|
|
|
}
|
|
|
|
|
2021-03-28 11:15:54 +00:00
|
|
|
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 {
|
2021-03-28 19:19:04 +00:00
|
|
|
display: none !important;
|
2021-03-28 11:15:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 19:37:17 +00:00
|
|
|
/* Header */
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
background: var(--secondary-bg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.spacer {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.linklabel {
|
|
|
|
margin-left: 0.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.linkcontents {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.homelink {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Polls */
|
|
|
|
.poll {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll .header {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll .user {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll .user .avatar {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.datewrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-column-gap: 8px;
|
2021-03-28 19:19:04 +00:00
|
|
|
margin-left: 8px;
|
2021-03-27 19:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.created_at {
|
|
|
|
grid-row: 1;
|
|
|
|
}
|
|
|
|
.closed_at {
|
|
|
|
grid-row: 2;
|
|
|
|
}
|
|
|
|
datewrapper time {
|
|
|
|
grid-column: 2;
|
|
|
|
}
|
2021-03-27 20:15:07 +00:00
|
|
|
|
|
|
|
.options {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto 1fr;
|
|
|
|
grid-column-gap: 8px;
|
|
|
|
}
|
2021-03-28 11:15:54 +00:00
|
|
|
|
|
|
|
.votes-remaining {
|
|
|
|
font-size: small;
|
|
|
|
}
|
2021-03-28 19:19:04 +00:00
|
|
|
|
|
|
|
/* Success banner */
|
|
|
|
.success-banner {
|
|
|
|
background-color: var(--green);
|
|
|
|
padding: 8px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.5s ease-in;
|
|
|
|
}
|
|
|
|
|
|
|
|
.success-banner.hiding {
|
|
|
|
transform: translateX(-150%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.success-banner span {
|
|
|
|
font-size: x-large;
|
|
|
|
}
|