Template:Accession/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Undo revision 1579 by Eloise Zomia (talk) Tag: Undo |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 606: | Line 606: | ||
background: #f9f6f3 !important; | background: #f9f6f3 !important; | ||
color: #1a3b2e !important; | color: #1a3b2e !important; | ||
} | |||
/* ============================================ */ | |||
/* COMPACT ACCESSION HERO – SPACE SAVING TWEAKS */ | |||
/* ============================================ */ | |||
.hero-header { | |||
margin: 0.5rem 0 1.25rem; | |||
} | |||
.hero-top { | |||
padding: 1rem 1.3rem 0.9rem 1.3rem; /* was ~1.75/2rem */ | |||
} | |||
/* Title + metadata */ | |||
.hero-title { | |||
font-size: 1.6rem; | |||
margin-bottom: 0.35rem; | |||
} | |||
.accession-metadata { | |||
gap: 0.35rem; | |||
margin-top: 0.5rem; | |||
} | |||
.metadata-secondary { | |||
font-size: 0.8rem; | |||
} | |||
/* Section labels + blocks */ | |||
.header-section { | |||
margin-top: 0.6rem; /* was 1.1rem */ | |||
} | |||
.section-label { | |||
margin-bottom: 0.3rem; /* was 0.55rem */ | |||
font-size: 0.62rem; | |||
} | |||
/* Status row */ | |||
.status-row { | |||
margin-top: 0.7rem; /* was 1.1rem */ | |||
gap: 1rem; | |||
} | |||
.hero-top .status-badge, | |||
.hero-top .classification-badge { | |||
padding: 0.22rem 0.55rem; | |||
font-size: 0.72rem; | |||
} | |||
/* Breadcrumbs */ | |||
.breadcrumb-trail { | |||
gap: 0.25rem; | |||
font-size: 0.85rem; | |||
} | |||
.breadcrumb-item { | |||
padding: 0.16rem 0.38rem; | |||
} | |||
/* Image + map band */ | |||
.hero-image, | |||
.hero-map { | |||
height: 280px; /* was 320px */ | |||
} | |||
.hero-image img { | |||
height: 100%; | |||
} | |||
.map-container, | |||
.lw-map { | |||
height: 278px !important; | |||
} | |||
/* Details strip */ | |||
.hero-details { | |||
padding: 0.55rem 0.9rem; /* was 0.75 / 1.1 */ | |||
} | |||
.detail-label { | |||
font-size: 0.62rem; | |||
} | |||
.detail-value { | |||
font-size: 0.78rem; | |||
} | } | ||
Revision as of 23:57, 20 November 2025
/* BOTANICAL THEMED CSS - Forest Greens & Earth Tones */
.hero-header {
background: #1a3b2e;
border: 1px solid #2d5a47;
border-radius: 3px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
margin: 1rem 0 2rem;
position: relative;
}
.hero-top {
background: #0f2419;
color: #f8faf9;
padding: 1.75rem 2rem 1.6rem 2rem;
border-bottom: 1px solid rgba(109, 154, 124, 0.2);
position: relative;
}
/* Title and metadata */
.title-section {
margin-bottom: 1rem;
position: relative;
}
.hero-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1.75rem;
font-weight: 600;
margin: 0 0 0.65rem 0;
line-height: 1.2;
color: #f8faf9;
letter-spacing: -0.02em;
}
.hero-subtitle {
font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", "Courier New", monospace;
font-size: 0.7rem;
color: #d4d4aa;
background: rgba(21, 41, 28, 0.85);
border: 1px solid rgba(109, 154, 124, 0.3);
padding: 0.25rem 0.55rem;
border-radius: 2px;
display: inline-block;
margin-top: 0.35rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.accession-metadata {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.75rem;
}
.metadata-primary {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
}
.metadata-secondary {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
opacity: 0.9;
}
/* Badges and chips */
.status-badge {
padding: 0.3rem 0.7rem;
border-radius: 4px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.75rem;
font-weight: 600;
text-align: center;
border: 1px solid transparent;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.3rem;
white-space: nowrap;
}
.accession-id-badge {
background: rgba(134, 239, 172, 0.2);
color: #86efac;
border: 1px solid rgba(134, 239, 172, 0.4);
font-family: "SF Mono", Monaco, monospace;
}
.collection-date {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.9rem;
color: #c4d4cc;
font-weight: 500;
background: rgba(196, 212, 204, 0.08);
border: 1px solid rgba(196, 212, 204, 0.15);
padding: 0.3rem 0.7rem;
border-radius: 3px;
}
.collector {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.8rem;
color: #d4d4aa;
font-weight: 500;
}
.affiliation {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.8rem;
color: #a3c4b0;
font-weight: 400;
}
.separator {
color: #7a9682;
font-weight: normal;
user-select: none;
}
/* Section labels */
.header-section {
margin-top: 1.1rem;
position: relative;
}
.section-label {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.65rem;
color: #a3c4b0;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.55rem;
display: block;
}
.section-label.geographic {
color: #7a9682;
}
.section-label.status {
color: #a3c4b0;
font-weight: 600;
}
.section-label.classification {
color: #d4d4aa;
font-weight: 500;
}
/* Geographic breadcrumbs */
.geographic-breadcrumb {
margin-bottom: 0.25rem;
}
.breadcrumb-trail {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.9rem;
line-height: 1.4;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.3rem;
}
.breadcrumb-item {
color: #c4d4cc;
font-weight: 500;
padding: 0.18rem 0.45rem;
border-radius: 4px;
transition: all 0.15s ease;
text-decoration: none;
cursor: pointer;
background: rgba(109, 154, 124, 0.12);
border: 1px solid rgba(109, 154, 124, 0.2);
}
.breadcrumb-item:hover {
color: #e8f0ec;
background: rgba(164, 196, 176, 0.22);
}
.breadcrumb-item:last-child {
color: #f0f6f2;
font-weight: 600;
background: rgba(164, 196, 176, 0.18);
cursor: default;
}
.breadcrumb-item:last-child:hover {
background: rgba(164, 196, 176, 0.18);
}
.breadcrumb-separator {
color: #7a9682;
font-size: 0.8rem;
font-weight: normal;
margin: 0 0.1rem;
user-select: none;
}
/* Status & classification row */
.status-row {
margin-top: 1.1rem;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1.5rem;
flex-wrap: wrap;
}
.status-group {
flex: 1;
min-width: 220px;
}
.classification-group {
flex: 1;
min-width: 220px;
text-align: right;
}
.status-badges {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
justify-content: flex-start;
}
.classification-group .status-badges {
justify-content: flex-end;
}
.status-active {
background: #16a34a;
color: white;
border-color: #15803d;
}
.status-tier1 {
background: #0891b2;
color: white;
border-color: #0e7490;
}
.status-priority {
background: #dc2626;
color: white;
border-color: #b91c1c;
}
.classification-badge {
padding: 0.3rem 0.7rem;
border-radius: 4px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.75rem;
font-weight: 600;
text-align: center;
border: 1px solid transparent;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.3rem;
white-space: nowrap;
}
.classification-landrace {
background: #7c2d12;
color: #fed7aa;
border-color: #9a3412;
}
.classification-population {
background: #581c87;
color: #e9d5ff;
border-color: #6b21a8;
}
/* Hero split: image + map */
.hero-split {
display: table;
width: 100%;
table-layout: fixed;
background: #faf8f5;
border-top: 1px solid rgba(109, 154, 124, 0.2);
}
.hero-image,
.hero-map {
display: table-cell;
width: 50%;
vertical-align: top;
height: 320px;
position: relative;
}
.hero-image {
background: #f5f3f0;
border-right: 1px solid #d4c5b8;
overflow: hidden; /* clamp child image */
}
.hero-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Map container */
.hero-map {
background: #fefcfa;
border: 1px solid #e5d5c8;
position: relative;
}
.map-container {
height: 318px;
width: calc(100% - 2px);
background: #f9f6f3;
display: flex;
align-items: center;
justify-content: center;
color: #6b7d6f;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.95rem;
font-weight: 500;
position: relative;
}
.lw-map {
width: 100% !important;
height: 318px !important;
}
/* Map overlays */
.accession-status {
position: absolute;
top: 0.85rem;
left: 0.85rem;
background: rgba(254, 252, 250, 0.96);
border: 1px solid #d4c5b8;
border-radius: 3px;
padding: 0.6rem 0.8rem;
box-shadow: 0 3px 10px rgba(47, 69, 56, 0.18);
max-width: 220px;
z-index: 1000;
}
.accession-status-title {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.7rem;
text-transform: uppercase;
color: #78856b;
font-weight: 600;
margin-bottom: 0.3rem;
letter-spacing: 0.5px;
}
.accession-status-value {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
color: #b91c1c;
font-size: 0.85rem;
margin-bottom: 0.15rem;
line-height: 1.3;
}
.accession-status-note {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: #78856b;
font-size: 0.75rem;
line-height: 1.3;
}
.coordinates {
position: absolute;
bottom: 0.85rem;
right: 0.85rem;
background: rgba(254, 252, 250, 0.95);
color: #2f4538;
padding: 0.5rem 0.75rem;
border-radius: 999px;
font-family: "SF Mono", Monaco, monospace;
font-size: 0.72rem;
font-weight: 500;
line-height: 1;
border: 1px solid #d4c5b8;
}
/* Image overlay caption */
.image-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(15, 36, 25, 0.9);
color: white;
padding: 0.9rem 1.1rem;
}
.image-caption {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.8rem;
font-weight: 500;
margin: 0;
line-height: 1.4;
color: #e8f0ec;
}
/* Details strip */
.hero-details {
background: #3a5d4a;
border-top: 1px solid rgba(109, 154, 124, 0.3);
padding: 0.75rem 1.1rem;
display: flex;
flex-wrap: nowrap;
justify-content: space-evenly;
gap: 0.75rem;
overflow-x: auto;
}
.detail-group {
display: flex;
flex-direction: column;
min-width: 90px;
max-width: 140px;
text-align: center;
flex-shrink: 0;
}
.detail-label {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.66rem;
color: #a3c4b0;
font-weight: 500;
margin-bottom: 0.2rem;
letter-spacing: 0.02em;
white-space: nowrap;
}
.detail-value {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.82rem;
font-weight: 600;
color: #f0f6f2;
line-height: 1.2;
white-space: nowrap;
}
.detail-value.highlight {
color: #fbbf24;
}
.detail-value .unit {
margin-left: 0.125rem;
}
/* Photo gallery */
.acc-gallery {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0.75rem;
margin: 1.25rem 0 1.75rem 0;
}
.acc-gallery-item {
background: #f5f3f0;
border: 1px solid #d4c5b8;
border-radius: 3px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.acc-gallery-img {
width: 100%;
height: 150px;
object-fit: cover;
display: block;
}
.acc-gallery-caption {
padding: 0.55rem 0.6rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.75rem;
line-height: 1.35;
color: #374151;
background: #fefcf9;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.hero-top {
padding: 1.5rem 1.5rem 1.4rem 1.5rem;
}
.hero-title {
font-size: 1.55rem;
}
.acc-gallery {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.acc-gallery-img {
height: 160px;
}
}
@media (max-width: 768px) {
.status-row {
flex-direction: column;
gap: 1.25rem;
}
.classification-group {
text-align: left;
}
.hero-split {
display: block;
}
.hero-image,
.hero-map {
display: block;
width: 100%;
height: 260px;
}
.hero-image img {
height: 100%;
}
.map-container,
.lw-map {
height: 258px !important;
}
}
@media (max-width: 640px) {
.metadata-secondary {
font-size: 0.75rem;
}
.acc-gallery {
grid-template-columns: 1fr;
}
.acc-gallery-img {
height: 180px;
}
}
/* Leaflet map controls - natural styling */
.leaflet-control {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.leaflet-control-layers {
background: rgba(254, 252, 250, 0.95) !important;
border: 1px solid #d4c5b8 !important;
border-radius: 3px !important;
box-shadow: 0 4px 12px rgba(47, 69, 56, 0.15) !important;
padding: 0.75rem !important;
}
.leaflet-control-zoom {
border: 1px solid #d4c5b8 !important;
border-radius: 3px !important;
box-shadow: 0 2px 8px rgba(47, 69, 56, 0.1) !important;
}
.leaflet-control-zoom a {
width: 30px !important;
height: 30px !important;
line-height: 30px !important;
font-size: 16px !important;
background: #fefcfa !important;
color: #2f4538 !important;
border: none !important;
}
.leaflet-control-zoom a:hover {
background: #f9f6f3 !important;
color: #1a3b2e !important;
}
/* ============================================ */
/* COMPACT ACCESSION HERO – SPACE SAVING TWEAKS */
/* ============================================ */
.hero-header {
margin: 0.5rem 0 1.25rem;
}
.hero-top {
padding: 1rem 1.3rem 0.9rem 1.3rem; /* was ~1.75/2rem */
}
/* Title + metadata */
.hero-title {
font-size: 1.6rem;
margin-bottom: 0.35rem;
}
.accession-metadata {
gap: 0.35rem;
margin-top: 0.5rem;
}
.metadata-secondary {
font-size: 0.8rem;
}
/* Section labels + blocks */
.header-section {
margin-top: 0.6rem; /* was 1.1rem */
}
.section-label {
margin-bottom: 0.3rem; /* was 0.55rem */
font-size: 0.62rem;
}
/* Status row */
.status-row {
margin-top: 0.7rem; /* was 1.1rem */
gap: 1rem;
}
.hero-top .status-badge,
.hero-top .classification-badge {
padding: 0.22rem 0.55rem;
font-size: 0.72rem;
}
/* Breadcrumbs */
.breadcrumb-trail {
gap: 0.25rem;
font-size: 0.85rem;
}
.breadcrumb-item {
padding: 0.16rem 0.38rem;
}
/* Image + map band */
.hero-image,
.hero-map {
height: 280px; /* was 320px */
}
.hero-image img {
height: 100%;
}
.map-container,
.lw-map {
height: 278px !important;
}
/* Details strip */
.hero-details {
padding: 0.55rem 0.9rem; /* was 0.75 / 1.1 */
}
.detail-label {
font-size: 0.62rem;
}
.detail-value {
font-size: 0.78rem;
}