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: | ||
/* Template:Accession/styles.css - | /* Template:Accession/styles.css - With Collapsible Functionality */ | ||
.accession-simple { | .accession-simple { | ||
| Line 69: | Line 69: | ||
} | } | ||
/* | /* Collapsible Section */ | ||
. | .collapsible-section { | ||
margin-bottom: 2rem; | |||
border: 1px solid #e2e8f0; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); | |||
} | |||
.collapsible-header { | |||
background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%); | background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%); | ||
border- | border-bottom: 1px solid #bbf7d0; | ||
padding: 2rem; | } | ||
margin- | |||
.collapsible-toggle { | |||
display: none; | |||
} | |||
.collapsible-title { | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
padding: 1.5rem 2rem; | |||
cursor: pointer; | |||
user-select: none; | |||
transition: background-color 0.3s ease; | |||
} | |||
.collapsible-title:hover { | |||
background: rgba(34, 197, 94, 0.1); | |||
} | |||
.collapsible-title h2 { | |||
margin: 0; | |||
color: #166534; | |||
font-size: 1.3rem; | |||
font-weight: 600; | |||
} | } | ||
. | .toggle-indicator { | ||
font-size: 1.2rem; | |||
color: #166534; | color: #166534; | ||
font- | transition: transform 0.3s ease; | ||
font-weight: bold; | |||
} | |||
/* Collapsible Content */ | |||
.collapsible-content { | |||
max-height: 0; | |||
overflow: hidden; | |||
transition: max-height 0.3s ease; | |||
background: white; | |||
} | |||
.collapsible-toggle:checked + .collapsible-title .toggle-indicator { | |||
transform: rotate(180deg); | |||
} | |||
.collapsible-toggle:checked ~ .collapsible-content { | |||
max-height: 2000px; | |||
transition: max-height 0.5s ease; | |||
} | |||
/* Botanical Description Section */ | |||
.botanical-section { | |||
padding: 2rem; | |||
background: white; | |||
} | } | ||
| Line 96: | Line 147: | ||
/* Botanical Cards */ | /* Botanical Cards */ | ||
.botanical-card { | .botanical-card { | ||
background: | background: #fafafa; | ||
border: 1px solid #d1fae5; | border: 1px solid #d1fae5; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 1.25rem; | padding: 1.25rem; | ||
box-shadow: 0 | box-shadow: 0 1px 4px rgba(34, 197, 94, 0.1); | ||
transition: transform 0.2s ease; | transition: transform 0.2s ease; | ||
} | } | ||
| Line 168: | Line 219: | ||
.simple-title { | .simple-title { | ||
font-size: 1.5rem; | font-size: 1.5rem; | ||
} | |||
.collapsible-title { | |||
padding: 1rem 1.5rem; | |||
} | |||
.collapsible-title h2 { | |||
font-size: 1.2rem; | |||
} | } | ||
| Line 182: | Line 241: | ||
.botanical-card p strong { | .botanical-card p strong { | ||
min-width: 70px; | min-width: 70px; | ||
} | |||
.collapsible-title { | |||
padding: 1rem; | |||
} | } | ||
} | } | ||
Revision as of 10:59, 16 September 2025
/* Template:Accession/styles.css - With Collapsible Functionality */
.accession-simple {
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}
/* Header */
.simple-header {
background: #f8fafc;
padding: 2rem;
border-radius: 8px;
margin-bottom: 2rem;
border-left: 4px solid #2c5530;
}
.simple-title {
font-size: 2rem;
margin: 0 0 0.5rem 0;
color: #1e293b;
}
.simple-subtitle {
font-family: monospace;
font-size: 1rem;
color: #64748b;
background: white;
padding: 0.5rem 1rem;
border-radius: 4px;
display: inline-block;
}
/* 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;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.simple-card h3 {
margin: 0 0 1rem 0;
color: #2c5530;
font-size: 1.1rem;
border-bottom: 1px solid #e2e8f0;
padding-bottom: 0.5rem;
}
.simple-card p {
margin: 0.5rem 0;
font-size: 0.9rem;
line-height: 1.4;
}
.simple-card p strong {
color: #475569;
display: inline-block;
min-width: 80px;
}
/* Collapsible Section */
.collapsible-section {
margin-bottom: 2rem;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.collapsible-header {
background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
border-bottom: 1px solid #bbf7d0;
}
.collapsible-toggle {
display: none;
}
.collapsible-title {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 2rem;
cursor: pointer;
user-select: none;
transition: background-color 0.3s ease;
}
.collapsible-title:hover {
background: rgba(34, 197, 94, 0.1);
}
.collapsible-title h2 {
margin: 0;
color: #166534;
font-size: 1.3rem;
font-weight: 600;
}
.toggle-indicator {
font-size: 1.2rem;
color: #166534;
transition: transform 0.3s ease;
font-weight: bold;
}
/* Collapsible Content */
.collapsible-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
background: white;
}
.collapsible-toggle:checked + .collapsible-title .toggle-indicator {
transform: rotate(180deg);
}
.collapsible-toggle:checked ~ .collapsible-content {
max-height: 2000px;
transition: max-height 0.5s ease;
}
/* Botanical Description Section */
.botanical-section {
padding: 2rem;
background: white;
}
/* Botanical Grid */
.botanical-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.25rem;
}
/* Botanical Cards */
.botanical-card {
background: #fafafa;
border: 1px solid #d1fae5;
border-radius: 8px;
padding: 1.25rem;
box-shadow: 0 1px 4px rgba(34, 197, 94, 0.1);
transition: transform 0.2s ease;
}
.botanical-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}
.botanical-card h4 {
margin: 0 0 1rem 0;
color: #15803d;
font-size: 1rem;
font-weight: 600;
border-bottom: 1px solid #d1fae5;
padding-bottom: 0.5rem;
}
.botanical-card p {
margin: 0.4rem 0;
font-size: 0.85rem;
line-height: 1.4;
}
.botanical-card p strong {
color: #374151;
display: inline-block;
min-width: 90px;
font-weight: 500;
}
/* Coordinates */
.simple-coords {
background: #f1f5f9;
padding: 1.5rem;
border-radius: 8px;
text-align: center;
}
.simple-coords h3 {
margin: 0 0 0.5rem 0;
color: #2c5530;
}
.simple-coords p {
font-family: monospace;
font-size: 1.1rem;
font-weight: bold;
color: #1e293b;
margin: 0;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.simple-grid {
grid-template-columns: 1fr;
}
.botanical-grid {
grid-template-columns: 1fr;
}
.simple-header {
padding: 1rem;
}
.simple-title {
font-size: 1.5rem;
}
.collapsible-title {
padding: 1rem 1.5rem;
}
.collapsible-title h2 {
font-size: 1.2rem;
}
.botanical-section {
padding: 1.5rem;
}
}
@media (max-width: 480px) {
.botanical-card {
padding: 1rem;
}
.botanical-card p strong {
min-width: 70px;
}
.collapsible-title {
padding: 1rem;
}
}