Template:Accession/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 36: | Line 36: | ||
} | } | ||
/* Geographic breadcrumb in header - FIXED */ | /* Geographic breadcrumb in header - FIXED STYLING */ | ||
.hero-breadcrumb { | .hero-breadcrumb { | ||
margin-top: 0.75rem; | margin-top: 0.75rem; | ||
font-size: 0.7rem; | font-size: 0.7rem; | ||
color: #94a3b8; | color: #94a3b8; | ||
/* Remove any background - should be transparent */ | |||
background: none !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
} | } | ||
| Line 57: | Line 61: | ||
align-items: center; | align-items: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0.25rem; | |||
} | } | ||
| Line 63: | Line 68: | ||
font-weight: 600; | font-weight: 600; | ||
text-decoration: none; | text-decoration: none; | ||
padding: 0. | padding: 0.2rem 0.4rem; | ||
border-radius: | border-radius: 4px; | ||
background: rgba(16, 185, 129, 0. | background: rgba(16, 185, 129, 0.15); | ||
transition: | font-size: 0.65rem; | ||
border: 1px solid rgba(16, 185, 129, 0.3); | |||
transition: all 0.2s; | |||
} | } | ||
.hero-breadcrumb .level:hover { | .hero-breadcrumb .level:hover { | ||
background: rgba(16, 185, 129, 0. | background: rgba(16, 185, 129, 0.25); | ||
border-color: rgba(16, 185, 129, 0.5); | |||
} | } | ||
.hero-breadcrumb .separator { | .hero-breadcrumb .separator { | ||
color: #64748b; | color: #64748b; | ||
margin: 0 0. | margin: 0 0.2rem; | ||
font-weight: normal; | font-weight: normal; | ||
font-size: 0.6rem; | |||
} | } | ||
Revision as of 12:56, 17 September 2025
/* Cleaner Hero Header - Remove frames and tighten */
.hero-header {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
margin-bottom: 1.5rem;
}
/* Tighter top section */
.hero-top {
background: #0f172a;
color: white;
padding: 1rem 1.5rem;
position: relative;
}
.hero-title {
font-size: 1.8rem;
font-weight: bold;
margin: 0;
line-height: 1;
color: white;
max-width: 70%;
}
.hero-subtitle {
font-family: monospace;
font-size: 0.7rem;
color: #94a3b8;
background: rgba(255, 255, 255, 0.08);
padding: 0.25rem 0.5rem;
border-radius: 3px;
display: inline-block;
margin-top: 0.5rem;
}
/* Geographic breadcrumb in header - FIXED STYLING */
.hero-breadcrumb {
margin-top: 0.75rem;
font-size: 0.7rem;
color: #94a3b8;
/* Remove any background - should be transparent */
background: none !important;
border: none !important;
padding: 0 !important;
}
.hero-breadcrumb-label {
font-size: 0.6rem;
text-transform: uppercase;
color: #64748b;
font-weight: bold;
letter-spacing: 0.5px;
margin-bottom: 0.25rem;
display: block;
}
.hero-breadcrumb-path {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.25rem;
}
.hero-breadcrumb .level {
color: #10b981;
font-weight: 600;
text-decoration: none;
padding: 0.2rem 0.4rem;
border-radius: 4px;
background: rgba(16, 185, 129, 0.15);
font-size: 0.65rem;
border: 1px solid rgba(16, 185, 129, 0.3);
transition: all 0.2s;
}
.hero-breadcrumb .level:hover {
background: rgba(16, 185, 129, 0.25);
border-color: rgba(16, 185, 129, 0.5);
}
.hero-breadcrumb .separator {
color: #64748b;
margin: 0 0.2rem;
font-weight: normal;
font-size: 0.6rem;
}
.hero-badges {
position: absolute;
top: 0.75rem;
right: 1rem;
}
.hero-badge {
padding: 0.1rem 0.3rem;
border-radius: 4px;
font-size: 0.5rem;
font-weight: bold;
text-transform: uppercase;
margin-bottom: 0.1rem;
display: block;
min-width: 50px;
text-align: center;
}
.badge-active {
background: #16a34a;
color: white;
}
.badge-tier1 {
background: #2563eb;
color: white;
}
.badge-priority {
background: #dc2626;
color: white;
}
/* Split section */
.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;
}
.hero-image {
background: #f1f5f9;
border-right: 1px solid #e2e8f0;
}
.hero-image img {
width: 100%;
height: 400px;
object-fit: cover;
}
/* Placeholder */
.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.2rem;
color: #334155;
font-weight: bold;
margin-bottom: 0.75rem;
}
.placeholder-subtitle {
font-size: 0.9rem;
color: #64748b;
line-height: 1.4;
max-width: 280px;
margin: 0 auto 1rem;
}
.placeholder-instruction {
font-size: 0.8rem;
color: #94a3b8;
background: white;
padding: 0.75rem;
border-radius: 6px;
border: 1px solid #e2e8f0;
max-width: 260px;
margin: 0 auto;
}
/* Image overlay - tightened */
.image-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
color: white;
padding: 0.75rem 1rem 0.5rem;
}
.image-caption {
font-size: 0.8rem;
font-weight: bold;
margin: 0;
line-height: 1.2;
}
/* Map section - FIXED */
.hero-map {
background: #f8fafc;
}
.map-container {
height: 400px;
width: 100%;
background: #e2e8f0;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
font-size: 0.9rem;
font-weight: bold;
position: relative;
}
/* Ensure the actual map div takes full space when loaded */
.lw-map {
width: 100% !important;
height: 400px !important;
}
/* TIGHTENED Map Legend - Much more compact */
.map-legend {
position: absolute;
top: 0.5rem;
left: 0.5rem;
background: rgba(255, 255, 255, 0.95);
border-radius: 6px;
padding: 0.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
max-width: 160px;
border: 1px solid rgba(0, 0, 0, 0.1);
z-index: 1000;
font-size: 0.7rem;
}
.legend-section {
margin-bottom: 0.4rem;
}
.legend-section:last-child {
margin-bottom: 0;
}
.legend-title {
font-size: 0.6rem;
text-transform: uppercase;
color: #64748b;
font-weight: bold;
margin-bottom: 0.15rem;
letter-spacing: 0.5px;
}
.legend-primary {
font-weight: bold;
color: #1e293b;
font-size: 0.7rem;
margin-bottom: 0.1rem;
line-height: 1.1;
}
.legend-secondary {
color: #64748b;
font-size: 0.65rem;
margin-bottom: 0.15rem;
line-height: 1.1;
}
.legend-coords {
font-family: monospace;
font-size: 0.6rem;
color: #374151;
background: rgba(248, 250, 252, 0.8);
padding: 0.15rem 0.3rem;
border-radius: 3px;
line-height: 1;
}
/* TIGHTENED Conservation Status Legend */
.leaflet-control {
font-size: 0.65rem !important;
}
.leaflet-control-layers {
background: rgba(255, 255, 255, 0.9) !important;
border-radius: 4px !important;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
border: 1px solid rgba(0, 0, 0, 0.1) !important;
padding: 0.3rem !important;
}
.leaflet-control-layers-list {
margin: 0 !important;
}
.leaflet-control-layers label {
font-size: 0.6rem !important;
margin-bottom: 0.1rem !important;
line-height: 1.1 !important;
padding-left: 0.15rem !important;
}
/* Tighten leaflet zoom controls */
.leaflet-control-zoom {
border: 1px solid rgba(0, 0, 0, 0.1) !important;
border-radius: 4px !important;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
}
.leaflet-control-zoom a {
width: 24px !important;
height: 24px !important;
line-height: 24px !important;
font-size: 14px !important;
background: rgba(255, 255, 255, 0.9) !important;
}
/* Legacy map overlay styles (kept for compatibility) */
.map-overlay {
position: absolute;
top: 0.5rem;
left: 0.5rem;
background: rgba(255, 255, 255, 0.95);
border-radius: 6px;
padding: 0.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
max-width: 160px;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.map-overlay h4 {
margin: 0 0 0.25rem 0;
font-size: 0.6rem;
text-transform: uppercase;
color: #64748b;
font-weight: bold;
letter-spacing: 0.5px;
}
.location-primary {
font-weight: bold;
color: #1e293b;
margin-bottom: 0.25rem;
font-size: 0.7rem;
line-height: 1.1;
}
.location-secondary {
color: #64748b;
font-size: 0.65rem;
line-height: 1.1;
}
.coordinates {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 0.25rem 0.4rem;
border-radius: 4px;
font-family: monospace;
font-size: 0.6rem;
font-weight: bold;
line-height: 1;
}
/* Details section - TIGHTENED AND INTEGRATED */
.hero-details {
background: #f8fafc;
border-top: 1px solid #e2e8f0;
padding: 0.75rem 1.5rem;
text-align: center;
}
.detail-group {
display: inline-block;
margin: 0 0.75rem 0.5rem 0;
min-width: 85px;
vertical-align: top;
}
.detail-label {
font-size: 0.6rem;
text-transform: uppercase;
color: #64748b;
font-weight: bold;
margin-bottom: 0.15rem;
letter-spacing: 0.5px;
}
.detail-value {
font-size: 0.8rem;
font-weight: bold;
color: #1e293b;
line-height: 1.1;
}
.detail-value.highlight {
color: #059669;
}
/* Mobile */
@media (max-width: 768px) {
.hero-split {
display: block;
}
.hero-image, .hero-map {
display: block;
width: 100%;
height: 300px;
}
.hero-map {
border-right: none;
border-top: 1px solid #e2e8f0;
}
.photo-placeholder {
height: 300px;
}
.map-container {
height: 300px;
}
.lw-map {
height: 300px !important;
}
.hero-badges {
position: static;
margin-top: 1rem;
}
.hero-badge {
margin: 0 0.5rem 0.5rem 0;
}
.hero-top {
padding: 1.5rem;
}
.hero-details {
padding: 1rem 1.5rem;
}
.map-legend, .map-overlay {
max-width: 140px;
padding: 0.4rem;
}
.legend-primary, .location-primary {
font-size: 0.65rem;
}
.legend-secondary, .location-secondary {
font-size: 0.6rem;
}
.hero-breadcrumb-path {
justify-content: flex-start;
}
}