« Modèle:Accueil/shared/styles.css » : différence entre les versions
De Nefald Wiki
Autres actions
Page créée avec « →Main grid layout for homepage : .home-grid { display: grid; grid: auto-flow dense/repeat(auto-fit, minmax(9.375rem, 1fr)); grid-auto-rows: minmax(3rem, auto); gap: 8px; } .home-grid--col2 { grid-template-columns: 1fr 1fr; } .home-grid a.external { background-image: none; } →Badge component styling : .home-badge { display: flex; gap: 4px; font-size: 14px; padding: 4px 8px; background: #f8f9fa; color: #202... » |
(Aucune différence)
|
Dernière version du 12 septembre 2025 à 16:30
/* Main grid layout for homepage */
.home-grid {
display: grid;
grid: auto-flow dense/repeat(auto-fit, minmax(9.375rem, 1fr));
grid-auto-rows: minmax(3rem, auto);
gap: 8px;
}
.home-grid--col2 {
grid-template-columns: 1fr 1fr;
}
.home-grid a.external {
background-image: none;
}
/* Badge component styling */
.home-badge {
display: flex;
gap: 4px;
font-size: 14px;
padding: 4px 8px;
background: #f8f9fa;
color: #202122;
border-radius: 2px;
font-weight: 400;
letter-spacing: 0.025em;
line-height: 1.1;
}
/* Card component styling */
.home-card {
position: relative;
padding: 16px;
border: 1px solid #a2a9b1;
background: #ffffff;
border-radius: 6px;
font-size: 14px;
}
.home-card table.timeline {
margin-top: 8px;
}
.home-card--col2 {
grid-column: span 2;
}
.home-card--row3 {
grid-row: span 3;
}
.home-card--row4 {
grid-row: span 4;
}
.home-card--row8 {
grid-row: span 8 / auto;
}
/* Card badge and label styling */
.home-card__badge,
.home-card__label {
color: #54595d;
font-size: 14px;
letter-spacing: 0.05em;
}
.home-card__badge {
padding: 4px 8px;
border-radius: 2px;
background: #f8f9fa;
}
/* Card header styling */
.home-card__header {
color: #000000;
font-size: 16px;
font-weight: 600;
line-height: 1.1;
}
.home-card__header a {
display: flex;
align-items: center;
justify-content: space-between;
}
.home-card__header a:after {
content: '▶';
font-size: 14px;
}
/* Card background styling */
.home-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.home-card__background:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
background: linear-gradient(to right, #000, transparent);
content: "";
transition: transform 250ms ease;
}
.home-card__background picture,
.home-card__background img {
width: 100%;
height: 100%;
}
/* Background images - using background-size instead of object-fit */
.home-card__background img {
display: block;
width: 100%;
height: 100%;
}
/* Card foreground overlay */
.home-card__foreground {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: 16px;
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
color: #fff;
line-height: 1.1;
}
.home-card__foreground .home-card__badge {
position: absolute;
top: 0;
right: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
}
.home-card__foreground .home-card__header {
color: #fff;
}
.home-card__foreground .home-card__label {
color: #bababa;
}
.home-card p {
margin-top: 8px;
font-size: 14px;
}
/* Button-style cards */
.home-card.home-card--button {
overflow: hidden;
padding: 0;
border: 0;
}
.home-card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0 16px;
background: transparent;
color: #fff;
font-weight: 500;
}
.home-card--button .home-card__background a {
padding: 0;
}
.home-card--button img {
transition: transform 250ms ease;
}
.home-card--button:hover img {
transform: scale(1.1);
}
/* Link grid component */
.home-link {
display: grid;
margin-top: 8px;
font-size: 14px;
font-weight: 500;
gap: 8px;
text-align: center;
}
.home-link__button {
display: flex;
}
.home-link__button a {
flex-grow: 1;
padding: 8px;
border: 1px solid #a2a9b1;
background: #f8f9fa;
border-radius: 6px;
color: #000000 !important;
line-height: 1.1;
text-decoration: none !important;
}
.home-link__button a:hover {
background: #eaecf0;
}
.home-link__button a:active {
background: #c8ccd1;
}
/* Main content spacing */
#home-content {
margin-top: 32px;
}
.home-card .template-statsbar {
margin: 0;
}
/* Social platform card colors */
#home-card-discord {
background: #5865f2;
}
#home-card-patreon {
background: #ff424d;
}
#home-card-kofi {
background: #ff5e5b;
}
#home-card-reddit {
background: #ff4500;
}
/* Footer styling */
.home-footer {
font-size: 14px;
font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
text-align: center;
}