Template:Accession/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Undo revision 1022 by Eloise Zomia (talk) Tag: Undo |
Eloise Zomia (talk | contribs) No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* | /* Template:Accession/styles.css — refined simple accession hero */ | ||
/* ===== Hero wrapper ===== */ | |||
.accession-simple { margin-bottom: 1.5rem; } | |||
.hero-header { | .hero-header { | ||
background: | background: #ffffff; | ||
border-radius: 8px; | border-radius: 8px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, | box-shadow: 0 4px 12px rgba(0,0,0,.08); | ||
margin-bottom: 1.5rem; | margin-bottom: 1.5rem; | ||
} | } | ||
/* | /* ===== Top bar ===== */ | ||
.hero-top { | .hero-top { | ||
background: #0f172a; | background: #0f172a; | ||
color: | color: #fff; | ||
padding: 1rem 1.5rem; | padding: 1rem 1.5rem; | ||
position: relative; | position: relative; | ||
| Line 17: | Line 21: | ||
.hero-title { | .hero-title { | ||
margin: 0; | |||
line-height: 1.05; | |||
font-size: 1.8rem; | font-size: 1.8rem; | ||
font-weight: | font-weight: 800; | ||
color: #fff; | |||
color: | |||
max-width: 70%; | max-width: 70%; | ||
} | } | ||
.hero-subtitle { | .hero-subtitle { | ||
font-family: monospace; | font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | ||
font-size: | font-size: .72rem; | ||
color: #94a3b8; | color: #94a3b8; | ||
background: rgba(255, 255, 255, | background: rgba(255,255,255,.08); | ||
padding: | padding: .25rem .5rem; | ||
border-radius: | border-radius: 4px; | ||
display: inline-block; | display: inline-block; | ||
margin-top: | margin-top: .5rem; | ||
} | } | ||
/* Pills (top-right) */ | |||
.hero-badges { | .hero-badges { | ||
position: absolute; | position: absolute; | ||
top: | top: .75rem; | ||
right: 1rem; | right: 1rem; | ||
display: flex; | |||
flex-direction: column; | |||
gap: .25rem; | |||
align-items: flex-end; | |||
} | } | ||
.hero-badge { | .hero-badge { | ||
padding: | padding: .22rem .44rem; | ||
border-radius: | border-radius: 999px; | ||
font-size: | font-size: .62rem; | ||
font-weight: | font-weight: 800; | ||
line-height: 1; | line-height: 1; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
min-width: 90px; | |||
text-align: center; | text-align: center; | ||
border: 1px solid transparent; | |||
} | } | ||
. | .badge-active { background: #e6f7ee; color: #116a3d; border-color: #b8e7cf; } | ||
.badge-tier { background: #e8efff; color: #1644a0; border-color: #c9d8ff; } | |||
.badge-priority { background: #fff6e6; color: #8a4a00; border-color: #ffd8a8; } | |||
} | |||
. | |||
} | |||
.badge- | |||
} | |||
/* ===== Split section (table layout retained) ===== */ | |||
/* Split section */ | |||
.hero-split { | .hero-split { | ||
display: table; | display: table; | ||
| Line 299: | Line 83: | ||
} | } | ||
.hero-image { | /* Photo area */ | ||
.hero-image { background: #f1f5f9; border-right: 1px solid #e2e8f0; } | |||
.hero-image .mw-file-element, | |||
} | .hero-image img { width: 100%; height: 400px; object-fit: cover; display: block; } | ||
.hero-image img { | |||
} | |||
. | .photo-placeholder { height: 400px; background: #f8fafc; display: table; width: 100%; } | ||
.placeholder-content { display: table-cell; vertical-align: middle; text-align: center; padding: 2rem; } | |||
.placeholder-icon { font-size: 3rem; color: #94a3b8; margin-bottom: 1rem; display: block; } | |||
.placeholder-title { font-size: 1.1rem; color: #334155; font-weight: 800; margin-bottom: .65rem; } | |||
.placeholder-subtitle { font-size: .9rem; color: #64748b; line-height: 1.4; max-width: 280px; margin: 0 auto 1rem; } | |||
} | .placeholder-instruction { font-size: .8rem; color: #94a3b8; background: #fff; padding: .75rem; border-radius: 6px; border: 1px solid #e2e8f0; max-width: 260px; margin: 0 auto; } | ||
/* | /* Caption */ | ||
. | .image-overlay { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; padding: .75rem 1rem .5rem; } | ||
.image-caption { margin: 0; font-size: .8rem; font-weight: 700; line-height: 1.2; } | |||
} | |||
/* Map area */ | |||
.hero-map { background: #f8fafc; } | |||
.map-container { | .map-container { | ||
height: 400px; | height: 400px; background: #e2e8f0; display: table-cell; vertical-align: middle; | ||
text-align: center; color: #64748b; font-size: .9rem; font-weight: 700; | |||
text-align: center; | |||
} | } | ||
/* Location overlay card */ | |||
.map-overlay { | .map-overlay { | ||
position: absolute; | position: absolute; top: 1rem; left: 1rem; | ||
background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; | |||
padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.15); max-width: 200px; | |||
background: | |||
padding: 1rem; | |||
} | } | ||
.map-overlay h4 { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; color: #64748b; font-weight: 800; } | |||
.location-primary { font-weight: 800; color: #1e293b; margin-bottom: .45rem; font-size: .86rem; } | |||
.location-secondary { color: #64748b; font-size: .8rem; } | |||
/* Coordinates chip */ | |||
.coordinates { | .coordinates { | ||
position: absolute; | position: absolute; bottom: 1rem; right: 1rem; | ||
background: rgba(0,0,0,.85); color: #fff; padding: .45rem .7rem; | |||
border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; | |||
background: rgba(0, 0, 0, | font-size: .78rem; font-weight: 800; white-space: nowrap; max-width: 52ch; | ||
overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px rgba(0,0,0,.2); | |||
border-radius: | |||
font-size: | |||
} | } | ||
/* neutralize Kartographer “pill” styling inside our chip */ | |||
.coordinates .mw-kartographer-maplink { background: transparent; border: 0; box-shadow: none; padding: 0; display: inline; } | |||
.coordinates .mw-kartographer-coordinates { color: #fff; } | |||
/* Details | /* ===== Details strip ===== */ | ||
.hero-details { | .hero-details { | ||
background: | background: #fff; | ||
border-top: 2px solid #334155; | border-top: 2px solid #334155; | ||
padding: 1.5rem 2rem; | padding: 1.5rem 2rem; | ||
| Line 445: | Line 136: | ||
} | } | ||
.detail-group { | .detail-group { display: inline-block; margin: 0 1.5rem 1rem 0; min-width: 120px; vertical-align: top; } | ||
.detail-label { font-size: .75rem; text-transform: uppercase; color: #64748b; font-weight: 800; margin-bottom: .5rem; } | |||
.detail-value { font-size: 1rem; font-weight: 800; color: #1e293b; line-height: 1.2; } | |||
.detail-value.highlight { color: #059669; } | |||
} | |||
.detail-label { | |||
} | |||
/* ===== Breadcrumb ===== */ | |||
.geographic-path { width: 100%; padding-top: 1rem; border-top: 1px solid #e2e8f0; margin-top: 1rem; text-align: center; } | |||
.geographic-path h4 { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; color: #64748b; font-weight: 800; } | |||
.breadcrumb { font-size: .9rem; color: #374151; } | |||
.breadcrumb .separator { color: #9ca3af; margin: 0 .5rem; } | |||
.breadcrumb .level { color: #059669; font-weight: 800; } | |||
.geographic-path { | |||
} | |||
.geographic-path h4 { | |||
} | |||
.breadcrumb { | |||
} | |||
.breadcrumb .separator { | |||
} | |||
.breadcrumb .level { | |||
} | |||
/* Mobile */ | /* ===== Mobile ===== */ | ||
@media (max-width: 768px) { | @media (max-width: 768px){ | ||
.hero-split { | .hero-split { display: block; } | ||
.hero-image, .hero-map { display: block; width: 100%; height: 300px; } | |||
.photo-placeholder, .map-container { height: 300px; } | |||
.hero-badges { position: static; flex-direction: row; gap: .35rem; margin-top: .75rem; } | |||
.hero-image, .hero-map { | .hero-title { font-size: 1.6rem; } | ||
.hero-details { padding: 1rem 1.25rem; } | |||
.photo-placeholder | |||
.hero-badges { | |||
.hero- | |||
.hero-details { | |||
} | } | ||
Revision as of 06:29, 17 September 2025
/* Template:Accession/styles.css — refined simple accession hero */
/* ===== Hero wrapper ===== */
.accession-simple { margin-bottom: 1.5rem; }
.hero-header {
background: #ffffff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,.08);
margin-bottom: 1.5rem;
}
/* ===== Top bar ===== */
.hero-top {
background: #0f172a;
color: #fff;
padding: 1rem 1.5rem;
position: relative;
}
.hero-title {
margin: 0;
line-height: 1.05;
font-size: 1.8rem;
font-weight: 800;
color: #fff;
max-width: 70%;
}
.hero-subtitle {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: .72rem;
color: #94a3b8;
background: rgba(255,255,255,.08);
padding: .25rem .5rem;
border-radius: 4px;
display: inline-block;
margin-top: .5rem;
}
/* Pills (top-right) */
.hero-badges {
position: absolute;
top: .75rem;
right: 1rem;
display: flex;
flex-direction: column;
gap: .25rem;
align-items: flex-end;
}
.hero-badge {
padding: .22rem .44rem;
border-radius: 999px;
font-size: .62rem;
font-weight: 800;
line-height: 1;
text-transform: uppercase;
min-width: 90px;
text-align: center;
border: 1px solid transparent;
}
.badge-active { background: #e6f7ee; color: #116a3d; border-color: #b8e7cf; }
.badge-tier { background: #e8efff; color: #1644a0; border-color: #c9d8ff; }
.badge-priority { background: #fff6e6; color: #8a4a00; border-color: #ffd8a8; }
/* ===== Split section (table layout retained) ===== */
.hero-split {
display: table;
width: 100%;
table-layout: fixed;
background: #f8fafc;
}
.hero-image, .hero-map {
display: table-cell;
width: 50%;
vertical-align: top;
height: 400px;
position: relative;
}
/* Photo area */
.hero-image { background: #f1f5f9; border-right: 1px solid #e2e8f0; }
.hero-image .mw-file-element,
.hero-image img { width: 100%; height: 400px; object-fit: cover; display: block; }
.photo-placeholder { height: 400px; background: #f8fafc; display: table; width: 100%; }
.placeholder-content { display: table-cell; vertical-align: middle; text-align: center; padding: 2rem; }
.placeholder-icon { font-size: 3rem; color: #94a3b8; margin-bottom: 1rem; display: block; }
.placeholder-title { font-size: 1.1rem; color: #334155; font-weight: 800; margin-bottom: .65rem; }
.placeholder-subtitle { font-size: .9rem; color: #64748b; line-height: 1.4; max-width: 280px; margin: 0 auto 1rem; }
.placeholder-instruction { font-size: .8rem; color: #94a3b8; background: #fff; padding: .75rem; border-radius: 6px; border: 1px solid #e2e8f0; max-width: 260px; margin: 0 auto; }
/* Caption */
.image-overlay { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; padding: .75rem 1rem .5rem; }
.image-caption { margin: 0; font-size: .8rem; font-weight: 700; line-height: 1.2; }
/* Map area */
.hero-map { background: #f8fafc; }
.map-container {
height: 400px; background: #e2e8f0; display: table-cell; vertical-align: middle;
text-align: center; color: #64748b; font-size: .9rem; font-weight: 700;
}
/* Location overlay card */
.map-overlay {
position: absolute; top: 1rem; left: 1rem;
background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.15); max-width: 200px;
}
.map-overlay h4 { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; color: #64748b; font-weight: 800; }
.location-primary { font-weight: 800; color: #1e293b; margin-bottom: .45rem; font-size: .86rem; }
.location-secondary { color: #64748b; font-size: .8rem; }
/* Coordinates chip */
.coordinates {
position: absolute; bottom: 1rem; right: 1rem;
background: rgba(0,0,0,.85); color: #fff; padding: .45rem .7rem;
border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: .78rem; font-weight: 800; white-space: nowrap; max-width: 52ch;
overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
/* neutralize Kartographer “pill” styling inside our chip */
.coordinates .mw-kartographer-maplink { background: transparent; border: 0; box-shadow: none; padding: 0; display: inline; }
.coordinates .mw-kartographer-coordinates { color: #fff; }
/* ===== Details strip ===== */
.hero-details {
background: #fff;
border-top: 2px solid #334155;
padding: 1.5rem 2rem;
text-align: center;
}
.detail-group { display: inline-block; margin: 0 1.5rem 1rem 0; min-width: 120px; vertical-align: top; }
.detail-label { font-size: .75rem; text-transform: uppercase; color: #64748b; font-weight: 800; margin-bottom: .5rem; }
.detail-value { font-size: 1rem; font-weight: 800; color: #1e293b; line-height: 1.2; }
.detail-value.highlight { color: #059669; }
/* ===== Breadcrumb ===== */
.geographic-path { width: 100%; padding-top: 1rem; border-top: 1px solid #e2e8f0; margin-top: 1rem; text-align: center; }
.geographic-path h4 { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; color: #64748b; font-weight: 800; }
.breadcrumb { font-size: .9rem; color: #374151; }
.breadcrumb .separator { color: #9ca3af; margin: 0 .5rem; }
.breadcrumb .level { color: #059669; font-weight: 800; }
/* ===== Mobile ===== */
@media (max-width: 768px){
.hero-split { display: block; }
.hero-image, .hero-map { display: block; width: 100%; height: 300px; }
.photo-placeholder, .map-container { height: 300px; }
.hero-badges { position: static; flex-direction: row; gap: .35rem; margin-top: .75rem; }
.hero-title { font-size: 1.6rem; }
.hero-details { padding: 1rem 1.25rem; }
}