Template:GrowingRegionCard/styles.css
Template page
More actions
/* --- 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; } }