566 lines
9.7 KiB
SCSS
566 lines
9.7 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;
|
|
}
|
|
|
|
.weather-location {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.day-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin-bottom: 0;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.day-picker a {
|
|
color: inherit;
|
|
}
|
|
|
|
.day-picker>a {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
line-height: 0;
|
|
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;
|
|
display: flex;
|
|
gap: 10px;
|
|
|
|
>span {
|
|
line-height: 2;
|
|
font-size: 25px;
|
|
}
|
|
}
|
|
|
|
.task-composer {
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
margin-bottom: 50px;
|
|
flex-direction: column;
|
|
|
|
&__submit {
|
|
display: flex;
|
|
}
|
|
|
|
form.task-composer__form {
|
|
width: 100%;
|
|
max-width: unset;
|
|
box-shadow: unset;
|
|
|
|
label,
|
|
input,
|
|
textarea {
|
|
max-width: unset;
|
|
}
|
|
}
|
|
|
|
&__main {
|
|
width: 100%;
|
|
}
|
|
&__heading {
|
|
padding: 25px;
|
|
h2 {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
&__row {
|
|
display: flex;
|
|
gap: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
&__details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
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;
|
|
color: #000;
|
|
a.task-list__title:focus,
|
|
a.task-list__title:active,
|
|
a.task-list__title:visited
|
|
{
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.task-result-container {
|
|
|
|
.task-result {
|
|
color: #000;
|
|
padding: 25px;
|
|
margin: 25px;
|
|
|
|
h2 {
|
|
color: #fff;
|
|
font-size: 25px;
|
|
}
|
|
|
|
h3 {
|
|
color: #000;
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.htmx-indicator {
|
|
display: none;
|
|
}
|
|
|
|
.htmx-request.htmx-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.spinner {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
|
|
.request-failed {
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.request-failed:not([hidden]) {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.suggested-tasks {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 25px;
|
|
padding: 25px;
|
|
background-color: #fff;
|
|
|
|
>li {
|
|
outline: 1px solid black;
|
|
width: 100%;
|
|
position: relative;
|
|
|
|
button {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 15px;
|
|
border-radius: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
>article {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
padding: 25px;
|
|
|
|
.summary {}
|
|
|
|
.info {
|
|
ul {
|
|
display: flex;
|
|
gap: 20px;
|
|
|
|
li {
|
|
display: flex;
|
|
gap: 20px;
|
|
|
|
span:first-of-type {
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.braindump-form {
|
|
width: 100%;
|
|
box-shadow: unset;
|
|
max-width: unset;
|
|
position: relative;
|
|
background-color: #fff;
|
|
|
|
textarea {
|
|
max-width: unset;
|
|
}
|
|
}
|
|
|
|
.thinking {
|
|
// display: block;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
transition: 0.3s all ease-in-out;
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
font-size: 2em;
|
|
color: #fff;
|
|
inset: 0;
|
|
z-index: -1;
|
|
opacity: 0;
|
|
|
|
&.htmx-request {
|
|
// display: block;
|
|
z-index: 10;
|
|
opacity: 1;
|
|
|
|
}
|
|
}
|
|
.weather-refresh {
|
|
box-shadow: unset;
|
|
border: unset;
|
|
}
|
|
.user {
|
|
border-radius: 100%;
|
|
height: 50px;
|
|
width: 50px;
|
|
background-color: #fff;
|
|
border-color: #aaa;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-transform: uppercase;
|
|
color: #000;
|
|
font-weight: 700;
|
|
font-size: 1.6em;
|
|
line-height: 1;
|
|
// temporary?
|
|
position: fixed;
|
|
top: 50px;
|
|
right: 50px;
|
|
&:visited,
|
|
&:focus {
|
|
color: inherit;
|
|
}
|
|
} |