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 1: | Line 1: | ||
/* Research Database Header */ | /* Research Database Header */ | ||
.hero-header { | .hero-header { | ||
| Line 33: | Line 31: | ||
} | } | ||
/* | /* Geographic breadcrumb */ | ||
.geographic-breadcrumb { | .geographic-breadcrumb { | ||
margin-top: 1rem; | margin-top: 1rem; | ||
| Line 49: | Line 47: | ||
} | } | ||
. | /* Override MediaWiki link styling for breadcrumb */ | ||
.hero-top .hero-subtitle a, | |||
.hero-top .hero-subtitle a:visited, | |||
.hero-top .hero-subtitle a:hover { | |||
color: inherit !important; | |||
text-decoration: none !important; | |||
. | |||
color: | |||
} | } | ||
/* FIXED: Status | /* FIXED: Status badges - better positioning and alignment */ | ||
.status-group { | .status-group { | ||
position: absolute; | position: absolute; | ||
top: 1. | top: 1.5rem; | ||
right: | right: 1.75rem; | ||
text-align: right; | text-align: right; | ||
} | } | ||
| Line 86: | Line 65: | ||
.status-label { | .status-label { | ||
font-family: "SF Mono", Monaco, monospace; | font-family: "SF Mono", Monaco, monospace; | ||
font-size: 0. | font-size: 0.65rem; | ||
color: #94a3b8; | color: #94a3b8; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
margin-bottom: 0. | margin-bottom: 0.4rem; | ||
display: block; | display: block; | ||
} | } | ||
| Line 97: | Line 76: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0. | gap: 0.3rem; | ||
align-items: flex-end; | align-items: flex-end; | ||
} | } | ||
.status-badge { | .status-badge { | ||
padding: 0. | padding: 0.25rem 0.6rem; | ||
border-radius: 3px; | border-radius: 3px; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
font-size: 0. | font-size: 0.7rem; | ||
font-weight: 600; | font-weight: 600; | ||
min-width: | min-width: 70px; | ||
text-align: center; | text-align: center; | ||
border: 1px solid transparent; | border: 1px solid transparent; | ||
| Line 114: | Line 92: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: 0. | gap: 0.25rem; | ||
} | } | ||
.status-active { | .status-active { | ||
background: #10b981; | background: #10b981; | ||
| Line 150: | Line 127: | ||
font-size: 0.8rem; | font-size: 0.8rem; | ||
font-weight: bold; | font-weight: bold; | ||
} | |||
/* Technical data badges */ | |||
.hero-subtitle { | |||
font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", "Courier New", monospace; | |||
font-size: 0.65rem; | |||
color: #cbd5e1; | |||
background: rgba(15, 23, 42, 0.8); | |||
border: 1px solid rgba(148, 163, 184, 0.2); | |||
padding: 0.3rem 0.6rem; | |||
border-radius: 2px; | |||
display: inline-block; | |||
margin-top: 0.75rem; | |||
font-weight: 500; | |||
text-transform: uppercase; | |||
letter-spacing: 0.5px; | |||
} | } | ||
| Line 180: | Line 173: | ||
} | } | ||
/* | /* Scientific placeholder */ | ||
.photo-placeholder { | .photo-placeholder { | ||
height: 420px; | height: 420px; | ||
| Line 206: | Line 199: | ||
} | } | ||
.placeholder-subtitle { | .placeholder-subtitle { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
| Line 215: | Line 207: | ||
margin: 0 auto 1.5rem; | margin: 0 auto 1.5rem; | ||
} | } | ||
/* Technical image overlay */ | /* Technical image overlay */ | ||
| Line 238: | Line 228: | ||
} | } | ||
/* | /* Map with light container */ | ||
.hero-map { | .hero-map { | ||
background: white; | background: white; | ||
| Line 264: | Line 254: | ||
} | } | ||
/* | /* Map overlay - location info */ | ||
.accession-status { | .accession-status { | ||
position: absolute; | position: absolute; | ||
| Line 304: | Line 294: | ||
} | } | ||
/* | /* Coordinates with copy functionality */ | ||
.coordinates { | .coordinates { | ||
position: absolute; | position: absolute; | ||
| Line 333: | Line 323: | ||
} | } | ||
/* FIXED: | /* FIXED: Details strip - single line, tighter spacing */ | ||
.hero-details { | .hero-details { | ||
background: #1e293b; | background: #1e293b; | ||
border-top: 1px solid rgba(148, 163, 184, 0.2); | border-top: 1px solid rgba(148, 163, 184, 0.2); | ||
padding: | padding: 0.75rem 1rem; | ||
display: flex; | display: flex; | ||
flex-wrap: | flex-wrap: nowrap; | ||
justify-content: | justify-content: space-evenly; | ||
gap: | gap: 0.75rem; | ||
position: relative; | position: relative; | ||
overflow-x: auto; | |||
} | } | ||
| Line 348: | Line 339: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
min-width: | min-width: 80px; | ||
max-width: 120px; | |||
text-align: center; | text-align: center; | ||
position: relative; | position: relative; | ||
flex-shrink: 0; | |||
} | } | ||
.detail-label { | .detail-label { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
font-size: 0. | font-size: 0.65rem; | ||
color: #94a3b8; | color: #94a3b8; | ||
font-weight: 500; | font-weight: 500; | ||
margin-bottom: 0. | margin-bottom: 0.25rem; | ||
letter-spacing: 0.02em; | letter-spacing: 0.02em; | ||
white-space: nowrap; | |||
} | } | ||
.detail-value { | .detail-value { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
font-size: | font-size: 0.8rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: #f8fafc; | color: #f8fafc; | ||
line-height: 1. | line-height: 1.2; | ||
white-space: nowrap; | |||
} | } | ||
| Line 376: | Line 369: | ||
} | } | ||
.detail-value .unit { | .detail-value .unit { | ||
margin-left: 0.125rem; | margin-left: 0.125rem; | ||
} | } | ||
/* Map controls | /* Map controls */ | ||
.leaflet-control { | .leaflet-control { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; | ||
| Line 415: | Line 407: | ||
} | } | ||
/* | /* Mobile responsiveness */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.hero-split { | .hero-split { | ||
| Line 466: | Line 458: | ||
.hero-details { | .hero-details { | ||
padding: | padding: 0.75rem 1rem; | ||
gap: | gap: 0.5rem; | ||
} | } | ||
.detail-group { | .detail-group { | ||
min-width: | min-width: 70px; | ||
max-width: 100px; | |||
} | } | ||
Revision as of 14:54, 17 September 2025
/* Research Database Header */
.hero-header {
background: #0f172a;
border: 1px solid #334155;
border-radius: 3px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
margin-bottom: 2rem;
position: relative;
}
/* Header with proper information hierarchy */
.hero-top {
background: #1e293b;
color: white;
padding: 1.75rem 2rem 1.5rem 2rem;
position: relative;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
/* Scientific title */
.hero-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1.75rem;
font-weight: 600;
margin: 0;
line-height: 1.2;
color: #f8fafc;
letter-spacing: -0.02em;
max-width: 60%;
}
/* Geographic breadcrumb */
.geographic-breadcrumb {
margin-top: 1rem;
margin-bottom: 0.75rem;
}
.geographic-breadcrumb-label {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.7rem;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.5rem;
display: block;
}
/* Override MediaWiki link styling for breadcrumb */
.hero-top .hero-subtitle a,
.hero-top .hero-subtitle a:visited,
.hero-top .hero-subtitle a:hover {
color: inherit !important;
text-decoration: none !important;
}
/* FIXED: Status badges - better positioning and alignment */
.status-group {
position: absolute;
top: 1.5rem;
right: 1.75rem;
text-align: right;
}
.status-label {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.65rem;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.4rem;
display: block;
}
.status-badges {
display: flex;
flex-direction: column;
gap: 0.3rem;
align-items: flex-end;
}
.status-badge {
padding: 0.25rem 0.6rem;
border-radius: 3px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.7rem;
font-weight: 600;
min-width: 70px;
text-align: center;
border: 1px solid transparent;
display: flex;
align-items: center;
justify-content: center;
gap: 0.25rem;
}
.status-active {
background: #10b981;
color: white;
border-color: #059669;
}
.status-active::before {
content: "✓";
font-size: 0.7rem;
}
.status-tier1 {
background: #3b82f6;
color: white;
border-color: #2563eb;
}
.status-tier1::before {
content: "●";
font-size: 0.6rem;
}
.status-priority {
background: #ef4444;
color: white;
border-color: #dc2626;
}
.status-priority::before {
content: "!";
font-size: 0.8rem;
font-weight: bold;
}
/* Technical data badges */
.hero-subtitle {
font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", "Courier New", monospace;
font-size: 0.65rem;
color: #cbd5e1;
background: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(148, 163, 184, 0.2);
padding: 0.3rem 0.6rem;
border-radius: 2px;
display: inline-block;
margin-top: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Data visualization split */
.hero-split {
display: table;
width: 100%;
table-layout: fixed;
background: #f8fafc;
border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.hero-image, .hero-map {
display: table-cell;
width: 50%;
vertical-align: top;
height: 420px;
position: relative;
}
.hero-image {
background: #f1f5f9;
border-right: 1px solid #e2e8f0;
}
.hero-image img {
width: 100%;
height: 420px;
object-fit: cover;
}
/* Scientific placeholder */
.photo-placeholder {
height: 420px;
background: #f8fafc;
display: table;
width: 100%;
position: relative;
}
.placeholder-content {
display: table-cell;
vertical-align: middle;
text-align: center;
padding: 3rem;
position: relative;
}
.placeholder-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1.25rem;
color: #1e293b;
font-weight: 600;
margin-bottom: 1rem;
letter-spacing: -0.01em;
}
.placeholder-subtitle {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1rem;
color: #475569;
line-height: 1.6;
max-width: 65ch;
margin: 0 auto 1.5rem;
}
/* Technical image overlay */
.image-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(15, 23, 42, 0.9);
color: white;
padding: 1.25rem;
}
.image-caption {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.8rem;
font-weight: 500;
margin: 0;
line-height: 1.4;
color: #e2e8f0;
}
/* Map with light container */
.hero-map {
background: white;
border: 1px solid #e2e8f0;
position: relative;
}
.map-container {
height: 418px;
width: calc(100% - 2px);
background: #f8fafc;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1rem;
font-weight: 500;
position: relative;
}
.lw-map {
width: 100% !important;
height: 418px !important;
}
/* Map overlay - location info */
.accession-status {
position: absolute;
top: 1rem;
left: 1rem;
background: rgba(255, 255, 255, 0.95);
border: 1px solid #d1d5db;
border-radius: 3px;
padding: 0.75rem 1rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
max-width: 220px;
z-index: 1000;
}
.accession-status-title {
font-family: "SF Mono", Monaco, monospace;
font-size: 0.7rem;
text-transform: uppercase;
color: #6b7280;
font-weight: 600;
margin-bottom: 0.4rem;
letter-spacing: 0.5px;
}
.accession-status-value {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
color: #1f2937;
font-size: 0.85rem;
margin-bottom: 0.25rem;
line-height: 1.3;
}
.accession-status-note {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: #6b7280;
font-size: 0.75rem;
line-height: 1.3;
}
/* Coordinates with copy functionality */
.coordinates {
position: absolute;
bottom: 1rem;
right: 1rem;
background: rgba(255, 255, 255, 0.95);
color: #1f2937;
padding: 0.5rem 0.75rem;
border-radius: 3px;
font-family: "SF Mono", Monaco, monospace;
font-size: 0.75rem;
font-weight: 500;
line-height: 1;
border: 1px solid #d1d5db;
cursor: pointer;
transition: all 0.2s;
}
.coordinates:hover {
background: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.coordinates::after {
content: "📋";
margin-left: 0.5rem;
opacity: 0.6;
}
/* FIXED: Details strip - single line, tighter spacing */
.hero-details {
background: #1e293b;
border-top: 1px solid rgba(148, 163, 184, 0.2);
padding: 0.75rem 1rem;
display: flex;
flex-wrap: nowrap;
justify-content: space-evenly;
gap: 0.75rem;
position: relative;
overflow-x: auto;
}
.detail-group {
display: flex;
flex-direction: column;
min-width: 80px;
max-width: 120px;
text-align: center;
position: relative;
flex-shrink: 0;
}
.detail-label {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.65rem;
color: #94a3b8;
font-weight: 500;
margin-bottom: 0.25rem;
letter-spacing: 0.02em;
white-space: nowrap;
}
.detail-value {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 0.8rem;
font-weight: 600;
color: #f8fafc;
line-height: 1.2;
white-space: nowrap;
}
.detail-value.highlight {
color: #10b981;
}
.detail-value .unit {
margin-left: 0.125rem;
}
/* Map controls */
.leaflet-control {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.leaflet-control-layers {
background: rgba(255, 255, 255, 0.95) !important;
border: 1px solid #d1d5db !important;
border-radius: 3px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
padding: 0.75rem !important;
}
.leaflet-control-zoom {
border: 1px solid #d1d5db !important;
border-radius: 3px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.leaflet-control-zoom a {
width: 30px !important;
height: 30px !important;
line-height: 30px !important;
font-size: 16px !important;
background: white !important;
color: #374151 !important;
border: none !important;
}
.leaflet-control-zoom a:hover {
background: #f9fafb !important;
color: #111827 !important;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.hero-split {
display: block;
}
.hero-image, .hero-map {
display: block;
width: 100%;
height: 320px;
}
.hero-map {
border-right: none;
border-top: 1px solid #e2e8f0;
}
.photo-placeholder {
height: 320px;
}
.map-container {
height: 318px;
}
.lw-map {
height: 318px !important;
}
.status-group {
position: static;
margin-top: 1rem;
text-align: left;
}
.status-badges {
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
gap: 0.5rem;
}
.hero-title {
max-width: 100%;
}
.hero-top {
padding: 1.25rem 1.5rem;
}
.hero-details {
padding: 0.75rem 1rem;
gap: 0.5rem;
}
.detail-group {
min-width: 70px;
max-width: 100px;
}
.accession-status {
max-width: 180px;
padding: 0.5rem 0.75rem;
}
}