Profile
This commit is contained in:
@@ -40,3 +40,33 @@ button.button { cursor: pointer; font-size: inherit; line-height: inherit; }
|
||||
.member-faq details p { color: var(--muted); margin: 1rem 0 .5rem; }
|
||||
.member-footer { padding-block: 2rem; border-top: 1px solid var(--border); }
|
||||
@media (max-width: 540px) { .member-nav, .member-main, .member-footer { width: calc(100% - 2rem); } .member-nav nav { gap: .8rem; font-size: .85rem; } .member-panel { padding: 1.4rem; } .member-actions { align-items: stretch; flex-direction: column; } .member-actions .button { width: 100%; } }
|
||||
|
||||
/* Shared-account profile: use the home page's Catppuccin theme variables. */
|
||||
.profile-main { max-width: 880px; }
|
||||
.profile-heading { padding-block: clamp(2rem, 6vw, 4rem) 1rem; }
|
||||
.profile-heading h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
|
||||
.profile-heading > p { max-width: 70ch; }
|
||||
.profile-jump-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem 2rem; }
|
||||
.profile-jump-links a { padding: .45rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; }
|
||||
.profile-section { min-width: 0; margin: 0 0 1.5rem; scroll-margin-top: 2rem; }
|
||||
.profile-section legend { padding-inline: .5rem; color: var(--accent); font-size: 1.35rem; font-weight: 700; }
|
||||
.profile-section h2, .profile-errors h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
|
||||
.profile-field { min-width: 0; margin-block: 0 1.5rem; }
|
||||
.profile-field label { display: inline-block; margin-bottom: .35rem; font-weight: 650; }
|
||||
.profile-required { color: var(--muted); font-size: .85rem; }
|
||||
.profile-field input:not([type="checkbox"]), .profile-field textarea { display: block; width: 100%; min-width: 0; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--page-deep); color: var(--text); font: inherit; }
|
||||
.profile-field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
|
||||
.profile-field input:focus-visible, .profile-field textarea:focus-visible, .profile-section button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
|
||||
.profile-field .helptext { margin-block: 0 .6rem; color: var(--muted); font-size: .9rem; }
|
||||
.profile-field-invalid input, .profile-field-invalid textarea, .profile-field [aria-invalid="true"] { border-color: var(--red); }
|
||||
.profile-errors { margin-block: 1rem 1.5rem; padding: 1.25rem; border: 1px solid var(--red); border-radius: .8rem; background: var(--surface); }
|
||||
.profile-field .errorlist { margin-block: .5rem 0; padding-left: 1.25rem; }
|
||||
.profile-checkbox input { width: 1.2rem; height: 1.2rem; margin-right: .4rem; accent-color: var(--accent); vertical-align: middle; }
|
||||
.profile-checkbox label { font-weight: 500; }
|
||||
.profile-photo { margin: 0 0 1.5rem; }
|
||||
.profile-photo img { display: block; object-fit: contain; border: 1px solid var(--border); border-radius: 1rem; background: var(--page-deep); }
|
||||
.profile-photo figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
|
||||
.profile-email-values { padding-left: 1.4rem; overflow-wrap: anywhere; }
|
||||
.profile-back { margin-top: 2rem; }
|
||||
@media (max-width: 540px) { .profile-section { padding: 1.1rem; } .profile-section .button { width: 100%; } .profile-jump-links { gap: .45rem; } .profile-jump-links a { font-size: .9rem; } }
|
||||
@media (prefers-reduced-motion: reduce) { html:has(.profile-main) { scroll-behavior: auto; } }
|
||||
|
||||
Reference in New Issue
Block a user