355 lines
6.4 KiB
SCSS
355 lines
6.4 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);
|
|
}
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
}
|
|
.logo {
|
|
height: 60px;
|
|
width: auto;
|
|
}
|
|
.mascots {
|
|
height: 150px;
|
|
width: auto;
|
|
margin-left: auto;
|
|
}
|
|
.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;
|
|
}
|
|
|
|
|
|
.day-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.day-picker a {
|
|
color: inherit;
|
|
}
|
|
|
|
.day-picker > a {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
font-size: 2rem;
|
|
text-decoration: none;
|
|
border: 1px solid rgb(255 255 255 / .5);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.day-picker strong,
|
|
.day-picker div a {
|
|
display: block;
|
|
}
|
|
// 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;
|
|
}
|
|
}
|
|
.weather-forecast {
|
|
font-size: 2em;
|
|
margin-bottom: 50px;
|
|
color: #fff;
|
|
}
|
|
.task-composer {
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
margin-bottom: 50px;
|
|
flex-direction: column;
|
|
|
|
form.task-composer__form {
|
|
width: 100%;
|
|
max-width: unset;
|
|
box-shadow: unset;
|
|
label,
|
|
input,
|
|
textarea{
|
|
max-width: unset;
|
|
}
|
|
}
|
|
&__main {
|
|
width: 100%;
|
|
}
|
|
&__details {
|
|
display: flex;
|
|
gap: 25px;
|
|
input[type=checkbox] {
|
|
height: 30px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.task-composer__repeat {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: .5rem;
|
|
}
|
|
|
|
.task-composer__repeat-input {
|
|
width: auto;
|
|
height: 1.25rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.task-composer__repeat-fields {
|
|
display: none;
|
|
flex-basis: 100%;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 1rem;
|
|
padding: .75rem;
|
|
background: #f2fbff;
|
|
border-radius: .5rem;
|
|
}
|
|
|
|
.task-composer__repeat-input:checked ~ .task-composer__repeat-fields {
|
|
display: grid;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.task-composer__repeat-fields {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.task-list__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: .5rem;
|
|
background-color: #fff;
|
|
form {
|
|
background-color: #fff;
|
|
outline: unset;
|
|
border: unset;
|
|
box-shadow: unset;
|
|
|
|
}
|
|
}
|
|
|
|
.task-list__recurrence {
|
|
margin-left: auto;
|
|
color: #4f7280;
|
|
font-size: .8rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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;
|
|
} |