Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:GrowingRegionCard/styles.css

Template page
Revision as of 08:20, 27 August 2025 by Eloise Zomia (talk | contribs) (Created page with "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;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* 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; } }