Toggle menu
17
24
14
1.7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Accession/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
/* Template:Accession/styles.css - Complete Fixed Version */
/* Simplified Hero Header - MediaWiki Compatible */
 
.hero-header {
.accession-simple {
   background: white;
   max-width: 1200px;
   border-radius: 12px;
   margin: 0 auto;
   overflow: hidden;
   padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
  margin-bottom: 2rem;
 
/* Tightened Header Design */
.simple-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
   border: 1px solid #e2e8f0;
   border: 1px solid #e2e8f0;
  border-left: 4px solid #2c5530;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
}


/* Main title row */
/* Top section */
.header-main {
.hero-top {
   display: flex;
   background: #0f172a;
   justify-content: space-between;
   color: white;
   align-items: flex-start;
   padding: 1.5rem 2rem;
  margin-bottom: 1rem;
   position: relative;
  flex-wrap: wrap;
   gap: 1rem;
}
}


.header-title-group {
.hero-title {
  flex: 1;
   font-size: 2rem;
  min-width: 300px;
   font-weight: bold;
}
   margin: 0 0 0.5rem 0;
 
.simple-title {
   font-size: 1.75rem;
   font-weight: 600;
   margin: 0 0 0.25rem 0;
  color: #1e293b;
   line-height: 1.2;
   line-height: 1.2;
}
}


.accession-id {
.hero-subtitle {
   font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
   font-family: monospace;
   font-size: 0.875rem;
   font-size: 0.875rem;
   color: #64748b;
   color: #94a3b8;
   background: white;
   background: rgba(255, 255, 255, 0.15);
   padding: 0.25rem 0.75rem;
   padding: 0.25rem 0.75rem;
   border-radius: 4px;
   border-radius: 4px;
  border: 1px solid #e2e8f0;
   display: inline-block;
   display: inline-block;
}
}


/* Status badges */
.hero-badges {
.header-badges {
   position: absolute;
   display: flex;
   top: 1.5rem;
   flex-direction: column;
   right: 2rem;
  gap: 0.5rem;
   align-items: flex-end;
}
}


.status-badge {
.hero-badge {
   padding: 0.25rem 0.75rem;
   padding: 0.375rem 1rem;
   border-radius: 20px;
   border-radius: 20px;
   font-size: 0.75rem;
   font-size: 0.75rem;
   font-weight: 500;
   font-weight: bold;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-left: 0.5rem;
  display: inline-block;
}
}


.status-active {
.badge-active {
   background: #dcfce7;
   background: #22c55e;
   color: #166534;
   color: white;
  border: 1px solid #bbf7d0;
}
}


.status-tier1 {
.badge-tier1 {
   background: #dbeafe;
   background: #3b82f6;
   color: #1e40af;
   color: white;
  border: 1px solid #93c5fd;
}
}


.status-high-priority {
.badge-priority {
   background: #fef3c7;
   background: #f59e0b;
   color: #92400e;
   color: white;
  border: 1px solid #fbbf24;
}
}


/* Geographic breadcrumb */
/* Split section */
.geo-breadcrumb {
.hero-split {
   background: white;
   display: table;
   border: 1px solid #e2e8f0;
   width: 100%;
   border-radius: 6px;
   min-height: 400px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
}


.geo-breadcrumb h4 {
.hero-image, .hero-map {
  margin: 0 0 0.5rem 0;
   display: table-cell;
  font-size: 0.875rem;
   width: 50%;
   color: #64748b;
   vertical-align: top;
  text-transform: uppercase;
   letter-spacing: 0.5px;
   font-weight: 500;
}
}


.breadcrumb-trail {
.hero-image {
   font-size: 0.9rem;
   position: relative;
   color: #374151;
   background: #f1f5f9;
  line-height: 1.4;
}
}


.breadcrumb-trail .separator {
.hero-image img {
   color: #9ca3af;
   width: 100%;
   margin: 0 0.5rem;
   height: 400px;
  object-fit: cover;
}
}


.breadcrumb-trail .level {
.image-overlay {
   color: #2c5530;
  position: absolute;
   font-weight: 500;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
   color: white;
   padding: 1.5rem;
}
}


/* Key details row */
.image-caption {
.header-details {
   font-size: 0.875rem;
   display: grid;
   margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
   padding: 1rem;
}
}


.detail-item {
.hero-map {
   text-align: center;
   background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  position: relative;
}
}


.detail-label {
.map-container {
   font-size: 0.75rem;
   height: 400px;
  background: #e2e8f0;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
   color: #64748b;
   color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.detail-value {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 600;
}
}


/* Mobile responsive */
.map-overlay {
@media (max-width: 768px) {
   position: absolute;
  .header-main {
   top: 1rem;
    flex-direction: column;
   left: 1rem;
    align-items: stretch;
  }
 
  .header-badges {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
    
  .simple-title {
    font-size: 1.5rem;
   }
 
  .header-details {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
   }
}
 
@media (max-width: 480px) {
  .simple-header {
    padding: 1rem;
  }
 
  .header-details {
    grid-template-columns: 1fr 1fr;
  }
 
  .breadcrumb-trail {
    font-size: 0.8rem;
  }
}
 
/* Basic Grid Layout */
.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
 
/* Basic Cards */
.simple-card {
   background: white;
   background: white;
  border: 1px solid #e2e8f0;
   border-radius: 8px;
   border-radius: 8px;
   padding: 1.5rem;
   padding: 1rem;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 180px;
}
}


.simple-card h3 {
.map-overlay h4 {
   margin: 0 0 1rem 0;
   margin: 0 0 0.5rem 0;
   color: #2c5530;
   font-size: 0.75rem;
   font-size: 1.1rem;
   text-transform: uppercase;
   border-bottom: 1px solid #e2e8f0;
   color: #64748b;
   padding-bottom: 0.5rem;
   font-weight: bold;
}
}


.simple-card p {
.location-primary {
   margin: 0.5rem 0;
   font-weight: bold;
   font-size: 0.9rem;
  color: #1e293b;
   line-height: 1.4;
   margin-bottom: 0.25rem;
   font-size: 0.8rem;
}
}


.simple-card p strong {
.location-secondary {
   color: #475569;
   color: #64748b;
   display: inline-block;
   font-size: 0.75rem;
  min-width: 80px;
}
}


/* Botanical Description Section */
.coordinates {
.botanical-section {
  position: absolute;
   background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
  bottom: 1rem;
   border-radius: 12px;
  right: 1rem;
   padding: 2rem;
   background: rgba(0, 0, 0, 0.8);
   margin-bottom: 2rem;
   color: white;
   border: 1px solid #bbf7d0;
   padding: 0.5rem 0.75rem;
  border-radius: 4px;
   font-family: monospace;
   font-size: 0.75rem;
}
}


.botanical-grid {
/* Details section */
   display: grid;
.hero-details {
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   background: #f8fafc;
   gap: 1.25rem;
   border-top: 1px solid #e2e8f0;
   padding: 1.5rem 2rem;
  text-align: center;
}
}


.botanical-card {
.detail-group {
   background: white;
   display: inline-block;
  border: 1px solid #d1fae5;
   margin: 0 1.5rem 1rem 0;
  border-radius: 8px;
   min-width: 120px;
   padding: 1.25rem;
   vertical-align: top;
   box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
   transition: transform 0.2s ease;
}
}


.botanical-card:hover {
.detail-label {
   transform: translateY(-2px);
  font-size: 0.75rem;
   box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
   text-transform: uppercase;
  color: #64748b;
  font-weight: bold;
   margin-bottom: 0.25rem;
}
}


.botanical-card h4 {
.detail-value {
  margin: 0 0 1rem 0;
  color: #15803d;
   font-size: 1rem;
   font-size: 1rem;
   font-weight: 600;
   font-weight: bold;
   border-bottom: 1px solid #d1fae5;
   color: #1e293b;
  padding-bottom: 0.5rem;
}
}


.botanical-card p {
.detail-value.highlight {
   margin: 0.4rem 0;
   color: #059669;
  font-size: 0.85rem;
  line-height: 1.4;
}
}


.botanical-card p strong {
.geographic-path {
   color: #374151;
   width: 100%;
   display: inline-block;
   padding-top: 1rem;
   min-width: 90px;
   border-top: 1px solid #e2e8f0;
   font-weight: 500;
   margin-top: 1rem;
}
}


/* Environmental Context Section */
.geographic-path h4 {
.environmental-section {
   margin: 0 0 0.5rem 0;
   background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
   font-size: 0.75rem;
   border-radius: 12px;
   text-transform: uppercase;
   padding: 2rem;
   color: #64748b;
   margin-bottom: 2rem;
   font-weight: bold;
   border: 1px solid #93c5fd;
}
}


.environmental-grid {
.breadcrumb {
  display: grid;
   font-size: 0.875rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
 
.environmental-card {
  background: white;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  transition: transform 0.2s ease;
}
 
.environmental-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
 
.environmental-card h4 {
  margin: 0 0 1rem 0;
  color: #1e40af;
   font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #bfdbfe;
  padding-bottom: 0.5rem;
}
 
.environmental-card p {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
}
 
.environmental-card p strong {
   color: #374151;
   color: #374151;
  display: inline-block;
  min-width: 90px;
  font-weight: 500;
}
}


/* Coordinates */
.breadcrumb .separator {
.simple-coords {
   color: #9ca3af;
   background: #f1f5f9;
   margin: 0 0.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}
 
.simple-coords h3 {
   margin: 0 0 0.5rem 0;
  color: #2c5530;
}
}


.simple-coords p {
.breadcrumb .level {
   font-family: monospace;
   color: #059669;
  font-size: 1.1rem;
   font-weight: bold;
   font-weight: bold;
  color: #1e293b;
  margin: 0;
}
}


/* Mobile Responsive */
/* Mobile */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .simple-grid {
   .hero-split {
     grid-template-columns: 1fr;
     display: block;
  }
 
  .botanical-grid, .environmental-grid {
    grid-template-columns: 1fr;
   }
   }
    
    
   .simple-header {
   .hero-image, .hero-map {
     padding: 1rem;
     display: block;
    width: 100%;
   }
   }
    
    
   .simple-title {
   .hero-map {
     font-size: 1.5rem;
     border-left: none;
    border-top: 1px solid #e2e8f0;
   }
   }
    
    
   .botanical-section, .environmental-section {
   .hero-badges {
     padding: 1.5rem;
     position: static;
  }
    margin-top: 1rem;
}
 
@media (max-width: 480px) {
  .botanical-card, .environmental-card {
    padding: 1rem;
   }
   }
    
    
   .botanical-card p strong, .environmental-card p strong {
   .hero-badge {
     min-width: 70px;
     margin: 0 0.5rem 0.5rem 0;
   }
   }
}
}

Revision as of 04:54, 17 September 2025

/* Simplified Hero Header - MediaWiki Compatible */
.hero-header {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

/* Top section */
.hero-top {
  background: #0f172a;
  color: white;
  padding: 1.5rem 2rem;
  position: relative;
}

.hero-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: monospace;
  font-size: 0.875rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
}

.hero-badges {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.hero-badge {
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 0.5rem;
  display: inline-block;
}

.badge-active {
  background: #22c55e;
  color: white;
}

.badge-tier1 {
  background: #3b82f6;
  color: white;
}

.badge-priority {
  background: #f59e0b;
  color: white;
}

/* Split section */
.hero-split {
  display: table;
  width: 100%;
  min-height: 400px;
}

.hero-image, .hero-map {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

.hero-image {
  position: relative;
  background: #f1f5f9;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1.5rem;
}

.image-caption {
  font-size: 0.875rem;
  margin: 0;
}

.hero-map {
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  position: relative;
}

.map-container {
  height: 400px;
  background: #e2e8f0;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  color: #64748b;
}

.map-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 180px;
}

.map-overlay h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: bold;
}

.location-primary {
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.location-secondary {
  color: #64748b;
  font-size: 0.75rem;
}

.coordinates {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
}

/* Details section */
.hero-details {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  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: 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;
}

.geographic-path {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.geographic-path h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: bold;
}

.breadcrumb {
  font-size: 0.875rem;
  color: #374151;
}

.breadcrumb .separator {
  color: #9ca3af;
  margin: 0 0.5rem;
}

.breadcrumb .level {
  color: #059669;
  font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-split {
    display: block;
  }
  
  .hero-image, .hero-map {
    display: block;
    width: 100%;
  }
  
  .hero-map {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
  
  .hero-badges {
    position: static;
    margin-top: 1rem;
  }
  
  .hero-badge {
    margin: 0 0.5rem 0.5rem 0;
  }
}