« Modèle:Accueil/shared/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
mAucun résumé des modifications |
||
| Ligne 127 : | Ligne 127 : | ||
/* ==================================== | /* ==================================== | ||
2. BARRE DE RECHERCHE - | 2. BARRE DE RECHERCHE - MINIMALISTE | ||
==================================== */ | ==================================== */ | ||
| Ligne 138 : | Ligne 134 : | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | justify-content: center; | ||
max-width: | gap: 0.75rem; | ||
max-width: 500px; | |||
width: 100%; | width: 100%; | ||
margin-top: var(--space-xl); | margin-top: var(--space-xl); | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
padding: | padding: 0.625rem 1.25rem; | ||
/* Style | /* Style */ | ||
background-color: rgba(255, 255, 255, 0. | background-color: rgba(255, 255, 255, 0.02); | ||
border: 1px solid rgba( | border: 1px solid rgba(255, 255, 255, 0.15); | ||
border-radius: 50px; | border-radius: 50px; | ||
/* Typography */ | /* Typography */ | ||
font-size: 0. | font-size: 0.875rem; | ||
/* Interaction */ | /* Interaction */ | ||
cursor: pointer; | cursor: pointer; | ||
transition: all 0. | transition: all 0.2s ease; | ||
} | } | ||
.home-search:hover { | .home-search:hover { | ||
background-color: rgba(255, 255, 255, 0. | background-color: rgba(255, 255, 255, 0.04); | ||
border-color: rgba( | border-color: rgba(255, 255, 255, 0.25); | ||
} | } | ||
.home-search__icon { | .home-search__icon { | ||
font-size: | font-size: 0.875rem; | ||
opacity: 0. | opacity: 0.5; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
.home-search__text { | .home-search__text { | ||
color: var(--color-base); | color: var(--color-base); | ||
opacity: 0. | opacity: 0.6; | ||
user-select: none; | user-select: none; | ||
text-align: | text-align: center; | ||
line-height: 1 | line-height: 1; | ||
} | } | ||
| Ligne 202 : | Ligne 180 : | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
min-width: 1. | min-width: 1.25rem; | ||
height: 1. | height: 1.25rem; | ||
padding: 0 0. | padding: 0 0.35rem; | ||
font-family: monospace; | font-family: monospace; | ||
font-size: 0. | font-size: 0.6875rem; | ||
font-weight: | font-weight: 600; | ||
background: rgba( | background: rgba(255, 255, 255, 0.08); | ||
border: 1px solid rgba( | border: 1px solid rgba(255, 255, 255, 0.15); | ||
border-radius: | border-radius: 3px; | ||
color: var(--color-base); | color: var(--color-base); | ||
opacity: 0. | opacity: 0.5; | ||
} | } | ||
| Ligne 227 : | Ligne 198 : | ||
margin-left: 1rem; | margin-left: 1rem; | ||
margin-right: 1rem; | margin-right: 1rem; | ||
padding: 0. | padding: 0.5rem 1rem; | ||
} | } | ||
.home-search__kbd | .home-search__kbd { | ||
display: none; | display: none; | ||
} | } | ||
Version du 29 octobre 2025 à 15:16
/* ====================================
TABLE DES MATIÈRES
====================================
1. HEADER & HERO
2. BARRE DE RECHERCHE
3. GRID SYSTEM
4. BADGES
5. CARDS
6. LINKS & BUTTONS
7. SOCIAL MEDIA
8. FOOTER
9. ANIMATIONS
10. MEDIA QUERIES
==================================== */
/* ====================================
1. HEADER & HERO
==================================== */
.tg-mainpage-header {
position: relative;
margin-top: -2rem;
margin-bottom: 2rem;
padding: 8rem 2rem 6rem;
clear: both;
overflow: hidden;
pointer-events: none;
background: transparent;
}
.tg-mainpage-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url();
background-repeat: no-repeat;
background-position: center;
background-size: contain;
opacity: 0.05;
filter: var(--filter-invert);
pointer-events: none;
animation: spin 120s infinite linear;
}
.tg-mainpage-content {
align-items: center;
display: flex;
flex-direction: column;
text-align: center;
pointer-events: auto;
max-width: 800px;
margin: 0 auto;
animation: fadeIn 0.8s ease-out;
}
.tg-mainpage-header-nefald {
position: relative;
width: 180px;
max-width: 100%;
margin-bottom: 1.5rem;
filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
animation: slideUp 0.8s ease-out;
}
.tg-mainpage-header-nefald::before {
content: '';
position: absolute;
left: 0;
right: 0;
top: -100%;
margin-left: auto;
margin-right: auto;
width: 50%;
height: 100%;
background-image: url();
background-repeat: no-repeat;
background-position: bottom center;
opacity: 0.2;
filter: var(--filter-invert);
}
.tg-mainpage-header-nefald img {
width: 100%;
height: auto;
filter: var(--filter-invert);
}
.tg-mainpage-header-tagline {
margin-top: 0.5rem;
margin-bottom: 2rem;
color: var(--color-subtle);
font-size: 1.125rem;
line-height: 1.6;
font-weight: 300;
letter-spacing: 0.5px;
opacity: 0.8;
}
.tg-mainpage-header-search {
align-items: center;
background-color: var(--tg-color-progressive);
border-radius: var(--tg-border-radius-pill);
color: var(--tg-color-inverted-progressive);
cursor: pointer;
display: flex;
font-size: 0.875rem;
font-weight: var(--font-weight-medium);
gap: 0.5rem;
line-height: 1;
margin-top: 1rem;
padding: 1rem 2rem;
user-select: none;
}
.tg-mainpage-header-search:before {
content: '';
width: 1rem;
height: 1rem;
mask-image: url();
mask-size: contain;
background-color: currentColor;
display: block;
}
/* ====================================
2. BARRE DE RECHERCHE - MINIMALISTE
==================================== */
.home-search {
/* Layout */
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
max-width: 500px;
width: 100%;
margin-top: var(--space-xl);
margin-left: auto;
margin-right: auto;
padding: 0.625rem 1.25rem;
/* Style */
background-color: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 50px;
/* Typography */
font-size: 0.875rem;
/* Interaction */
cursor: pointer;
transition: all 0.2s ease;
}
.home-search:hover {
background-color: rgba(255, 255, 255, 0.04);
border-color: rgba(255, 255, 255, 0.25);
}
.home-search__icon {
font-size: 0.875rem;
opacity: 0.5;
flex-shrink: 0;
line-height: 1;
}
.home-search__text {
color: var(--color-base);
opacity: 0.6;
user-select: none;
text-align: center;
line-height: 1;
}
.home-search__kbd {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.25rem;
height: 1.25rem;
padding: 0 0.35rem;
font-family: monospace;
font-size: 0.6875rem;
font-weight: 600;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 3px;
color: var(--color-base);
opacity: 0.5;
}
/* Responsive */
@media (max-width: 768px) {
.home-search {
margin-left: 1rem;
margin-right: 1rem;
padding: 0.5rem 1rem;
}
.home-search__kbd {
display: none;
}
}
/* ====================================
3. GRID SYSTEM
==================================== */
.home-grid {
display: grid;
grid: auto-flow dense/repeat(auto-fit, minmax(9.375rem, 1fr));
grid-auto-rows: minmax(3rem, auto);
grid-gap: var(--space-xs);
}
.home-grid--col2 {
grid-template-columns: 1fr 1fr;
}
.home-grid a.external {
background-image: none;
}
/* ====================================
4. BADGES
==================================== */
.home-badge {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: var(--space-md);
border-radius: var(--border-radius-medium);
font-size: var(--font-size-small);
font-weight: var(--font-weight-semibold);
line-height: var(--line-height-xxx-small);
text-align: center;
text-decoration: none;
}
.home-badge:hover {
filter: brightness(1.1);
}
.home-badge--green {
background: var(--color-success);
color: #fff;
}
.home-badge--red {
background: var(--color-destructive);
color: #fff;
}
.home-badge--blue {
background: var(--color-progressive);
color: #fff;
}
/* ====================================
5. CARDS
==================================== */
.home-card {
padding: var(--space-md);
border: 1px solid var(--border-color-base);
background: var(--color-surface-1);
border-radius: var(--border-radius-medium);
}
.home-card__title {
margin-bottom: var(--space-xs);
font-size: var(--font-size-medium);
font-weight: var(--font-weight-semibold);
line-height: var(--line-height-xs);
}
.home-card__content {
font-size: var(--font-size-small);
line-height: var(--line-height-sm);
color: var(--color-subtle);
}
.home-card .template-statsbar {
margin: 0;
}
#home-card-discord {
background: #5865f2;
color: #fff;
}
#home-card-patreon {
background: #ff424d;
color: #fff;
}
#home-card-kofi {
background: #ff5e5b;
color: #fff;
}
#home-card-reddit {
background: #ff4500;
color: #fff;
}
/* ====================================
6. LINKS & BUTTONS
==================================== */
.home-link {
display: grid;
margin-top: var(--space-xs);
font-size: var(--font-size-small);
font-weight: var(--font-weight-medium);
grid-gap: var(--space-xs);
text-align: center;
}
.home-link__button {
display: flex;
}
.home-link__button a {
flex-grow: 1;
padding: var(--space-xs);
border: 1px solid var(--border-color-base);
background: var(--color-surface-2);
border-radius: var(--border-radius-medium);
color: var(--color-emphasized) !important;
line-height: var(--line-height-xxx-small);
text-decoration: none !important;
transition: background 0.2s ease;
}
.home-link__button a:hover {
background: var(--color-surface-2--hover);
}
.home-link__button a:active {
background: var(--color-surface-2--active);
}
/* ====================================
8. FOOTER
==================================== */
#home-content {
margin-top: var(--space-lg);
}
.home-footer {
font-size: var(--font-size-small);
font-family: var(--font-family-monospace);
text-align: center;
margin-top: var(--space-xl);
padding: var(--space-md);
opacity: 0.7;
}
/* ====================================
9. ANIMATIONS
==================================== */
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ====================================
10. MEDIA QUERIES
==================================== */
/* Desktop - Keyboard hint */
@media (hover: hover) {
.tg-mainpage-header-search:after {
content: '/';
margin-top: -2px;
margin-bottom: -2px;
margin-left: 2px;
width: 18px;
height: 18px;
display: flex;
background-color: var(--tg-color-inverted-progressive);
color: var(--tg-color-progressive);
border-radius: var(--tg-border-radius-small);
line-height: 1;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 900;
opacity: 0.6;
}
}
/* Tablet */
@media (max-width: 768px) {
.tg-mainpage-header {
padding: 6rem 1.5rem 4rem;
margin-bottom: 1rem;
}
.tg-mainpage-header-nefald {
width: 140px;
margin-bottom: 1rem;
}
.tg-mainpage-header-tagline {
font-size: 1rem;
margin-bottom: 1.5rem;
}
.home-search {
margin-left: 1rem;
margin-right: 1rem;
padding: 1rem 1.25rem;
border-radius: 14px;
}
.home-search__kbd-wrapper {
display: none;
}
.home-search__icon {
font-size: 1.125rem;
}
.home-search__text {
font-size: 0.9375rem;
}
.home-grid--col2 {
grid-template-columns: 1fr;
}
}
/* Mobile */
@media (max-width: 480px) {
.tg-mainpage-header {
padding: 5rem 1rem 3rem;
}
.tg-mainpage-header-nefald {
width: 120px;
}
.home-search {
padding: 0.875rem 1rem;
gap: 0.75rem;
}
.home-card {
padding: var(--space-sm);
}
}
/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
.home-search {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(255, 255, 255, 0.1);
}
.home-search:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
}
}