Template:GrowingRegionCard/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary Tag: Reverted |
Eloise Zomia (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
/* | /* Grid helper (use .gr-grid on landing page sections) */ | ||
.gr-grid { | .gr-grid { | ||
display: grid; | display: grid; | ||
Line 7: | Line 7: | ||
} | } | ||
/* | /* Card shell */ | ||
.gr-card { | .gr-card { | ||
display: flex; | display: flex; | ||
Line 18: | Line 18: | ||
} | } | ||
/* | /* Media */ | ||
.gr-media { position: relative; height: | .gr-media { position: relative; height: 180px; background: #f3f4f6; overflow: hidden; } | ||
.gr-img, .gr-img a { display: block; width: 100%; height: 100%; } | .gr-img, .gr-img a { display: block; width: 100%; height: 100%; } | ||
.gr-img img { width: 100%; height: 100%; object-fit: cover; } | .gr-img img { width: 100%; height: 100%; object-fit: cover; } | ||
.gr-img--placeholder { | .gr-img--placeholder { background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px); } | ||
} | |||
/* | /* Body */ | ||
.gr-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; } | .gr-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; } | ||
.gr-title { margin: 0; font-size: 1.05rem; line-height: 1.2 | .gr-title { margin: 0; font-size: 1.05rem; line-height: 1.2; } | ||
.gr-title a { text-decoration: none; color: | .gr-title a { text-decoration: none; color: #1f2937; } | ||
.gr-title a:hover { text-decoration: underline; } | .gr-title a:hover { text-decoration: underline; } | ||
/* | /* Meta line */ | ||
.gr-meta { font-size: .85rem; color: #6b7280; display: flex; align-items: center; gap: 6px; } | .gr-meta { font-size: .85rem; color: #6b7280; display: flex; align-items: center; gap: 6px; } | ||
.gr-dot { opacity: .6; } | .gr-dot { opacity: .6; } | ||
/* | /* Hook */ | ||
.gr-hook { font-size: .9rem; color: #374151; } | .gr-hook { font-size: .9rem; color: #374151; } | ||
/* | /* Pills */ | ||
.pill { | .pill { | ||
display: inline-block; | display: inline-block; | ||
Line 50: | Line 47: | ||
background: #fff; | background: #fff; | ||
margin-right: 6px; | margin-right: 6px; | ||
} | } | ||
.pill--status { | .pill--status { | ||
Line 58: | Line 54: | ||
} | } | ||
/* --- | /* Minor responsive tweak */ | ||
@media (min-width: 1100px) { .gr-media { height: 200px; } } | |||
display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; | |||
/* --- Growing Regions landing page (browse by country) --- */ | |||
.country-nav{ | |||
display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 16px | |||
} | } | ||
.country-nav a{ | |||
display: inline-block; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 999px; | display:inline-block;padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px; | ||
text-decoration: none; color: #1f2937; background: #fff; font-weight: 600; line-height: 1.1 | text-decoration:none;color:#1f2937;background:#fff;font-weight:600;line-height:1.1 | ||
} | } | ||
. | .country-nav a:hover{background:#f9fafb} | ||
.country-section{margin:18px 0 28px;border-top:1px solid #f0f2f4;padding-top:14px} | |||
.country-title{margin:0 0 8px;font-size:1.25rem;color:#1f2937} | |||
/* Append this at the bottom of Template:GrowingRegionCard/styles.css */ | |||
. | |||
.country-section { margin: 18px 0 28px; border-top: 1px solid #f0f2f4; padding-top: 14px | /* ---- Continent layer (landing page) ---- */ | ||
.country-title { margin: 0 0 8px; font-size: 1.25rem; color: #1f2937 | .continent-nav{ | ||
display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 16px | |||
} | |||
.continent-nav a{ | |||
display:inline-block;padding:7px 12px;border:1px solid #e5e7eb;border-radius:999px; | |||
text-decoration:none;color:#1f2937;background:#fff;font-weight:700;line-height:1.1 | |||
} | |||
.continent-nav a:hover{background:#f9fafb} | |||
.continent-section{margin:20px 0 30px} | |||
.continent-title{margin:0 0 8px;font-size:1.5rem;color:#1f2937} | |||
/* Country nav (if not already present) */ | |||
.country-nav{ | |||
display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 16px | |||
} | |||
.country-nav a{ | |||
display:inline-block;padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px; | |||
text-decoration:none;color:#1f2937;background:#fff;font-weight:600;line-height:1.1 | |||
} | |||
.country-nav a:hover{background:#f9fafb} | |||
.country-section{margin:18px 0 28px;border-top:1px solid #f0f2f4;padding-top:14px} | |||
.country-title{margin:0 0 8px;font-size:1.25rem;color:#1f2937} | |||
/* | /* Optional tints so the three pills read as distinct */ | ||
.pill--areas { border-color:#e5e7eb; background:#f9fafb; color:#374151; } | |||
.pill--accessions { border-color:#e5e7eb; background:#fff; color:#374151; } |
Latest revision as of 03:49, 29 August 2025
/* Grid helper (use .gr-grid on landing page sections) */ .gr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; } /* Card shell */ .gr-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); } /* Media */ .gr-media { position: relative; height: 180px; background: #f3f4f6; overflow: hidden; } .gr-img, .gr-img a { display: block; width: 100%; height: 100%; } .gr-img img { width: 100%; height: 100%; object-fit: cover; } .gr-img--placeholder { background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px); } /* Body */ .gr-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; } .gr-title { margin: 0; font-size: 1.05rem; line-height: 1.2; } .gr-title a { text-decoration: none; color: #1f2937; } .gr-title a:hover { text-decoration: underline; } /* Meta line */ .gr-meta { font-size: .85rem; color: #6b7280; display: flex; align-items: center; gap: 6px; } .gr-dot { opacity: .6; } /* Hook */ .gr-hook { font-size: .9rem; color: #374151; } /* Pills */ .pill { display: inline-block; padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 999px; font-size: .8rem; color: #374151; background: #fff; margin-right: 6px; } .pill--status { border-color: #d1fae5; background: #ecfdf5; color: #065f46; } /* Minor responsive tweak */ @media (min-width: 1100px) { .gr-media { height: 200px; } } /* --- Growing Regions landing page (browse by country) --- */ .country-nav{ display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 16px } .country-nav a{ display:inline-block;padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px; text-decoration:none;color:#1f2937;background:#fff;font-weight:600;line-height:1.1 } .country-nav a:hover{background:#f9fafb} .country-section{margin:18px 0 28px;border-top:1px solid #f0f2f4;padding-top:14px} .country-title{margin:0 0 8px;font-size:1.25rem;color:#1f2937} /* Append this at the bottom of Template:GrowingRegionCard/styles.css */ /* ---- Continent layer (landing page) ---- */ .continent-nav{ display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 16px } .continent-nav a{ display:inline-block;padding:7px 12px;border:1px solid #e5e7eb;border-radius:999px; text-decoration:none;color:#1f2937;background:#fff;font-weight:700;line-height:1.1 } .continent-nav a:hover{background:#f9fafb} .continent-section{margin:20px 0 30px} .continent-title{margin:0 0 8px;font-size:1.5rem;color:#1f2937} /* Country nav (if not already present) */ .country-nav{ display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 16px } .country-nav a{ display:inline-block;padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px; text-decoration:none;color:#1f2937;background:#fff;font-weight:600;line-height:1.1 } .country-nav a:hover{background:#f9fafb} .country-section{margin:18px 0 28px;border-top:1px solid #f0f2f4;padding-top:14px} .country-title{margin:0 0 8px;font-size:1.25rem;color:#1f2937} /* Optional tints so the three pills read as distinct */ .pill--areas { border-color:#e5e7eb; background:#f9fafb; color:#374151; } .pill--accessions { border-color:#e5e7eb; background:#fff; color:#374151; }