added mvp.css and more default styling
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@use 'reset';
|
||||
@use 'mvp';
|
||||
|
||||
// Self-hosted font assets, bundled and versioned by Webpack Encore.
|
||||
@import '@fontsource/noto-sans/latin-400.css';
|
||||
@@ -9,3 +10,106 @@ 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;
|
||||
}
|
||||
|
||||
.task-list__item form {
|
||||
display: flex;
|
||||
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__title {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.task-list__item--completed .task-list__title {
|
||||
opacity: .65;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user