2021-04-11 09:42:36 +00:00
|
|
|
:root {
|
|
|
|
--color-error: #cc0000;
|
2022-05-24 21:31:59 +00:00
|
|
|
--color-primary: #3dd9eb;
|
|
|
|
--color-secondary: #34495e;
|
2021-04-11 09:42:36 +00:00
|
|
|
--color-success: #5cb85c;
|
2022-05-24 21:31:59 +00:00
|
|
|
--color-tertiary: #6b7280;
|
2021-04-11 09:42:36 +00:00
|
|
|
--color-white: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-05-24 21:31:59 +00:00
|
|
|
color: inherit;
|
2021-04-11 09:42:36 +00:00
|
|
|
display: inline-block;
|
2022-05-24 21:31:59 +00:00
|
|
|
font-weight: bold;
|
|
|
|
outline: none;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:focus,
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2022-05-24 21:31:59 +00:00
|
|
|
color: var(--color-tertiary);
|
2021-04-11 09:42:36 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-10-13 12:46:45 +00:00
|
|
|
font-family: Inter, Arial, Helvetica, sans-serif;
|
2022-07-20 08:14:33 +00:00
|
|
|
height: 24rem;
|
2021-04-11 09:42:36 +00:00
|
|
|
width: 20rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2022-05-24 21:31:59 +00:00
|
|
|
outline: none;
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
2022-05-24 21:31:59 +00:00
|
|
|
footer {
|
2022-07-20 08:14:33 +00:00
|
|
|
background-color: var(--color-secondary);
|
2022-05-24 21:31:59 +00:00
|
|
|
font-size: 0.75rem;
|
2022-07-20 08:14:33 +00:00
|
|
|
height: 0.25rem;
|
2022-05-24 21:31:59 +00:00
|
|
|
margin-top: auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
align-items: center;
|
|
|
|
background-color: var(--color-secondary);
|
|
|
|
color: var(--color-white);
|
|
|
|
display: flex;
|
|
|
|
font-size: 1rem;
|
|
|
|
height: 3rem;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + .slider {
|
|
|
|
background-color: var(--color-secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
input:focus + .slider {
|
|
|
|
box-shadow: 0 0 0.0625rem var(--color-secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + .slider:before {
|
|
|
|
transform: translateX(1.25rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 1.25rem;
|
|
|
|
padding: 1rem;
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
strong {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-actions {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-actions > button {
|
|
|
|
border-radius: 0.125rem;
|
2022-05-24 21:31:59 +00:00
|
|
|
color: var(--color-white);
|
2021-04-11 09:42:36 +00:00
|
|
|
padding: 0.25rem;
|
|
|
|
transition: 0.4s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-actions > button:focus,
|
|
|
|
.header-actions > button:hover {
|
2022-05-24 21:31:59 +00:00
|
|
|
background-color: var(--color-white);
|
|
|
|
color: var(--color-secondary);
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.header-title {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
2022-07-20 08:14:33 +00:00
|
|
|
.contribute,
|
2021-04-11 09:42:36 +00:00
|
|
|
.help {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2022-07-20 08:14:33 +00:00
|
|
|
font-size: 0.875rem;
|
2021-04-11 09:42:36 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2022-07-20 08:14:33 +00:00
|
|
|
.contribute > a,
|
2021-04-11 09:42:36 +00:00
|
|
|
.help > a {
|
2022-05-24 21:31:59 +00:00
|
|
|
color: var(--color-secondary);
|
2021-04-11 09:42:36 +00:00
|
|
|
padding: 0.25rem;
|
|
|
|
transition: 0.4s;
|
|
|
|
}
|
|
|
|
|
2022-07-20 08:14:33 +00:00
|
|
|
.contribute > a:focus,
|
|
|
|
.contribute > a:hover,
|
2021-04-11 09:42:36 +00:00
|
|
|
.help > a:focus,
|
|
|
|
.help > a:hover {
|
2022-05-24 21:31:59 +00:00
|
|
|
background-color: var(--color-secondary);
|
2021-04-11 09:42:36 +00:00
|
|
|
border-radius: 0.125rem;
|
2022-05-24 21:31:59 +00:00
|
|
|
color: var(--color-white);
|
2021-04-11 09:42:36 +00:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rating {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
font-size: 0.875rem;
|
2022-07-20 08:14:33 +00:00
|
|
|
justify-content: space-between;
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.rating-actions {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rating-actions > button {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch {
|
|
|
|
display: inline-block;
|
|
|
|
flex-shrink: 0;
|
|
|
|
height: 1.25rem;
|
|
|
|
margin-left: 0.75rem;
|
|
|
|
position: relative;
|
|
|
|
width: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch input {
|
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch-label {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch-label > span {
|
|
|
|
line-height: 1.25rem;
|
2022-10-13 15:16:35 +00:00
|
|
|
word-break: break-all;
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.slider {
|
2022-05-24 21:31:59 +00:00
|
|
|
background-color: var(--color-tertiary);
|
2021-04-11 09:42:36 +00:00
|
|
|
bottom: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
transition: 0.4s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slider:before {
|
|
|
|
background-color: var(--color-white);
|
|
|
|
bottom: 0.25rem;
|
2022-05-05 18:11:43 +00:00
|
|
|
content: '';
|
2021-04-11 09:42:36 +00:00
|
|
|
height: 0.75rem;
|
|
|
|
left: 0.25rem;
|
|
|
|
position: absolute;
|
|
|
|
transition: 0.4s;
|
|
|
|
width: 0.75rem;
|
|
|
|
}
|
|
|
|
|
2022-05-24 21:31:59 +00:00
|
|
|
#like,
|
|
|
|
#unlike {
|
|
|
|
color: var(--color-secondary);
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0.25rem;
|
|
|
|
transition: 0.4s;
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
2022-05-24 21:31:59 +00:00
|
|
|
#like:focus,
|
|
|
|
#like:hover {
|
|
|
|
color: var(--color-success);
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|
|
|
|
|
2022-05-24 21:31:59 +00:00
|
|
|
#negative,
|
|
|
|
#positive {
|
|
|
|
background-color: var(--color-secondary);
|
|
|
|
border-radius: 0.125rem;
|
|
|
|
color: var(--color-white);
|
|
|
|
font-size: 0.75rem;
|
|
|
|
line-height: 1rem;
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-top: 1rem;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#unlike:focus,
|
|
|
|
#unlike:hover {
|
|
|
|
color: var(--color-error);
|
2021-04-11 09:42:36 +00:00
|
|
|
}
|