@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-composer { padding: 1.25rem; margin-bottom: 1.5rem; color: #07384d; background: #f4fbfe; border: 1px solid #b9e3f3; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgb(7 56 77 / .1); } .task-composer__heading h2, .task-composer__heading p { margin: 0; } .task-composer__heading p { margin-top: .25rem; color: #4f7280; } .task-composer__form { display: grid; gap: .875rem; margin-top: 1rem; } .task-composer label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 600; } .task-composer input:not([type='checkbox']), .task-composer select, .task-composer textarea { box-sizing: border-box; width: 100%; margin: 0; border-color: #9ccfdf; } .task-composer__main input { font-size: 1.05rem; } .task-composer__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; } .task-composer__checks { display: flex; gap: .75rem; padding-bottom: .45rem; } .task-composer__checks > div { display: flex; align-items: center; gap: .35rem; } .task-composer__checks label { order: 2; margin: 0; white-space: nowrap; } .task-composer__checks input { margin: 0; } .task-composer__notes { margin: 0; } .task-composer__notes summary { color: #087aa9; } .task-composer__notes textarea { margin-top: .6rem; } .task-composer__actions { display: flex; justify-content: flex-end; } .task-composer__submit { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .65rem 1rem; color: #fff; background: #087aa9; border: 0; border-radius: .5rem; } .task-composer__submit:hover { background: #06668c; } @media (max-width: 720px) { .task-composer__details { grid-template-columns: repeat(2, minmax(0, 1fr)); } .task-composer__checks { grid-column: 1 / -1; } } .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; }