Template:Home/Cards - styles/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 |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ============================================ */ | /* ============================================ */ | ||
/* HOME GRID LAYOUT | /* HOME GRID LAYOUT */ | ||
/* ============================================ */ | /* ============================================ */ | ||
.home-grid { | .home-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(6 | grid-template-columns: repeat(6, 1fr); | ||
gap: | gap: 1rem; | ||
margin-top: 2.4rem; | margin-top: 2.4rem; | ||
width: 100%; | width: 100%; | ||
align-items: stretch; | align-items: stretch; | ||
} | } | ||
/* ============================================ */ | /* ============================================ */ | ||
/* BASE HOME CARD STYLES | /* BASE HOME CARD STYLES */ | ||
/* ============================================ */ | /* ============================================ */ | ||
.home-card { | .home-card { | ||
position: relative; | position: relative; | ||
padding: 20px; | |||
background: #ffffff; | background: #ffffff; | ||
border-radius: 8px; | |||
border-radius: | box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575); | ||
box-shadow: 0 | |||
font-size: 0.875rem; | font-size: 0.875rem; | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | |||
border: 1px solid #dee2e6; | |||
min-height: 120px; | min-height: 120px; | ||
height: 100%; | |||
display: flex; | |||
flex-direction: column; | |||
} | |||
.home-card--col2 { | |||
grid-column: span 2; | |||
} | |||
.home-card--col3 { | |||
grid-column: span 3; | |||
} | } | ||
.home-card:hover { | .home-card:hover { | ||
transform: translateY(- | transform: translateY(-2px); | ||
box-shadow: 0 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(0, 0, 0, 0.115); | ||
} | } | ||
/* | /* ============================================ */ | ||
/* CARD SUB-ELEMENTS */ | |||
/* ============================================ */ | |||
.home-card__label { | .home-card__label { | ||
color: # | color: #6c757d; | ||
font-size: 0. | font-size: 0.8125rem; | ||
letter-spacing: 0. | letter-spacing: 0.75px; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
font-weight: | font-weight: 500; | ||
margin-bottom: 0. | margin-bottom: 0.5rem; | ||
} | } | ||
.home-card__header { | .home-card__header { | ||
margin: 0 | margin: 0 0 1rem 0; | ||
font-size: 1. | font-size: 1.1rem; | ||
color: # | color: #2d5016; | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
.home-card__header a { | .home-card__header a { | ||
color: inherit; | color: inherit; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.home-card__header a:hover { | .home-card__header a:hover { | ||
color: # | color: #3d6b1f; | ||
} | } | ||
.home-card__body { | .home-card__body { | ||
color: # | color: #495057; | ||
line-height: 1. | line-height: 1.6; | ||
margin-bottom: | margin-bottom: 1rem; | ||
flex-grow: 1; | |||
} | |||
/* Removed all the forced color overrides - let MediaWiki handle it */ | |||
.home-card__body a:hover { | |||
text-decoration: underline; | |||
} | } | ||
.home-card__links { | .home-card__links { | ||
font-size: 0. | font-size: 0.8125rem; | ||
color: # | color: #6c757d; | ||
border-top: 1px solid # | border-top: 1px solid #dee2e6; | ||
padding-top: 0. | padding-top: 0.75rem; | ||
margin-top: auto; | margin-top: auto; | ||
} | } | ||
.home-card__links a { | .home-card__links a { | ||
color: #2d5016; | color: #2d5016; | ||
| Line 86: | Line 90: | ||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
.home-card__links a:hover { | .home-card__links a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
| Line 92: | Line 95: | ||
/* ============================================ */ | /* ============================================ */ | ||
/* | /* MOBILE RESPONSIVENESS */ | ||
/* ============================================ */ | /* ============================================ */ | ||
@media (max-width: 1024px) { | @media (max-width: 1024px) { | ||
.home-grid { | .home-grid { | ||
grid-template-columns: repeat(4 | grid-template-columns: repeat(4, 1fr); | ||
} | } | ||
.home-card--col2 { | .home-card--col2 { | ||
grid-column: span 2; | grid-column: span 2; | ||
} | } | ||
.home-card--col3 { | |||
grid-column: span 4; | |||
.home-card-- | |||
grid-column: span | |||
} | } | ||
} | } | ||
| Line 288: | Line 115: | ||
.home-grid { | .home-grid { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
gap: 0. | gap: 0.75rem; | ||
} | } | ||
.home-card--col2 { | .home-card--col2, | ||
.home-card--col3 { | |||
grid-column: span 2; | grid-column: span 2; | ||
} | } | ||
} | } | ||
| Line 321: | Line 130: | ||
} | } | ||
.home-card--col2 { | .home-card--col2, | ||
.home-card--col3 { | |||
grid-column: span 1; | grid-column: span 1; | ||
} | } | ||
| Line 327: | Line 137: | ||
.home-card { | .home-card { | ||
padding: 15px; | padding: 15px; | ||
} | } | ||
} | } | ||
Latest revision as of 10:16, 20 November 2025
/* ============================================ */
/* HOME GRID LAYOUT */
/* ============================================ */
.home-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 1rem;
margin-top: 2.4rem;
width: 100%;
align-items: stretch;
}
/* ============================================ */
/* BASE HOME CARD STYLES */
/* ============================================ */
.home-card {
position: relative;
padding: 20px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
font-size: 0.875rem;
transition: transform 0.2s ease, box-shadow 0.2s ease;
border: 1px solid #dee2e6;
min-height: 120px;
height: 100%;
display: flex;
flex-direction: column;
}
.home-card--col2 {
grid-column: span 2;
}
.home-card--col3 {
grid-column: span 3;
}
.home-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(0, 0, 0, 0.115);
}
/* ============================================ */
/* CARD SUB-ELEMENTS */
/* ============================================ */
.home-card__label {
color: #6c757d;
font-size: 0.8125rem;
letter-spacing: 0.75px;
text-transform: uppercase;
font-weight: 500;
margin-bottom: 0.5rem;
}
.home-card__header {
margin: 0 0 1rem 0;
font-size: 1.1rem;
color: #2d5016;
font-weight: 600;
}
.home-card__header a {
color: inherit;
text-decoration: none;
}
.home-card__header a:hover {
color: #3d6b1f;
}
.home-card__body {
color: #495057;
line-height: 1.6;
margin-bottom: 1rem;
flex-grow: 1;
}
/* Removed all the forced color overrides - let MediaWiki handle it */
.home-card__body a:hover {
text-decoration: underline;
}
.home-card__links {
font-size: 0.8125rem;
color: #6c757d;
border-top: 1px solid #dee2e6;
padding-top: 0.75rem;
margin-top: auto;
}
.home-card__links a {
color: #2d5016;
text-decoration: none;
font-weight: 500;
}
.home-card__links a:hover {
text-decoration: underline;
}
/* ============================================ */
/* MOBILE RESPONSIVENESS */
/* ============================================ */
@media (max-width: 1024px) {
.home-grid {
grid-template-columns: repeat(4, 1fr);
}
.home-card--col2 {
grid-column: span 2;
}
.home-card--col3 {
grid-column: span 4;
}
}
@media (max-width: 768px) {
.home-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}
.home-card--col2,
.home-card--col3 {
grid-column: span 2;
}
}
@media (max-width: 480px) {
.home-grid {
grid-template-columns: 1fr;
gap: 0.5rem;
}
.home-card--col2,
.home-card--col3 {
grid-column: span 1;
}
.home-card {
padding: 15px;
}
}