« Modèle:Accueil/header/styles.css » : différence entre les versions
De Nefald
Autres actions
< Modèle:Accueil | header
Page créée avec « .home-header { position: relative; padding-block: 3.5rem; line-height: var( --line-height-xx-small ); text-align: center; } .home-header__pretitle { margin-bottom: var( --space-xxs ); color: var( --color-subtle ); font-size: var( --font-size-small ); letter-spacing: 0.05em; } .home-header__title { --display-font-size: min( calc( 2.5rem + 3.9vw ), 4.5rem ); margin: 0; font-size: var( --display-font-size ); text-transform: uppercase; line-height:... » |
Aucun résumé des modifications |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
. | .tg-mainpage-header { | ||
position: relative; | position: relative; | ||
padding- | margin-top: -2rem; | ||
margin-bottom: -4rem; | |||
padding-top: 6rem; | |||
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 { | |||
content: ''; | |||
position: absolute; | |||
inset: 0; | |||
background-image: url(); | |||
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 { | |||
align-items: center; | |||
display: flex; | |||
flex-direction: column; | |||
text-align: center; | text-align: center; | ||
pointer-events: auto; /* Reset pointer-events: none from header */ | |||
} | } | ||
. | /* Fellowship background */ | ||
margin- | .tg-mainpage-header-nefald::before { | ||
content: ''; | |||
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 */ | ||
.tg-mainpage-header-nefald { | |||
margin: | position: relative; | ||
margin-top: 2.5rem; | |||
width: 150px; | |||
max-width: 100%; | |||
padding-top: 0.75rem; | |||
} | } | ||
. | .tg-mainpage-header-nefald img { | ||
width: 100%; | |||
height: 100%; | |||
filter: var(--filter-invert); | |||
} | } | ||
. | .tg-mainpage-header-tagline { | ||
margin-top: -0.25rem; | |||
color: var(--tg-color-subtle); | |||
font-size: var(--tg-font-size-small); | |||
margin-top: | line-height: var(--tg-line-height-xx-small); | ||
font-size: var( --font-size-small ); | |||
} | } | ||
. | .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; | ||
background | height: 1rem; | ||
mask-image: url(); | |||
mask-size: contain; | |||
background-color: currentColor; | |||
display: block; | |||
} | } | ||
. | /* 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; | |||
} | |||
} | } | ||
.tg-mainpage-header-search:hover { | |||
. | background-color: var(--tg-color-progressive--hover); | ||
} | } | ||
. | .tg-mainpage-header-search:active { | ||
background-color: var(--tg-color-progressive--active); | |||
} | } | ||
@ | @keyframes spin { | ||
from { | |||
transform: rotate(0deg); | |||
} | |||
to { | |||
transform: rotate(360deg); | |||
} | } | ||
} | } |
Dernière version du 17 septembre 2025 à 21:13
.tg-mainpage-header {
position: relative;
margin-top: -2rem;
margin-bottom: -4rem;
padding-top: 6rem;
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 {
content: '';
position: absolute;
inset: 0;
background-image: url();
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 {
align-items: center;
display: flex;
flex-direction: column;
text-align: center;
pointer-events: auto; /* Reset pointer-events: none from header */
}
/* Fellowship background */
.tg-mainpage-header-nefald::before {
content: '';
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 */
.tg-mainpage-header-nefald {
position: relative;
margin-top: 2.5rem;
width: 150px;
max-width: 100%;
padding-top: 0.75rem;
}
.tg-mainpage-header-nefald img {
width: 100%;
height: 100%;
filter: var(--filter-invert);
}
.tg-mainpage-header-tagline {
margin-top: -0.25rem;
color: var(--tg-color-subtle);
font-size: var(--tg-font-size-small);
line-height: var(--tg-line-height-xx-small);
}
.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;
}
/* 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;
}
}
.tg-mainpage-header-search:hover {
background-color: var(--tg-color-progressive--hover);
}
.tg-mainpage-header-search:active {
background-color: var(--tg-color-progressive--active);
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}