Files
vitareba/components/Assessment/Assessment.module.css
T
g-butandClaude Sonnet 4.6 d9cac57e4a refactor(styles): eliminate last static inline styles in portal and Assessment
- PortalNav: move position:relative into .bottomNavItem CSS class
- ResultsScreen: add rCtaSubSpaced variant for marginTop override
- Assessment.module.css: add rCtaSubSpaced composes variant

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 09:05:17 +02:00

521 lines
8.5 KiB
CSS

.overlay {
position: fixed;
inset: 0;
background: var(--ink);
z-index: 200;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.ovPb {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 3px;
background: rgba(255, 255, 255, 0.05);
z-index: 201;
}
.ovPbFill {
height: 100%;
background: var(--teal);
transition: width 0.4s;
}
.ovClose {
position: fixed;
top: 1.2rem;
right: 1.5rem;
background: none;
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.4);
font-size: 1.2rem;
width: 2.2rem;
height: 2.2rem;
cursor: pointer;
border-radius: 50%;
z-index: 202;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
}
.ovClose:hover {
border-color: var(--teal);
color: var(--teal);
}
.ovClose:focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}
.ovScreen {
display: none;
max-width: 700px;
margin: 0 auto;
padding: 5rem 2rem;
width: 100%;
}
.active {
display: block;
}
.ovEyebrow {
font-size: 0.55rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: rgba(42, 122, 138, 0.6);
margin-bottom: 1.5rem;
}
.ovH1 {
font-family: var(--font-cormorant), serif;
font-size: 3.5rem;
font-weight: 300;
color: var(--white);
line-height: 1.1;
}
.ovH1 em {
font-style: italic;
color: var(--teal);
}
.ovH2 {
font-family: var(--font-cormorant), serif;
font-size: 1.2rem;
font-weight: 300;
color: rgba(255, 255, 255, 0.3);
margin-top: 0.8rem;
}
.ovSub {
font-size: 0.82rem;
color: rgba(255, 255, 255, 0.3);
line-height: 1.85;
margin-top: 1.5rem;
max-width: 32rem;
}
.ovStats {
display: flex;
gap: 3rem;
margin-top: 2rem;
}
.ovStatN {
font-family: var(--font-cormorant), serif;
font-size: 1.8rem;
color: var(--white);
}
.ovStatL {
font-size: 0.6rem;
letter-spacing: 0.15em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.2);
}
.ovDims {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
gap: 0.5rem;
margin-top: 2rem;
}
.ovDim {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 0.3rem;
padding: 0.8rem;
text-align: center;
}
.ovDimIcon {
font-size: 1.2rem;
margin-bottom: 0.3rem;
}
.ovDimName {
font-size: 0.55rem;
letter-spacing: 0.1em;
color: rgba(255, 255, 255, 0.25);
}
.ovStartBtn {
background: var(--teal);
color: var(--white);
border: none;
padding: 1rem 2.5rem;
font-size: 0.7rem;
letter-spacing: 0.16em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.25rem;
margin-top: 2.5rem;
transition: background 0.3s;
}
.ovStartBtn:hover {
background: var(--teal-dark);
}
.ovStartBtn:focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}
.ovDisc {
font-size: 0.6rem;
color: rgba(255, 255, 255, 0.12);
margin-top: 1.5rem;
}
/* Question screen */
.qDimLabel {
font-size: 0.6rem;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--teal);
margin-bottom: 0.5rem;
}
.qProg {
font-size: 0.6rem;
color: rgba(255, 255, 255, 0.2);
margin-bottom: 0.3rem;
}
.qTrack {
height: 2px;
background: rgba(255, 255, 255, 0.05);
border-radius: 1px;
margin-bottom: 2rem;
}
.qTrackFill {
height: 100%;
background: var(--teal);
border-radius: 1px;
transition: width 0.3s;
}
.qText {
font-family: var(--font-cormorant), serif;
font-size: 1.5rem;
font-weight: 300;
color: var(--white);
line-height: 1.4;
margin-bottom: 2rem;
}
.qBtns {
display: flex;
gap: 0.4rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.qBtn {
width: 3rem;
height: 3rem;
border-radius: 0.3rem;
border: 1px solid rgba(255, 255, 255, 0.1);
background: none;
color: rgba(255, 255, 255, 0.3);
font-size: 0.85rem;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
transition: all 0.2s;
}
.qBtn:hover {
border-color: var(--teal);
color: var(--teal);
}
.qBtn:focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}
.selected {
background: var(--teal);
border-color: var(--teal);
color: var(--white);
}
.qScale {
display: flex;
justify-content: space-between;
font-size: 0.6rem;
color: rgba(255, 255, 255, 0.15);
margin-top: -1.2rem;
margin-bottom: 2rem;
}
.qNav {
display: flex;
gap: 0.6rem;
}
.qPrev {
background: none;
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.3);
padding: 0.6rem 1.5rem;
font-size: 0.65rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.2rem;
transition: all 0.3s;
}
.qPrev:hover {
border-color: var(--teal);
color: var(--teal);
}
.qPrev:focus-visible,
.qNext:focus-visible {
outline: 2px solid var(--teal);
outline-offset: 2px;
}
.qPrev:disabled {
opacity: 0.2;
cursor: default;
}
.qNext:disabled {
cursor: default;
}
.qNext {
background: rgba(255, 255, 255, 0.05);
border: none;
color: rgba(255, 255, 255, 0.15);
padding: 0.6rem 1.5rem;
font-size: 0.65rem;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: default;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.2rem;
transition: all 0.3s;
}
.enabled {
background: var(--teal);
color: var(--white);
cursor: pointer;
}
/* Results screen */
.vCard {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 0.5rem;
padding: 2.5rem;
text-align: center;
margin-bottom: 2rem;
}
.vScore {
font-family: var(--font-cormorant), serif;
font-size: 4rem;
font-weight: 300;
color: var(--teal);
}
.vScore span {
font-size: 1.5rem;
color: rgba(42, 122, 138, 0.5);
}
.vName {
font-family: var(--font-cormorant), serif;
font-size: 1.3rem;
color: var(--white);
margin: 0.5rem 0;
}
.vText {
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.35);
line-height: 1.8;
max-width: 28rem;
margin: 0 auto;
}
.rScores {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.8rem;
margin-bottom: 2.5rem;
}
.rScoreCard {
background: rgba(255, 255, 255, 0.03);
border-radius: 0.3rem;
padding: 1rem;
text-align: center;
}
.rScIcon {
font-size: 1.2rem;
margin-bottom: 0.3rem;
}
.rScName {
font-size: 0.55rem;
letter-spacing: 0.1em;
color: rgba(255, 255, 255, 0.25);
margin-bottom: 0.4rem;
}
.rScN {
font-family: var(--font-cormorant), serif;
font-size: 1.4rem;
font-weight: 300;
}
.rScBar {
height: 3px;
background: rgba(255, 255, 255, 0.05);
border-radius: 2px;
margin-top: 0.5rem;
}
.rScFill {
height: 100%;
border-radius: 2px;
transition: width 0.6s;
}
.rDim {
margin-bottom: 1.5rem;
}
.rDimTop {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.4rem;
}
.rDimName {
font-size: 0.7rem;
letter-spacing: 0.1em;
color: rgba(255, 255, 255, 0.4);
}
.rDimScore {
font-family: var(--font-cormorant), serif;
font-size: 1.1rem;
}
.rDimBar {
height: 4px;
background: rgba(255, 255, 255, 0.05);
border-radius: 2px;
margin-bottom: 0.6rem;
}
.rDimFill {
height: 100%;
border-radius: 2px;
}
.rDimText {
font-size: 0.78rem;
color: rgba(255, 255, 255, 0.3);
line-height: 1.75;
}
.rCta {
text-align: center;
margin-top: 3rem;
padding: 2rem;
background: rgba(42, 122, 138, 0.08);
border-radius: 0.4rem;
}
.rCtaTitle {
font-family: var(--font-cormorant), serif;
font-size: 1.4rem;
color: var(--white);
margin-bottom: 0.5rem;
}
.rCtaSub {
font-size: 0.83rem;
color: var(--muted);
margin-bottom: 1.5rem;
}
.rCtaSubSpaced {
composes: rCtaSub;
margin-top: 0.5rem;
}
.rCtaBtns {
display: flex;
gap: 0.7rem;
justify-content: center;
flex-wrap: wrap;
}
.rBtnP {
background: var(--teal);
color: var(--white);
border: none;
padding: 0.8rem 2rem;
font-size: 0.7rem;
letter-spacing: 0.16em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.25rem;
text-decoration: none;
display: inline-block;
}
.rBtnO {
border: 1px solid rgba(42, 122, 138, 0.3);
color: var(--teal);
background: none;
padding: 0.8rem 2rem;
font-size: 0.7rem;
letter-spacing: 0.16em;
text-transform: uppercase;
cursor: pointer;
font-family: var(--font-dm-sans), sans-serif;
border-radius: 0.25rem;
}
@media (max-width: 767px) {
.ovClose,
.ovStartBtn,
.qPrev,
.qNext,
.rBtnP,
.rBtnO {
min-height: 2.75rem;
}
}
@media (min-width: 768px) {
.rScores {
grid-template-columns: repeat(5, 1fr);
}
}