Template:GrowingRegionCard/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: | ||
/* Grid helper ( | /* --- Grid helper (used on listing pages) --- */ | ||
.gr-grid { | .gr-grid { | ||
display: grid; | display: grid; | ||
| Line 7: | Line 7: | ||
} | } | ||
/* Card | /* --- Card --- */ | ||
.gr-card { | .gr-card { | ||
display: flex; | display: flex; | ||
| Line 18: | Line 18: | ||
} | } | ||
/* Media */ | /* --- Media --- */ | ||
.gr-media { position: relative; height: | .gr-media { position: relative; height: 190px; 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 { background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px); } | .gr-img--placeholder { | ||
background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px); | |||
} | |||
/* Body */ | /* --- 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; color: #1f2937; } | ||
.gr-title a { text-decoration: none; color: | .gr-title a { text-decoration: none; color: inherit; } | ||
.gr-title a:hover { text-decoration: underline; } | .gr-title a:hover { text-decoration: underline; } | ||
/* Meta line */ | /* --- 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; } | ||
.gr-meta__gp, .gr-meta__basin { white-space: nowrap; } | |||
/* Hook */ | /* --- Hook --- */ | ||
.gr-hook { font-size: .9rem; color: #374151; } | .gr-hook { font-size: .9rem; color: #374151; } | ||
/* Pills */ | /* --- Pills --- */ | ||
.pill { | .pill { | ||
display: inline-block; | display: inline-block; | ||
| Line 47: | Line 50: | ||
background: #fff; | background: #fff; | ||
margin-right: 6px; | margin-right: 6px; | ||
margin-top: 2px; | |||
} | } | ||
.pill--status { | .pill--status { | ||
| Line 54: | Line 58: | ||
} | } | ||
/* | /* --- Optional: continent & country nav used on the landing page --- */ | ||
.continent-nav, .country-nav { | |||
display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; | |||
margin: 8px 0 16px; | |||
.country-nav{ | |||
display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 16px | |||
} | } | ||
.country-nav a{ | .continent-nav a, .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 | .continent-nav a:hover, .country-nav a:hover { background: #f9fafb; } | ||
.continent-section { margin: 20px 0 30px; } | |||
.continent-title { margin: 0 0 8px; font-size: 1.5rem; color: #1f2937; } | |||
.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; } | ||
. | |||
/* | /* --- Responsive tweak --- */ | ||
@media (min-width: 1100px) { .gr-media { height: 210px; } } | |||
. | |||
Revision as of 18:26, 28 August 2025
/* --- Grid helper (used on listing pages) --- */
.gr-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
align-items: stretch;
}
/* --- Card --- */
.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: 190px; 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; color: #1f2937; }
.gr-title a { text-decoration: none; color: inherit; }
.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; }
.gr-meta__gp, .gr-meta__basin { white-space: nowrap; }
/* --- 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;
margin-top: 2px;
}
.pill--status {
border-color: #d1fae5;
background: #ecfdf5;
color: #065f46;
}
/* --- Optional: continent & country nav used on the landing page --- */
.continent-nav, .country-nav {
display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
margin: 8px 0 16px;
}
.continent-nav a, .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;
}
.continent-nav a:hover, .country-nav a:hover { background: #f9fafb; }
.continent-section { margin: 20px 0 30px; }
.continent-title { margin: 0 0 8px; font-size: 1.5rem; color: #1f2937; }
.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; }
/* --- Responsive tweak --- */
@media (min-width: 1100px) { .gr-media { height: 210px; } }