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