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 Tag: Reverted |
||
Line 1: | Line 1: | ||
/* | /* Template:Accession/styles.css - Complete Fixed Version */ | ||
/* | .accession-simple { | ||
max-width: 1200px; | |||
margin: 0 auto; | |||
padding: 1rem; | |||
} | |||
/* ===== HERO HEADER ===== */ | |||
.hero-header { | .hero-header { | ||
background: | background: white; | ||
border-radius: 8px; | |||
border-radius: | |||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); | ||
margin-bottom: | margin-bottom: 1.5rem; | ||
border: 1px solid #e2e8f0; | |||
} | } | ||
/* | /* ===== HERO TOP SECTION ===== */ | ||
.hero-top { | .hero-top { | ||
background: # | background: #0f172a; | ||
color: white; | color: white; | ||
padding: | padding: 1.5rem 2rem; | ||
position: relative; | position: relative; | ||
} | } | ||
.title-section { | .title-section { | ||
max-width: 70%; | |||
} | } | ||
.hero-title { | .hero-title { | ||
font-size: 2rem; | |||
font-size: | font-weight: bold; | ||
font-weight: | |||
margin: 0 0 0.75rem 0; | margin: 0 0 0.75rem 0; | ||
line-height: 1.2; | line-height: 1.2; | ||
color: | color: white; | ||
} | } | ||
/* | /* ===== HEADER BADGES ROW ===== */ | ||
. | .header-badges-row { | ||
margin-top: 0.75rem; | margin-top: 0.75rem; | ||
} | } | ||
. | /* Base status badge styling */ | ||
display: flex; | .status-badge { | ||
padding: 0.25rem 0.75rem; | |||
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; | align-items: center; | ||
gap: | justify-content: center; | ||
gap: 0.25rem; | |||
margin-right: 0.25rem; | |||
} | } | ||
/* Accession ID badge - monospace style */ | |||
/* Accession ID badge - | |||
.accession-id-badge { | .accession-id-badge { | ||
background: | background: #374151; | ||
color: | color: white; | ||
font-family: 'Monaco', 'Menlo', 'Consolas', monospace; | |||
font-family: | border-color: #4b5563; | ||
} | } | ||
/* Geographic badges - | /* Geographic badges - muted botanical colors */ | ||
.geographic-current { | .geographic-current { | ||
background: rgba(109, 154, 124, 0.3) | background: rgba(109, 154, 124, 0.3); | ||
color: #f0f6f2 | color: #f0f6f2; | ||
border: | font-weight: 600; | ||
border-color: rgba(109, 154, 124, 0.5); | |||
} | } | ||
Line 111: | Line 77: | ||
content: "📍"; | content: "📍"; | ||
font-size: 0.7rem; | font-size: 0.7rem; | ||
margin-right: 0.3rem; | |||
} | } | ||
.geographic-parent { | .geographic-parent { | ||
background: rgba(109, 154, 124, 0.15) | background: rgba(109, 154, 124, 0.15); | ||
color: # | color: #2c5530; | ||
border: | border-color: rgba(109, 154, 124, 0.25); | ||
} | } | ||
. | .geographic-badge { | ||
padding: 0.25rem 0.6rem; | |||
border-radius: 4px; | |||
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.72rem; | ||
font-weight: 500; | font-weight: 500; | ||
text-align: center; | |||
display: inline-block; | |||
margin-right: 0.3rem; | |||
text-decoration: none; | |||
text- | |||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
background: rgba(109, 154, 124, 0.15); | |||
color: #2c5530; | |||
border: 1px solid rgba(109, 154, 124, 0.25); | |||
background: rgba( | |||
color: # | |||
} | } | ||
/* Active status styling */ | |||
.status-active { | .status-active { | ||
background: #16a34a; | background: #16a34a; | ||
Line 291: | Line 114: | ||
} | } | ||
/* Tier 1 status styling */ | |||
.status-tier1 { | .status-tier1 { | ||
background: #0891b2; | background: #0891b2; | ||
Line 302: | Line 126: | ||
} | } | ||
/* ===== HERO SPLIT SECTION ===== */ | |||
/* | |||
.hero-split { | .hero-split { | ||
display: table; | display: table; | ||
width: 100%; | width: 100%; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: # | background: #f8fafc; | ||
} | } | ||
Line 382: | Line 138: | ||
width: 50%; | width: 50%; | ||
vertical-align: top; | vertical-align: top; | ||
height: | height: 400px; | ||
position: relative; | position: relative; | ||
} | } | ||
.hero-image { | .hero-image { | ||
background: # | background: #f1f5f9; | ||
border-right: 1px solid # | border-right: 1px solid #e2e8f0; | ||
} | } | ||
.hero-image img { | .hero-image img { | ||
width: 100%; | width: 100%; | ||
height: | height: 400px; | ||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
/* | /* ===== PHOTO PLACEHOLDER ===== */ | ||
.photo-placeholder { | .photo-placeholder { | ||
height: | height: 400px; | ||
background: # | background: #f8fafc; | ||
display: table; | display: table; | ||
width: 100%; | width: 100%; | ||
} | } | ||
Line 410: | Line 165: | ||
vertical-align: middle; | vertical-align: middle; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 2rem; | ||
} | } | ||
.placeholder-title { | .placeholder-title { | ||
font-size: 1.2rem; | |||
font-size: 1. | color: #334155; | ||
color: # | font-weight: bold; | ||
font-weight: | margin-bottom: 0.75rem; | ||
margin-bottom: | |||
} | } | ||
.placeholder-subtitle { | .placeholder-subtitle { | ||
font-size: 0.9rem; | |||
font-size: | color: #64748b; | ||
color: # | line-height: 1.4; | ||
line-height: 1. | max-width: 280px; | ||
max-width: | margin: 0 auto; | ||
margin: 0 auto | |||
} | } | ||
/* | /* ===== IMAGE OVERLAY ===== */ | ||
.image-overlay { | .image-overlay { | ||
position: absolute; | position: absolute; | ||
Line 438: | Line 189: | ||
left: 0; | left: 0; | ||
right: 0; | right: 0; | ||
background: rgba( | background: rgba(0, 0, 0, 0.6); | ||
color: white; | color: white; | ||
padding: | padding: 0.75rem 1rem 0.5rem; | ||
} | } | ||
.image-caption { | .image-caption { | ||
font-size: 0.8rem; | font-size: 0.8rem; | ||
font-weight: | font-weight: bold; | ||
margin: 0; | margin: 0; | ||
line-height: 1. | line-height: 1.2; | ||
} | } | ||
/* | /* ===== MAP SECTION ===== */ | ||
.hero-map { | .hero-map { | ||
background: # | background: #f8fafc; | ||
} | } | ||
.map-container { | .map-container { | ||
height: | height: 400px; | ||
background: #e2e8f0; | |||
background: # | display: table-cell; | ||
display: | vertical-align: middle; | ||
align | text-align: center; | ||
color: #64748b; | |||
color: # | font-family: monospace; | ||
font-family: | padding: 2rem; | ||
} | } | ||
/* ===== HERO DETAILS STRIP ===== */ | |||
/* | |||
.hero-details { | .hero-details { | ||
background: # | background: #fff; | ||
border-top: | border-top: 2px solid #334155; | ||
padding: | padding: 1.5rem 2rem; | ||
text-align: center; | |||
display: flex; | display: flex; | ||
flex-wrap: | flex-wrap: wrap; | ||
justify-content: | justify-content: center; | ||
gap: | gap: 2rem; | ||
} | } | ||
.detail-group { | .detail-group { | ||
min-width: 120px; | |||
min | |||
text-align: center; | text-align: center; | ||
} | } | ||
.detail-label { | .detail-label { | ||
font- | font-size: 0.75rem; | ||
text-transform: uppercase; | |||
color: # | color: #64748b; | ||
font-weight: | font-weight: bold; | ||
margin-bottom: 0.25rem; | margin-bottom: 0.25rem; | ||
} | } | ||
.detail-value { | .detail-value { | ||
font-size: 1rem; | |||
font-size: | font-weight: bold; | ||
font-weight: | color: #1e293b; | ||
color: # | |||
} | } | ||
.detail-value.highlight { | .detail-value.highlight { | ||
color: # | color: #059669; | ||
} | } | ||
. | .unit { | ||
margin-left: 0. | font-size: 0.8rem; | ||
color: #64748b; | |||
margin-left: 0.1rem; | |||
} | } | ||
/* | /* ===== TIER 1 DATA SECTION ===== */ | ||
. | .tier1 { | ||
background: #f9fafb; | |||
border: 1px solid #e5e7eb; | |||
border-radius: 8px; | |||
padding: 2rem; | |||
margin-top: 2rem; | |||
} | } | ||
. | .tier1 h2 { | ||
color: #1f2937; | |||
margin-bottom: 1.5rem; | |||
font-size: 1.5rem; | |||
} | } | ||
. | .tier1 h3 { | ||
color: #374151; | |||
border- | margin: 1.5rem 0 0.75rem 0; | ||
font-size: 1.1rem; | |||
border-bottom: 1px solid #e5e7eb; | |||
padding-bottom: 0.5rem; | |||
} | } | ||
. | .tier1 .detail-label { | ||
font-weight: bold; | |||
color: #4b5563; | |||
min-width: 200px; | |||
font- | |||
color: # | |||
display: inline-block; | display: inline-block; | ||
} | } | ||
. | .tier1 .detail-value { | ||
color: #111827; | |||
color: # | |||
} | } | ||
.tier1 > div { | |||
. | margin-bottom: 0.5rem; | ||
padding: 0.25rem 0; | |||
} | } | ||
/* ===== MOBILE RESPONSIVE ===== */ | |||
/* | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.hero-split { | .hero-split { | ||
display: block; | display: block; | ||
Line 772: | Line 306: | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
height: | height: 300px; | ||
} | } | ||
.hero-map { | .hero-map { | ||
border-right: none; | border-right: none; | ||
border-top: 1px solid # | border-top: 1px solid #e2e8f0; | ||
} | } | ||
.photo-placeholder { | .photo-placeholder { | ||
height: | height: 300px; | ||
} | } | ||
.map-container { | .map-container { | ||
height: | height: 298px; | ||
} | |||
.hero-title { | |||
font-size: 1.5rem; | |||
} | |||
.title-section { | |||
max-width: 100%; | |||
} | } | ||
. | .hero-top { | ||
padding: 1.25rem 1.5rem; | |||
} | } | ||
.hero-details { | .hero-details { | ||
padding: | padding: 1rem 1.5rem; | ||
gap: | gap: 1rem; | ||
} | } | ||
.detail-group { | .detail-group { | ||
min | min-width: 100px; | ||
} | } | ||
. | .header-badges-row { | ||
margin-top: 0.5rem; | |||
padding: | } | ||
.tier1 { | |||
padding: 1.5rem; | |||
} | } | ||
} | } |
Revision as of 12:58, 19 September 2025
/* Template:Accession/styles.css - Complete Fixed Version */ .accession-simple { max-width: 1200px; margin: 0 auto; padding: 1rem; } /* ===== HERO HEADER ===== */ .hero-header { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); margin-bottom: 1.5rem; border: 1px solid #e2e8f0; } /* ===== HERO TOP SECTION ===== */ .hero-top { background: #0f172a; color: white; padding: 1.5rem 2rem; position: relative; } .title-section { max-width: 70%; } .hero-title { font-size: 2rem; font-weight: bold; margin: 0 0 0.75rem 0; line-height: 1.2; color: white; } /* ===== HEADER BADGES ROW ===== */ .header-badges-row { margin-top: 0.75rem; } /* Base status badge styling */ .status-badge { padding: 0.25rem 0.75rem; 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.25rem; margin-right: 0.25rem; } /* Accession ID badge - monospace style */ .accession-id-badge { background: #374151; color: white; font-family: 'Monaco', 'Menlo', 'Consolas', monospace; border-color: #4b5563; } /* Geographic badges - muted botanical colors */ .geographic-current { background: rgba(109, 154, 124, 0.3); color: #f0f6f2; font-weight: 600; border-color: rgba(109, 154, 124, 0.5); } .geographic-current::before { content: "📍"; font-size: 0.7rem; margin-right: 0.3rem; } .geographic-parent { background: rgba(109, 154, 124, 0.15); color: #2c5530; border-color: rgba(109, 154, 124, 0.25); } .geographic-badge { padding: 0.25rem 0.6rem; border-radius: 4px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.72rem; font-weight: 500; text-align: center; display: inline-block; margin-right: 0.3rem; text-decoration: none; transition: all 0.2s ease; background: rgba(109, 154, 124, 0.15); color: #2c5530; border: 1px solid rgba(109, 154, 124, 0.25); } /* Active status styling */ .status-active { background: #16a34a; color: white; border-color: #15803d; } .status-active::before { content: "✓"; font-size: 0.7rem; } /* Tier 1 status styling */ .status-tier1 { background: #0891b2; color: white; border-color: #0e7490; } .status-tier1::before { content: "●"; font-size: 0.6rem; } /* ===== HERO 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; } /* ===== PHOTO 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-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; } /* ===== IMAGE OVERLAY ===== */ .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 ===== */ .hero-map { background: #f8fafc; } .map-container { height: 400px; background: #e2e8f0; display: table-cell; vertical-align: middle; text-align: center; color: #64748b; font-family: monospace; padding: 2rem; } /* ===== HERO DETAILS STRIP ===== */ .hero-details { background: #fff; border-top: 2px solid #334155; padding: 1.5rem 2rem; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; } .detail-group { min-width: 120px; text-align: center; } .detail-label { font-size: 0.75rem; text-transform: uppercase; color: #64748b; font-weight: bold; margin-bottom: 0.25rem; } .detail-value { font-size: 1rem; font-weight: bold; color: #1e293b; } .detail-value.highlight { color: #059669; } .unit { font-size: 0.8rem; color: #64748b; margin-left: 0.1rem; } /* ===== TIER 1 DATA SECTION ===== */ .tier1 { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 2rem; margin-top: 2rem; } .tier1 h2 { color: #1f2937; margin-bottom: 1.5rem; font-size: 1.5rem; } .tier1 h3 { color: #374151; margin: 1.5rem 0 0.75rem 0; font-size: 1.1rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; } .tier1 .detail-label { font-weight: bold; color: #4b5563; min-width: 200px; display: inline-block; } .tier1 .detail-value { color: #111827; } .tier1 > div { margin-bottom: 0.5rem; padding: 0.25rem 0; } /* ===== MOBILE RESPONSIVE ===== */ @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: 298px; } .hero-title { font-size: 1.5rem; } .title-section { max-width: 100%; } .hero-top { padding: 1.25rem 1.5rem; } .hero-details { padding: 1rem 1.5rem; gap: 1rem; } .detail-group { min-width: 100px; } .header-badges-row { margin-top: 0.5rem; } .tier1 { padding: 1.5rem; } }