More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
. | .main-grid { | ||
display: grid; | display: grid; | ||
grid: auto-flow dense/repeat( auto-fit, minmax( 10.2rem, 1fr ) ); | grid: auto-flow dense/repeat( auto-fit, minmax( 10.2rem, 1fr ) ); | ||
Line 15: | Line 15: | ||
} | } | ||
. | .card__label { | ||
color: var( --color-base--subtle ); | |||
font-size: 16px; | |||
} | } | ||
. | .card__text { | ||
margin-top: 15px; | |||
} | } | ||
. | .card__image img { | ||
width: 100%; | width: 100%; | ||
height: auto; | |||
border-radius: 6px; | |||
border-radius: | |||
} | } | ||
. | .card__video video { | ||
width: 100% !important; | |||
width: 100%; | height: auto !important; | ||
} | } | ||
. | .card__header { | ||
font-family: 'Saira Extra Condensed','Nunito','Saira',system-ui,-apple-system,sans-serif; | |||
text-transform: uppercase; | |||
font-weight: bold; | |||
color: var( --color-base-emphasized ); | |||
font-size: 30px; | |||
line-height: 1; | |||
margin-bottom: 10px; | |||
} | } | ||
.card--col2 { | .card--col2 { | ||
grid-column: span 2; | grid-column: span 2; | ||
Line 67: | Line 51: | ||
.card--col3 { | .card--col3 { | ||
grid-column: span 3; | grid-column: span 3; | ||
} | |||
.card--col6 { | |||
grid-column: 1 / -1; | |||
} | } | ||
Line 95: | Line 83: | ||
} | } | ||
.card-- | |||
text- | /* | ||
NAVIGATION CARDS | |||
*/ | |||
.category-card { | |||
padding: 0; | |||
border: 0; | |||
transition: all 0.3s ease; | |||
display: flex; | |||
flex-direction: column; | |||
} | |||
.category-card:hover { | |||
transform: scale(1.04); | |||
} | |||
.category-card__label { | |||
width: 100%; | |||
color: #ffffff; | |||
background-color: #d21f3c; | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
font-family: 'Saira Extra Condensed','Nunito','Saira',system-ui,-apple-system,sans-serif; | |||
font-weight: bold; | |||
font-size: 26px; | |||
font-style: italic; | |||
border-radius: 0 0 6px 6px; | |||
text-transform: uppercase; | |||
} | |||
.category-card__label a { | |||
display: flex; | |||
width: 100%; | |||
justify-content: center; | |||
text-decoration: none; | |||
color: #fff; | |||
} | |||
.category-card__background { | |||
background: #f1f2f4; | |||
border-radius: 6px 6px 0 0; | |||
} | } | ||
. | .category-card__background img { | ||
width: 100%; | |||
height: auto; | |||
padding: 20%; | |||
object-position: center; | |||
} | } |
Revision as of 04:00, 8 November 2023
.main-grid {
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 10.2rem, 1fr ) );
grid-auto-rows: minmax( 3rem, auto );
grid-gap: var( --space-xs );
margin-top: 15px;
}
.card {
position: relative;
/*border: 1px solid var( --border-color-base );*/
border-radius: 6px;
background: var( --card-background );
padding: var(--space-lg);
}
.card__label {
color: var( --color-base--subtle );
font-size: 16px;
}
.card__text {
margin-top: 15px;
}
.card__image img {
width: 100%;
height: auto;
border-radius: 6px;
}
.card__video video {
width: 100% !important;
height: auto !important;
}
.card__header {
font-family: 'Saira Extra Condensed','Nunito','Saira',system-ui,-apple-system,sans-serif;
text-transform: uppercase;
font-weight: bold;
color: var( --color-base-emphasized );
font-size: 30px;
line-height: 1;
margin-bottom: 10px;
}
.card--col2 {
grid-column: span 2;
}
.card--col3 {
grid-column: span 3;
}
.card--col6 {
grid-column: 1 / -1;
}
.card--row2 {
grid-row: span 2;
}
.card--row6 {
grid-row: span 6;
}
.card--row4 {
grid-row: span 4;
}
.card--row3 {
grid-row: span 3;
}
.card--row8 {
grid-row: span 8/auto;
}
.card--text {
margin-top: 0px;
padding: 15px;
}
/*
NAVIGATION CARDS
*/
.category-card {
padding: 0;
border: 0;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}
.category-card:hover {
transform: scale(1.04);
}
.category-card__label {
width: 100%;
color: #ffffff;
background-color: #d21f3c;
display:flex;
align-items:center;
justify-content:center;
font-family: 'Saira Extra Condensed','Nunito','Saira',system-ui,-apple-system,sans-serif;
font-weight: bold;
font-size: 26px;
font-style: italic;
border-radius: 0 0 6px 6px;
text-transform: uppercase;
}
.category-card__label a {
display: flex;
width: 100%;
justify-content: center;
text-decoration: none;
color: #fff;
}
.category-card__background {
background: #f1f2f4;
border-radius: 6px 6px 0 0;
}
.category-card__background img {
width: 100%;
height: auto;
padding: 20%;
object-position: center;
}