220 lines
4.3 KiB
SCSS
220 lines
4.3 KiB
SCSS
@use 'reset';
|
|
@use 'mvp';
|
|
|
|
// Self-hosted font assets, bundled and versioned by Webpack Encore.
|
|
@import '@fontsource/noto-sans/latin-400.css';
|
|
@import '@fontsource/noto-sans/latin-600.css';
|
|
@import 'material-symbols/outlined.css';
|
|
|
|
body {
|
|
background-color: #108ac2;
|
|
font-family: 'Noto Sans', sans-serif;
|
|
}
|
|
:root {
|
|
--container-max: 1280px;
|
|
--container-gutter: clamp(1rem, 3vw, 2rem);
|
|
}
|
|
|
|
.container {
|
|
width: min(100% - (2 * var(--container-gutter)), var(--container-max));
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.container-flex {
|
|
width: min(100% - (2 * var(--container-gutter)), var(--container-max));
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.container-flex--narrow { --container-max: 720px; } // readable text/forms
|
|
.container-flex--wide { --container-max: 1440px; } // dashboards/grids
|
|
.container-flex--full { --container-max: none; } // still preserves gutters
|
|
|
|
.task-list-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-block: 2rem 1rem;
|
|
}
|
|
|
|
.task-list {
|
|
display: grid;
|
|
gap: .5rem;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.social-battery {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1.5rem;
|
|
padding: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
color: #07384d;
|
|
background: #d9f4ff;
|
|
border-radius: 1rem;
|
|
}
|
|
|
|
.social-battery h2,
|
|
.social-battery p {
|
|
margin: 0;
|
|
}
|
|
|
|
.social-battery p {
|
|
margin-top: .25rem;
|
|
}
|
|
|
|
.social-battery__levels {
|
|
display: flex;
|
|
gap: .25rem;
|
|
}
|
|
|
|
.social-battery__input {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.social-battery__levels label {
|
|
display: grid!important;
|
|
place-items: center;
|
|
width: 2.25rem;
|
|
height: 2.25rem;
|
|
cursor: pointer;
|
|
color: #4f7280;
|
|
border-radius: .5rem;
|
|
transition: color .15s ease, background-color .15s ease, transform .15s ease;
|
|
}
|
|
|
|
.social-battery__levels label:hover {
|
|
color: #07384d;
|
|
background: #fff;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.social-battery__input:checked + label {
|
|
color: #fff;
|
|
background: #087aa9;
|
|
}
|
|
|
|
.social-battery__input:focus-visible + label {
|
|
outline: 3px solid #07384d;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.social-battery {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.task-list__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: .5rem;
|
|
}
|
|
|
|
.task-list__completion-form {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
gap: .75rem;
|
|
}
|
|
|
|
.task-list__checkbox,
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.task-list__toggle {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
cursor: pointer;
|
|
color: #d9f4ff;
|
|
border-radius: 50%;
|
|
transition: color .15s ease, background-color .15s ease, transform .15s ease;
|
|
}
|
|
|
|
.task-list__toggle:hover {
|
|
background-color: rgb(255 255 255 / .14);
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.task-list__toggle-icon {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.task-list__toggle-icon--checked {
|
|
display: none;
|
|
color: #0b5d2c;
|
|
}
|
|
|
|
.task-list__checkbox:checked + .task-list__toggle {
|
|
color: #8df0ae;
|
|
}
|
|
|
|
.task-list__checkbox:checked + .task-list__toggle .task-list__toggle-icon--unchecked {
|
|
display: none;
|
|
}
|
|
|
|
.task-list__checkbox:checked + .task-list__toggle .task-list__toggle-icon--checked {
|
|
display: block;
|
|
}
|
|
|
|
.task-list__checkbox:focus-visible + .task-list__toggle {
|
|
outline: 3px solid #fff;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.task-list__remove {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
color: #ffe0e0;
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: .5rem;
|
|
transition: color .15s ease, background-color .15s ease, transform .15s ease;
|
|
}
|
|
|
|
.task-list__remove:hover {
|
|
color: #fff;
|
|
background-color: #a71d1d;
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.task-list__remove:focus-visible {
|
|
outline: 3px solid #fff;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.task-list__title {
|
|
color: inherit;
|
|
}
|
|
|
|
.task-list__item--completed .task-list__title {
|
|
opacity: .65;
|
|
text-decoration: line-through;
|
|
}
|