progressing with scss conversion

This commit is contained in:
Joren de Graaf
2026-10-07 13:03:22 +02:00
parent 2a0603f463
commit c15679150c
94 changed files with 6624 additions and 2039 deletions
+415
View File
@@ -0,0 +1,415 @@
:root {
--ink: #eef3ff;
--muted: #aab9d8;
--line: #2b3d68;
--blue: #8abaff;
--violet: #b69cff;
--amber: #ffbd62;
}
* {
box-sizing: border-box;
}
body {
min-width: 320px;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
padding: 1.5rem;
color: var(--ink);
font-family: var(--font-ui);
background: radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d;
}
.welcome-card {
width: min(100%,44rem);
position: relative;
overflow: hidden;
padding: clamp(2rem,7vw,4.75rem);
border: 1px solid var(--line);
border-radius: 1.5rem;
background: linear-gradient(145deg,#172443e8,#10182ddd);
box-shadow: 0 1.75rem 5rem #01030c99;
backdrop-filter: blur(16px);
&::before {
content: "";
width: 15rem;
height: 15rem;
position: absolute;
top: -8rem;
right: -6rem;
border-radius: 50%;
background: linear-gradient(135deg,#609df177,#b27be266);
filter: blur(1px);
}
&::after {
content: "";
width: 10rem;
height: 10rem;
position: absolute;
bottom: -6rem;
left: -4rem;
border-radius: 50%;
background: #f4a74225;
}
}
.brand {
display: flex;
align-items: center;
gap: .65rem;
margin-bottom: clamp(2rem,5vw,4rem);
color: #d9e5ff;
font-size: .78rem;
font-weight: 900;
letter-spacing: .14em;
text-transform: uppercase;
}
.brand-mark {
display: grid;
width: 2.2rem;
aspect-ratio: 1;
place-items: center;
border-radius: .7rem;
color: #17132b;
font-size: 1.1rem;
background: linear-gradient(135deg,#fcd34d,#fb7185);
box-shadow: 0 .5rem 1.5rem #fb718550;
}
.eyebrow {
margin: 0 0 .8rem;
color: #bad3ff;
font-size: .76rem;
font-weight: 800;
letter-spacing: .14em;
text-transform: uppercase;
&::before {
content: "";
display: inline-block;
width: .55rem;
height: .55rem;
margin-right: .45rem;
border-radius: 50%;
background: var(--amber);
box-shadow: 0 0 0 .25rem #fbbf2430;
}
}
h1 {
max-width: 10ch;
margin: 0;
font-size: clamp(2.8rem,8vw,5.75rem);
line-height: .96;
letter-spacing: -.065em;
}
.subject {
max-width: 33rem;
margin: 1.35rem 0 0;
color: var(--muted);
font-size: clamp(1rem,2vw,1.15rem);
line-height: 1.65;
strong {
color: #e8efff;
}
}
.sparkle {
color: var(--violet);
font-size: 1.2em;
}
.actions {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2.25rem;
}
.profile-circle {
display: grid;
width: 3rem;
height: 3rem;
position: fixed;
top: 1.25rem;
right: 1.25rem;
place-items: center;
border: 1px solid #d0c0ff;
border-radius: 50%;
z-index: 2;
color: #17132b;
font-weight: 900;
text-decoration: none;
background: linear-gradient(135deg,#fcd34d,#c4a5fd);
box-shadow: 0 .5rem 1.5rem #01030c66;
&:focus-visible {
outline: 3px solid #a5c9ff80;
outline-offset: 3px;
}
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .6rem;
min-height: 2.9rem;
padding: .75rem 1.05rem;
border: 1px solid #b3c9ff;
border-radius: .8rem;
color: #121a34;
font: inherit;
font-size: .93rem;
font-weight: 850;
text-decoration: none;
background: linear-gradient(135deg,#99c8ff,#c6adff);
box-shadow: 0 .65rem 1.75rem #7058dd50;
transition: transform .2s ease,filter .2s ease;
&:hover {
transform: translateY(-2px);
filter: brightness(1.08);
}
&:focus-visible {
outline: 3px solid #a5c9ff80;
outline-offset: 3px;
}
}
.hint {
color: #99add2;
font-size: .82rem;
}
@media (max-width:30rem) {
.welcome-card {
padding: 2rem 1.5rem;
}
.actions {
align-items: stretch;
flex-direction: column;
}
.button {
width: 100%;
}
.hint {
text-align: center;
}
}
@media (prefers-reduced-motion:reduce) {
.button {
transition: none;
}
}
.home-grid {
width: min(100%,80rem);
display: grid;
grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr));
gap: 1.25rem;
align-items: stretch;
}
.welcome-card {
width: 100%;
}
.manual-report {
position: relative;
overflow: hidden;
padding: clamp(2rem,6vw,4.75rem);
border: 2px solid #a85a1e;
border-radius: 1.5rem;
background: linear-gradient(145deg,#4a2b16e8,#171225dd);
box-shadow: 0 1.75rem 5rem #01030c99;
}
.manual-report__title {
margin: .2rem 0 .75rem;
font-size: clamp(2rem,4vw,3.1rem);
line-height: 1;
letter-spacing: -.06em;
}
.manual-report__intro {
margin: 0 0 1.5rem;
color: #f3c8a3;
line-height: 1.55;
}
.manual-report__label {
display: block;
margin-bottom: .5rem;
font-weight: 800;
}
#manual-occurrences {
width: 100%;
min-height: 3.3rem;
margin-bottom: 1rem;
padding: .75rem .9rem;
border: 1px solid #e2934a;
border-radius: .75rem;
color: #eef3ff;
font: inherit;
font-weight: 800;
background: #151b31;
}
.manual-direction-panel {
margin: 0 0 1rem;
padding: 1rem;
border: 1px solid #8d5bb5;
border-radius: .75rem;
background: #241b38;
}
.manual-direction-panel__heading {
display: block;
margin-bottom: .35rem;
span {
color: #c7b5eb;
font-weight: 600;
}
}
.manual-direction-panel__copy {
margin: 0 0 .75rem;
color: #d4c6ef;
font-size: .88rem;
line-height: 1.45;
}
.manual-direction-panel__button {
min-height: 2.75rem;
padding: .65rem .9rem;
border: 1px solid #c3a5eb;
border-radius: .65rem;
color: #211234;
font: inherit;
font-weight: 850;
background: #d8c1fb;
cursor: pointer;
}
.manual-direction-panel__status {
min-height: 1.4rem;
margin-top: .7rem;
color: #e5dcf7;
font-size: .9rem;
}
.manual-report__submit {
width: 100%;
min-height: 6rem;
border: 0;
border-radius: 1rem;
color: #281306;
font: inherit;
font-size: clamp(1.1rem,2vw,1.45rem);
font-weight: 900;
background: linear-gradient(135deg,#ffd18c,#ff8f5b);
box-shadow: 0 .75rem 1.8rem #d664344d;
cursor: pointer;
}
.manual-report__submission {
min-height: 1.5rem;
margin-top: 1rem;
color: #ffd18c;
}
/*Homepage-specific light palette: the two cards intentionally retain distinct roles.*/
:root[data-theme="light"] .home-grid .welcome-card {
color: #17233b;
border-color: #d5e0f1 !important;
background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%) !important;
box-shadow: 0 1.4rem 3.4rem rgba(38, 65, 111, .16) !important;
&::before {
background: linear-gradient(135deg, #a9c9fb99, #d4b8f299);
}
&::after {
background: #ffd49a66;
}
.brand {
color: #365b97;
}
.eyebrow {
color: #4269a5;
}
.subject strong {
color: #182b50;
}
.hint {
color: #5d7191;
}
}
:root[data-theme="light"] .home-grid .manual-report {
color: #42210f;
border-color: #eca851 !important;
background: linear-gradient(145deg, #fff8ef 0%, #ffe0bb 100%) !important;
box-shadow: 0 1.4rem 3.4rem rgba(116, 69, 25, .18) !important;
.eyebrow {
color: #9f4d16;
}
}
:root[data-theme="light"] .home-grid .manual-report__title {
color: #4a2510;
}
:root[data-theme="light"] .home-grid .manual-report__intro {
color: #70411d;
}
:root[data-theme="light"] .home-grid .manual-report__label {
color: #54311b;
}
:root[data-theme="light"] .home-grid #manual-occurrences {
border-color: #dfaa68;
color: #322014;
background: #fffdfa;
}
:root[data-theme="light"] .home-grid .manual-direction-panel {
border-color: #d9b4d8;
background: #fff5fc;
}
:root[data-theme="light"] .home-grid .manual-direction-panel__heading {
color: #492846;
span {
color: #70466d;
}
}
:root[data-theme="light"] .home-grid .manual-direction-panel__copy {
color: #694b68;
}
:root[data-theme="light"] .home-grid .manual-direction-panel__button {
border-color: #b68bb5;
color: #321a34;
background: #ead2eb;
}
:root[data-theme="light"] .home-grid .manual-direction-panel__status {
color: #6b4267;
}
:root[data-theme="light"] .home-grid .manual-report__submit {
color: #281306;
box-shadow: 0 .75rem 1.8rem rgba(190, 90, 34, .27);
}
:root[data-theme="light"] .home-grid .manual-report__submission {
color: #87421b;
}