Template:MainPage/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
draft 2 |
No edit summary |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.main-header { |
|||
/* |
|||
margin: 0; |
|||
NAVIGATION CARDS |
|||
} |
|||
*/ |
|||
.fullwidth-banner { |
|||
width: 100% !important; |
|||
max-width: 100% !important; |
|||
} |
|||
.fullwidth-banner img { |
|||
width: 100%; |
|||
height: auto; |
|||
} |
|||
. |
.main-row { |
||
display: grid; |
display: grid; |
||
grid-auto-rows: minmax(3rem,auto); |
|||
gap: 8px; |
|||
gap: 0.5rem; |
|||
margin-bottom: 8px; |
|||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); |
|||
font-size: 15px; |
|||
margin-bottom: 30px; |
|||
color: white; |
|||
} |
} |
||
.main-row--75-25 { |
|||
.navigation-card { |
|||
grid-template-columns: 4fr 2fr; |
|||
border: 1px solid #333; |
|||
} |
|||
.main-row--50-50 { |
|||
grid-template-columns: 1fr 1fr; |
|||
} |
|||
.main-card { |
|||
background: var(--card-background); |
|||
border:1px solid var(--border-color-base); |
|||
border-radius: 8px; |
border-radius: 8px; |
||
overflow: hidden; |
|||
transition: all 0.3s ease; |
|||
background-color: #1e1e1e; |
|||
font-weight:600; |
|||
position: relative; |
position: relative; |
||
display: flex; |
|||
flex-direction: column; |
|||
} |
} |
||
.main-card__background { |
|||
.navigation-card-background { |
|||
position: absolute; |
|||
inset: 0; |
inset: 0; |
||
position: absolute; |
|||
pointer-events: none; |
|||
border-radius: 8px; |
|||
opacity: 0; |
|||
mask-image: linear-gradient(180deg,rgba(0,0,0,1)10%,rgba(0,0,0,0.1)60%); |
|||
transition: all 0.3s ease; |
|||
z-index: 0; |
|||
} |
} |
||
. |
.main-card__background img { |
||
height: 100%; |
height: 100%; |
||
width: |
width: 100%; |
||
object-fit: cover; |
|||
opacity: 0.85; |
|||
transition: 0.3s; |
|||
transition-property: transform; |
|||
} |
} |
||
.main-card__background img:hover { |
|||
.navigation-card > a { |
|||
transform: scale(1.1); |
|||
} |
|||
.main-card__overlay { |
|||
display: flex; |
display: flex; |
||
flex-direction: column; |
|||
width: 100%; |
|||
justify-content: flex-end; |
|||
height:100%; |
|||
width:100%; |
|||
position: absolute; |
|||
top: 0; |
|||
pointer-events: none; |
|||
padding-left: 8px; |
|||
} |
|||
.main-card__overlay-title { |
|||
font-size: 1.1rem; |
|||
font-weight: 600; |
|||
color: var(--color-emphasized); |
|||
margin: 0; |
|||
} |
|||
.main-card__overlay-subtitle { |
|||
font-size: 0.9rem; |
|||
color: var(--color-subtle); |
|||
margin-top: 2px; |
|||
letter-spacing: 0.3px; |
|||
} |
|||
.main-card__overlay-badge { |
|||
position: absolute; |
|||
top: 0; |
|||
right: 0; |
|||
margin: 6px; |
|||
padding: 4px 12px; |
|||
font-size: 0.75rem; |
|||
font-weight: 600; |
|||
letter-spacing: 1px; |
|||
text-transform: uppercase; |
|||
color: #cfd8e3; |
|||
background: rgba(0, 0, 0, 0.45); |
|||
border: 1px solid rgba(255, 255, 255, 0.15); |
|||
border-radius: 6px; |
|||
backdrop-filter: blur(6px); |
|||
pointer-events: none; |
|||
} |
|||
.main-card__title { |
|||
position: relative; |
|||
padding: 8px; |
|||
border-bottom: 1px solid var(--border-color-base); |
|||
font-size: 1em; |
|||
font-weight: bold; |
|||
margin-bottom: 10px; |
|||
color: var(--color-emphasized); |
|||
} |
|||
.main-card__content { |
|||
padding: 8px; |
|||
height: 100%; |
height: 100%; |
||
align-items: center; |
|||
justify-content: center; |
|||
text-decoration: none; |
|||
color: #fff; |
|||
} |
} |
||
.main-card--row3 { |
|||
.navigation-card:hover .navigation-card-background { |
|||
grid-row: span 3; |
|||
} |
} |
||
. |
.main-card--row6 { |
||
grid-row: span 6; |
|||
filter: brightness(1.60); |
|||
} |
} |
||
.navigation { |
|||
.news-section { |
|||
display: flex; |
|||
gap: 0.5rem; |
|||
flex-flow: row wrap; |
|||
justify-content: space-around; |
|||
font-size: 15px; |
|||
font-weight: 600; |
|||
margin-bottom: 15px; |
|||
color: white; |
|||
} |
|||
.navigation-pill { |
|||
position: relative; |
|||
flex: 1 1 calc(180px - 0.5rem); |
|||
border: 1px solid #333; |
|||
border-radius: 8px; |
|||
height: 60px; |
|||
line-height: 1.35; |
|||
overflow: hidden; |
|||
font-size: 16px; |
|||
} |
|||
.navigation-pill-background { |
|||
position: absolute; |
|||
pointer-events: none; |
|||
inset: 0; |
|||
} |
|||
.navigation-pill-background img { |
|||
width: 100%; |
width: 100%; |
||
height: 100%; |
|||
object-fit: cover; |
|||
mask-image: linear-gradient(180deg,rgba(0,0,0,1)45%,rgba(0,0,0,0.1)70%); |
|||
transition: 0.3s; |
|||
transition-property: transform; |
|||
} |
|||
.navigation-pill:hover .navigation-pill-background img { |
|||
transform: scale(1.1); |
|||
} |
|||
.navigation-pill > a { |
|||
position: relative; |
|||
padding: 0 var(--space-md); |
|||
display: flex; |
display: flex; |
||
align-items: flex-end; |
|||
justify-content: center; |
|||
background: linear-gradient(to right, #101214, #0c0e10); |
|||
color: var(--color-emphasized); |
|||
border:1px solid #444; |
|||
text-decoration: none; |
|||
border-radius: 8px; |
|||
height: 100%; |
|||
margin-top: 15px; |
|||
} |
} |
||
.news-title { |
.news-title { |
||
padding: 8px; |
|||
border-bottom: 1px solid #444; |
|||
border-bottom: 1px solid var(--border-color-base); |
|||
padding-bottom: 5px; |
padding-bottom: 5px; |
||
margin-bottom: |
margin-bottom: 10px; |
||
width: 100%; |
|||
display: flex; |
display: flex; |
||
justify-content: space-between; |
justify-content: space-between; |
||
align-items: center; |
align-items: center; |
||
color: var(--color-emphasized); |
|||
} |
} |
||
.news-title-label { |
.news-title-label { |
||
font-size: |
font-size: 1em; |
||
font-weight: bold; |
font-weight: bold; |
||
} |
} |
||
.news-title-update { |
.news-title-update { |
||
font-size: |
font-size: 0.90em; |
||
} |
} |
||
/* |
|||
JUST BUTTONS |
|||
*/ |
|||
.card-button-grid { |
.card-button-grid { |
||
| Line 114: | Line 221: | ||
} |
} |
||
.timeline { |
|||
h1, h2 { |
|||
position: relative; |
|||
margin-top: 1em; |
|||
padding: 8px; |
|||
} |
|||
.timeline__item { |
|||
position: relative; |
|||
margin-bottom: 10px; |
|||
} |
|||
.timeline__content { |
|||
background: var(--card-background-secondary); |
|||
padding: 4px 6px; |
|||
border-radius: 8px; |
|||
border: 1px solid #2a2d36; |
|||
} |
|||
.timeline__content .timeline__date { |
|||
font-size: 16px; |
|||
font-weight: 600; |
|||
color: var(--color-emphasized); |
|||
} |
|||
.timeline__content .timeline__desc { |
|||
font-size: 14px; |
|||
} |
|||
.home-stats { |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
height: 100%; |
|||
justify-content: center; |
|||
align-items: center; |
|||
flex-direction: row; |
|||
line-height: 1.3; |
|||
gap: 10px; |
|||
} |
|||
.home-stats__item { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
width: calc(50% - 10px); |
|||
} |
|||
.home-stats__label { |
|||
color: var(--color-base--subtle); |
|||
white-space: nowrap; |
|||
} |
|||
.home-stats__data { |
|||
color: var(--color-base--emphasized); |
|||
font-weight: 500; |
|||
font-size: 20px; |
|||
white-space: nowrap; |
|||
} |
|||
@media (max-width: 768px) { |
|||
.main-row--75-25, |
|||
.main-row--50-50 { |
|||
grid-template-columns: 1fr; |
|||
} |
|||
} |
} |
||
Latest revision as of 14:05, 7 November 2025
.main-header {
margin: 0;
}
.fullwidth-banner {
width: 100% !important;
max-width: 100% !important;
}
.fullwidth-banner img {
width: 100%;
height: auto;
}
.main-row {
display: grid;
grid-auto-rows: minmax(3rem,auto);
gap: 0.5rem;
margin-bottom: 8px;
}
.main-row--75-25 {
grid-template-columns: 4fr 2fr;
}
.main-row--50-50 {
grid-template-columns: 1fr 1fr;
}
.main-card {
background: var(--card-background);
border:1px solid var(--border-color-base);
border-radius: 8px;
position: relative;
display: flex;
flex-direction: column;
}
.main-card__background {
inset: 0;
position: absolute;
border-radius: 8px;
mask-image: linear-gradient(180deg,rgba(0,0,0,1)10%,rgba(0,0,0,0.1)60%);
}
.main-card__background img {
height: 100%;
width: 100%;
object-fit: cover;
opacity: 0.85;
transition: 0.3s;
transition-property: transform;
}
.main-card__background img:hover {
transform: scale(1.1);
}
.main-card__overlay {
display: flex;
flex-direction: column;
justify-content: flex-end;
height:100%;
width:100%;
position: absolute;
top: 0;
pointer-events: none;
padding-left: 8px;
}
.main-card__overlay-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--color-emphasized);
margin: 0;
}
.main-card__overlay-subtitle {
font-size: 0.9rem;
color: var(--color-subtle);
margin-top: 2px;
letter-spacing: 0.3px;
}
.main-card__overlay-badge {
position: absolute;
top: 0;
right: 0;
margin: 6px;
padding: 4px 12px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
color: #cfd8e3;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
backdrop-filter: blur(6px);
pointer-events: none;
}
.main-card__title {
position: relative;
padding: 8px;
border-bottom: 1px solid var(--border-color-base);
font-size: 1em;
font-weight: bold;
margin-bottom: 10px;
color: var(--color-emphasized);
}
.main-card__content {
padding: 8px;
height: 100%;
}
.main-card--row3 {
grid-row: span 3;
}
.main-card--row6 {
grid-row: span 6;
}
.navigation {
display: flex;
gap: 0.5rem;
flex-flow: row wrap;
justify-content: space-around;
font-size: 15px;
font-weight: 600;
margin-bottom: 15px;
color: white;
}
.navigation-pill {
position: relative;
flex: 1 1 calc(180px - 0.5rem);
border: 1px solid #333;
border-radius: 8px;
height: 60px;
line-height: 1.35;
overflow: hidden;
font-size: 16px;
}
.navigation-pill-background {
position: absolute;
pointer-events: none;
inset: 0;
}
.navigation-pill-background img {
width: 100%;
height: 100%;
object-fit: cover;
mask-image: linear-gradient(180deg,rgba(0,0,0,1)45%,rgba(0,0,0,0.1)70%);
transition: 0.3s;
transition-property: transform;
}
.navigation-pill:hover .navigation-pill-background img {
transform: scale(1.1);
}
.navigation-pill > a {
position: relative;
padding: 0 var(--space-md);
display: flex;
align-items: flex-end;
justify-content: center;
color: var(--color-emphasized);
text-decoration: none;
height: 100%;
}
.news-title {
padding: 8px;
border-bottom: 1px solid var(--border-color-base);
padding-bottom: 5px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--color-emphasized);
}
.news-title-label {
font-size: 1em;
font-weight: bold;
}
.news-title-update {
font-size: 0.90em;
}
.card-button-grid {
display: grid;
grid-gap: 5px;
text-align: center;
}
.card-button {
display: flex;
}
.card-button a, .card-button a.external:visited {
flex-grow: 1;
padding: 5px;
border-radius: 6px;
text-decoration: none !important;
color: white;
background: #2a2a2a;
transition: all 0.3s ease;
}
.card-button a:hover {
filter: brightness(1.2);
}
.timeline {
position: relative;
padding: 8px;
}
.timeline__item {
position: relative;
margin-bottom: 10px;
}
.timeline__content {
background: var(--card-background-secondary);
padding: 4px 6px;
border-radius: 8px;
border: 1px solid #2a2d36;
}
.timeline__content .timeline__date {
font-size: 16px;
font-weight: 600;
color: var(--color-emphasized);
}
.timeline__content .timeline__desc {
font-size: 14px;
}
.home-stats {
display: flex;
flex-wrap: wrap;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: row;
line-height: 1.3;
gap: 10px;
}
.home-stats__item {
display: flex;
flex-direction: column;
align-items: center;
width: calc(50% - 10px);
}
.home-stats__label {
color: var(--color-base--subtle);
white-space: nowrap;
}
.home-stats__data {
color: var(--color-base--emphasized);
font-weight: 500;
font-size: 20px;
white-space: nowrap;
}
@media (max-width: 768px) {
.main-row--75-25,
.main-row--50-50 {
grid-template-columns: 1fr;
}
}