Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Modèle:Accueil/header/styles.css » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
Aucun résumé des modifications
Hiob (discussion | contributions)
Aucun résumé des modifications
Balise : Révoqué
Ligne 1 : Ligne 1 :
.tg-mainpage-header {
.home-header {
position: relative;
    position: relative;
margin-top: -2rem;
    padding-block: 3.5rem;
margin-bottom: -4rem;
    line-height: 1.2;
padding-top: 6rem;
    text-align: center;
padding-bottom: 6rem;
clear: both;
overflow: hidden; /* Prevent circular inscription from affecting element size */
pointer-events: none; /* So that you can click elements overlap with the header */
}
}


.tg-mainpage-header::before {
.home-header__pretitle {
content: '';
    margin-bottom: 0.5rem;
position: absolute;
    color: #888;
inset: 0;
    font-size: 0.9rem;
background-image: url();
    letter-spacing: 0.05em;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
opacity: 0.1;
filter: var(--filter-invert);
pointer-events: none;
animation: spin 60s infinite linear;
}
}


.tg-mainpage-content {
.home-header__title {
align-items: center;
    margin: 0;
display: flex;
    font-size: 2.5rem; /* Mobile */
flex-direction: column;
    text-transform: uppercase;
text-align: center;
    line-height: 0.9;
pointer-events: auto; /* Reset pointer-events: none from header */
    font-weight: 600;
}
}


/* Fellowship background */
@media (min-width: 600px) {
.tg-mainpage-header-nefald::before {
    .home-header__title {
content: '';
        font-size: calc(2.5rem + 1vw);
position: absolute;
    }
left: 0;
right: 0;
top: -100%;
margin: 0 auto;
width: 50%;
height: 100%;
background-image: url();
background-repeat: no-repeat;
background-position: bottom center;
opacity: 0.2;
filter: var(--filter-invert);
}
}


/* Temp styles */
@media (min-width: 1200px) {
.tg-mainpage-header-nefald {
    .home-header__title {
position: relative;
        font-size: 4.5rem;
margin-top: 2.5rem;
    }
width: 150px;
max-width: 100%;
padding-top: 0.75rem;
}
}


.tg-mainpage-header-nefald img {
.home-header__subtitle {
width: 100%;
    margin-top: 0.5rem;
height: 100%;
    color: #888;
filter: var(--filter-invert);
    font-size: 0.9rem;
}
}


.tg-mainpage-header-tagline {
/* Barre de recherche */
margin-top: -0.25rem;
.home-header__search {
color: var(--tg-color-subtle);
    padding: 1rem;
font-size: var(--tg-font-size-small);
    margin-top: 2rem;
line-height: var(--tg-line-height-xx-small);
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    border: 1px solid #a2a9b1;
    border-radius: 50px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}
}


.tg-mainpage-header-search {
.home-header__search:hover {
align-items: center;
    background: #fff;
background-color: var(--tg-color-progressive);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
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 {
/* Effet de glow (simplifié) */
content: '';
.scw-gradient-glow {
width: 1rem;
    position: relative;
height: 1rem;
    z-index: 1;
mask-image: url();
    border-radius: 50px;
mask-size: contain;
background-color: currentColor;
display: block;
}
}


/* Keyboard hint */
.scw-gradient-glow::before {
@media (hover: hover) {
    content: "";
.tg-mainpage-header-search:after {
    position: absolute;
content: '/';
    top: -2px;
margin-top: -2px;
    left: -2px;
margin-bottom: -2px;
    right: -2px;
margin-left: 2px;
    bottom: -2px;
width: 18px;
    background: linear-gradient(
height: 18px;
        90deg,
display: flex;
        #87bfdb, #77abC8, #6797b5, #577f9d, #476684,
background-color: var(--tg-color-inverted-progressive);
        #43668a, #3e668f, #304a66, #212e3d, #304a66,
color: var(--tg-color-progressive);
        #3e668f, #43668a, #476684, #577f9d, #6797b5,
border-radius: var(--tg-border-radius-small);
        #77abC8, #87bfdb
line-height: 1;
    );
align-items: center;
    z-index: -1;
justify-content: center;
    border-radius: 50px;
font-size: 10px;
    opacity: 0.7;
font-weight: 900;
    filter: blur(4px);
opacity: 0.6;
    transition: filter 0.3s ease;
}
}
}


.tg-mainpage-header-search:hover {
.home-header__search:hover::before {
background-color: var(--tg-color-progressive--hover);
    filter: blur(8px);
}
}


.tg-mainpage-header-search:active {
.home-header__searchIcon img {
background-color: var(--tg-color-progressive--active);
    margin-right: 0.75rem;
    opacity: 0.7;
    filter: invert(0.5); /* Inversion directe */
}
}


@keyframes spin {
.desktoponly {
from {
    margin-left: 0.5rem;
transform: rotate(0deg);
}
}
 
to {
@media (hover: none) {
transform: rotate(360deg);
    .home-header__search .desktoponly {
}
        display: none;
    }
}
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.