Files
heliosian/web/static/directory/style.css
T

1023 lines
15 KiB
CSS

:root {
--brand: #014e54;
--sidebar: #173c41;
--sidebar-active: #2f5054;
--line: #e2e6eb;
--ink: #0d0d0d;
--muted: #707070;
--label: #1f4d53;
--input: #efefef;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Inter, system-ui, sans-serif;
display: flex;
height: 100vh;
overflow: hidden;
color: var(--ink);
background: #fff;
}
.sidebar {
width: 256px;
flex-shrink: 0;
background: var(--sidebar);
color: #fff;
display: flex;
flex-direction: column;
padding: 12px;
position: relative;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px 12px;
font-weight: 700;
font-size: 16px;
}
.brand img {
width: 32px;
height: 32px;
border-radius: 8px;
}
nav {
display: flex;
flex-direction: column;
gap: 1px;
flex: 1;
}
nav a {
display: flex;
align-items: center;
gap: 12px;
height: 36px;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
font-size: 14px;
font-weight: 500;
padding: 0 12px;
border-radius: 8px;
}
nav a svg {
width: 20px;
height: 20px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
}
nav a:hover {
background: rgba(255, 255, 255, 0.06);
}
nav a.active {
background: var(--sidebar-active);
color: #fff;
}
.nav-divider {
border-top: 1px solid rgba(255, 255, 255, 0.15);
margin: 8px 12px;
}
.user {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.8);
border-radius: 8px;
cursor: pointer;
}
.user:hover {
background: rgba(255, 255, 255, 0.06);
}
.user-menu {
position: absolute;
left: 12px;
bottom: 62px;
width: 190px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
padding: 6px 0;
z-index: 10;
}
.user-menu form {
margin: 0;
}
.user-menu a,
.user-menu button {
display: block;
width: 100%;
padding: 8px 16px;
border: 0;
background: none;
text-align: left;
text-decoration: none;
font: inherit;
font-size: 14px;
font-weight: 500;
color: var(--ink);
cursor: pointer;
}
.user-menu a:hover,
.user-menu button:hover {
background: #f2f4f6;
}
.user-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: #f5f1d0;
color: #333;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 600;
flex-shrink: 0;
}
main {
flex: 1;
overflow-y: auto;
background: #fff;
}
.container {
max-width: 1260px;
width: 100%;
margin: 0 auto;
padding-left: 30px;
padding-right: 30px;
}
.tabs {
border-bottom: 1px solid var(--line);
padding-top: 13px;
position: sticky;
top: 0;
background: #fff;
z-index: 2;
}
.tabs-row {
display: flex;
gap: 4px;
}
.tab {
position: relative;
display: flex;
align-items: center;
gap: 8px;
height: 43px;
padding: 0 12px;
font-size: 14px;
font-weight: 500;
color: rgba(51, 51, 51, 0.7);
cursor: pointer;
}
.tab svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.tab.active {
color: rgba(0, 0, 0, 0.95);
}
.tab.active::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 3px;
height: 2px;
border-radius: 1px;
background: var(--label);
}
.content {
padding-top: 15px;
padding-bottom: 48px;
}
.content-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin: 4px 0 26px;
}
.content-header h1 {
font-size: 24px;
font-weight: 700;
margin: 0;
}
.email-hint {
color: var(--muted);
font-size: 14px;
padding-top: 16px;
padding-bottom: 2px;
}
.email-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.email-table th {
text-align: left;
color: var(--muted);
font-weight: 500;
font-size: 13px;
background: #f8f9fa;
}
.email-table th,
.email-table td {
border: 1px solid var(--line);
padding: 9px 12px;
}
.email-table tbody tr:nth-child(even) {
background: #fafbfb;
}
.email-num {
color: #b6bcc2;
font-size: 12px;
width: 34px;
}
.email-name {
font-weight: 600;
}
.email-name a {
color: inherit;
text-decoration: none;
}
.email-name a:hover {
text-decoration: underline;
}
.email-heart {
width: 40px;
text-align: center;
}
.row-heart {
border: 0;
background: none;
padding: 2px;
cursor: pointer;
color: #b6bcc2;
display: inline-flex;
}
.row-heart svg {
width: 18px;
height: 18px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.row-heart:hover {
color: var(--brand);
}
.row-heart.active {
color: var(--brand);
}
.row-heart.active svg {
fill: currentColor;
}
.profile-heading {
font-size: 24px;
font-weight: 700;
margin: 26px 0 10px;
}
.profile-heading:first-child {
margin-top: 4px;
}
.controls {
display: flex;
gap: 10px;
}
.search {
display: flex;
align-items: center;
gap: 8px;
background: var(--input);
border-radius: 8px;
padding: 0 12px;
width: 231px;
color: var(--muted);
}
.search svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.8;
flex-shrink: 0;
}
.search input {
border: 0;
background: transparent;
outline: 0;
font: inherit;
width: 100%;
padding: 9px 0;
color: var(--ink);
}
.filter-button {
display: flex;
align-items: center;
gap: 8px;
background: var(--input);
border-radius: 8px;
padding: 9px 14px;
font: inherit;
font-size: 14px;
color: #444;
border: 0;
}
.filter-button svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.8;
}
.people-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 32px 16px;
}
.people-grid.autofit {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.people-grid.autofit .person-photo {
width: 146px;
max-width: 100%;
}
.person-card {
text-align: center;
}
.person-photo {
width: 62%;
aspect-ratio: 1;
border-radius: 50%;
object-fit: cover;
display: block;
margin: 0 auto 12px;
background: #eef1f3;
color: #fff;
}
div.person-photo {
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5rem;
font-weight: 600;
}
.role-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--label);
text-transform: uppercase;
margin-bottom: 3px;
}
.person-name {
font-weight: 700;
font-size: 15px;
}
.person-sub {
color: var(--muted);
font-size: 13px;
margin-top: 3px;
line-height: 1.4;
}
.student-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.student-card {
border: 1px solid var(--line);
border-radius: 10px;
overflow: hidden;
text-align: center;
padding-bottom: 20px;
background: #fff;
}
.student-photo {
width: 100%;
aspect-ratio: 1.35;
object-fit: cover;
display: block;
background: #fff;
}
.student-first {
font-size: 24px;
font-weight: 700;
margin-top: 16px;
}
.student-last {
color: var(--muted);
font-size: 15px;
margin-top: 2px;
}
.student-line {
font-size: 12px;
color: var(--muted);
margin-top: 14px;
}
.student-pronouns {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--label);
text-transform: uppercase;
margin-top: 10px;
}
.family-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 32px 24px;
}
.family-photo {
width: 100%;
aspect-ratio: 1.32;
object-fit: cover;
display: block;
border-radius: 6px;
background: #f4f5f6;
}
.family-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--label);
text-transform: uppercase;
margin: 12px 0 2px;
}
.family-name {
font-weight: 700;
font-size: 15px;
}
.family-kids {
color: var(--muted);
font-size: 13px;
margin-top: 3px;
}
.staff-section {
margin: 10px 0 20px;
font-weight: 600;
font-size: 16px;
}
.staff-section:not(:first-child) {
margin-top: 36px;
}
.empty {
color: var(--muted);
padding: 3rem;
text-align: center;
grid-column: 1 / -1;
}
a.person-card,
a.student-card,
a.family-card {
display: block;
color: inherit;
text-decoration: none;
}
a.person-card,
a.family-card {
padding: 14px;
margin: -14px;
border-radius: 12px;
}
a.person-card:hover,
a.family-card:hover {
background: #f6f6f7;
}
a.student-card:hover {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.detail-top {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 24px;
padding-bottom: 14px;
}
.crumbs {
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
}
.crumb-back {
display: flex;
color: #9aa4ab;
}
.crumb-back svg,
.heart-button svg {
width: 20px;
height: 20px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.crumb {
color: var(--muted);
text-decoration: none;
}
.crumb.current {
color: var(--ink);
font-weight: 600;
}
.crumb-sep {
color: #c4cad0;
}
.heart-button {
border: 0;
background: none;
color: #9aa4ab;
cursor: pointer;
padding: 4px;
}
.detail-content {
padding-bottom: 44px;
}
.detail-grid {
display: grid;
grid-template-columns: minmax(0, 31fr) minmax(0, 69fr);
gap: 28px;
}
.detail-photo {
width: 100%;
border-radius: 8px;
display: block;
}
.detail-name {
font-size: 28px;
font-weight: 700;
margin: 4px 0 6px;
}
.detail-sub {
color: var(--muted);
font-size: 14px;
margin-top: 2px;
}
.contact-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-top: 30px;
}
.contact-value {
font-size: 15px;
}
.field-label {
color: var(--muted);
font-size: 13px;
margin-bottom: 4px;
}
.contact-actions {
display: flex;
gap: 10px;
}
.icon-button {
display: flex;
align-items: center;
gap: 9px;
height: 44px;
padding: 0 20px;
border-radius: 22px;
border: 0;
background: #f1f3f4;
color: #1f2933;
font: inherit;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
}
.icon-button svg {
width: 18px;
height: 18px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
}
@media (max-width: 1399px) {
.icon-button {
width: 40px;
height: 40px;
padding: 0;
justify-content: center;
border-radius: 50%;
}
.icon-button span {
display: none;
}
}
.group-header {
font-size: 16px;
font-weight: 600;
margin: 26px 0 6px;
}
.list-row {
display: flex;
align-items: center;
gap: 18px;
padding: 13px 0;
border-bottom: 1px solid var(--line);
color: inherit;
text-decoration: none;
}
.list-row.plain {
display: block;
font-weight: 600;
}
a.list-row {
padding-left: 14px;
padding-right: 14px;
margin: 0 -14px;
border-radius: 12px;
}
a.list-row:hover {
background: #f6f6f7;
}
.list-tile {
width: 80px;
height: 80px;
border-radius: 14px;
object-fit: cover;
background: #eef1f3;
flex-shrink: 0;
}
.list-info {
min-width: 0;
}
.list-title {
font-weight: 600;
font-size: 16px;
}
.list-sub {
color: var(--muted);
font-size: 14px;
line-height: 1.45;
margin-top: 3px;
white-space: pre-line;
}
.list-chevron {
margin-left: auto;
color: #b6bcc2;
flex-shrink: 0;
}
.list-chevron svg {
width: 18px;
height: 18px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.class-head {
display: flex;
align-items: center;
gap: 26px;
margin: 4px 0 10px;
}
.class-tile {
width: 120px;
height: 120px;
border-radius: 18px;
object-fit: cover;
}
.class-title {
font-size: 28px;
font-weight: 700;
margin: 0;
}
.roster-tabs {
position: static;
padding-top: 0;
margin-bottom: 6px;
}
.tab-count {
background: #eef0f2;
border-radius: 10px;
padding: 1px 8px;
font-size: 12px;
color: #5b6572;
}
.roster-heading {
font-size: 22px;
font-weight: 700;
margin: 18px 0 4px;
}
.pronounce-label {
text-align: center;
color: var(--muted);
font-size: 14px;
margin: 34px 0 12px;
}
.pronounce-player {
width: 100%;
display: block;
}
.about-header {
font-size: 16px;
font-weight: 700;
margin: 40px 0 10px;
}
.about-text {
font-size: 14px;
line-height: 1.55;
white-space: pre-line;
}
.band {
background: var(--label);
color: #fff;
}
.band-grid {
display: grid;
grid-template-columns: minmax(0, 31fr) minmax(0, 69fr);
gap: 28px;
padding-top: 36px;
padding-bottom: 40px;
}
.band-left h2 {
font-size: 24px;
font-weight: 700;
margin: 8px 0 24px;
text-align: center;
}
.band-photo {
width: 100%;
border-radius: 8px;
display: block;
}
.band-caption {
color: rgba(255, 255, 255, 0.72);
font-size: 13px;
line-height: 1.5;
text-align: center;
margin-top: 20px;
}
.band-title {
font-size: 24px;
font-weight: 700;
padding-top: 32px;
margin: 0 0 16px;
}
.member-header {
font-weight: 600;
font-size: 15px;
margin: 14px 0 4px;
}
.member-row {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
color: #fff;
text-decoration: none;
}
.member-thumb {
width: 50px;
height: 50px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
}
.member-label {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.85);
text-transform: uppercase;
}
.member-name {
font-weight: 600;
font-size: 15px;
}
.member-email {
color: rgba(255, 255, 255, 0.7);
font-size: 13px;
}
.member-chevron {
margin-left: auto;
color: rgba(255, 255, 255, 0.75);
}
.member-chevron svg {
width: 18px;
height: 18px;
stroke: currentColor;
fill: none;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.see-family {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 12px;
margin-top: 18px;
background: rgba(255, 255, 255, 0.07);
border-radius: 8px;
color: #fff;
text-decoration: none;
font-weight: 600;
font-size: 15px;
}
.family-caption {
color: var(--muted);
font-size: 13px;
line-height: 1.5;
text-align: center;
margin-top: 14px;
}
.photo-hint {
color: #a8b0b7;
font-size: 12px;
text-align: center;
margin-top: 10px;
}
.band .band-grid .band-right .member-row:last-of-type {
border-bottom: 0;
}
@media (max-width: 900px) {
.detail-grid,
.band-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 900px) {
.container {
padding-left: 16px;
padding-right: 16px;
}
.people-grid,
.family-grid {
grid-template-columns: repeat(2, 1fr);
}
.student-grid {
grid-template-columns: 1fr;
}
.search {
width: 160px;
}
}