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/Hero.css » : différence entre les versions

De Wikithionville
WikiThionvilleSyncBot (discussion | contributions)
Sync homepage from repository (commit b06f0a0)
 
WikiThionvilleSyncBot (discussion | contributions)
m A protégé « Modèle:Accueil/Hero.css » : Sync homepage from repository (commit b06f0a0): restrict repository-managed page ([Modifier=⧼protect-level-repo-sync⧽] (infini) [Renommer=⧼protect-level-repo-sync⧽] (infini))
 
(Aucune différence)

Dernière version du 11 juin 2026 à 16:43

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--home-hero-bg);
}

.home-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.8rem;
	text-align: center;
}

.home-hero__content h1,
.home-hero__content .mw-heading1 {
	color: var(--home-hero-text);
	margin: 0;
	font-size: 3.5rem;
	font-weight: 600;
	text-shadow: var(--home-hero-title-shadow);
}

.home-search {
	display: flex;
	outline: 1px solid var(--home-hero-border);
	border-radius: 10px;
	background: var(--home-hero-surface);
	backdrop-filter: blur(5px);
	box-shadow: 0 4px 30px var(--home-hero-shadow);
}

.home-search .mw-inputbox-centered,
.home-search .searchbox {
	display: flex;
	align-items: center;
	margin: 0;
}

.home-search .cdx-text-input {
	margin: 0;
}

.home-search .searchboxInput {
	border: 0;
	padding: 0 0 0 0.75rem;
	border-radius: 10px 0 0 10px;
	background: transparent;
	color: var(--home-hero-text);
	height: 2.75rem;
	width: min(80vw, 500px);
	box-sizing: border-box;
}

.home-search .searchboxInput::placeholder {
	color: var(--home-hero-text);
}

.home-search .searchboxInput:focus {
	outline: 3px solid var(--home-accent);
	outline-offset: -3px;
}

.home-search .cdx-button {
	border: 0;
	background-color: var(--home-hero-text);
	color: var(--home-hero-text);
	cursor: pointer;
	height: 2.75rem;
	width: 3rem;
	padding: 0;
	border-radius: 0 10px 10px 0;
	font-size: 0;
	-webkit-mask-image: url("./Special:Redirect/file/search.svg");
	mask-image: url("./Special:Redirect/file/search.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: 1.3rem;
}

.home-hero__more {
	position: absolute;
	bottom: 0;
	padding: 30px;
}

.home-hero__more > p {
	margin: 0;
	color: var(--home-hero-muted);
	display: flex;
	flex-direction: row;
	align-items: center;
}

.home-hero__more .mw-default-size span {
	display: flex;
}

.home-hero__more > p > a {
	clear: both;
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	width: 0;
	margin: 0;
	transition: all 500ms;
	text-decoration: none;
}

.home-hero__more > p > a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 10;
}

.home-hero__more:hover > p > a {
	width: 98px;
	margin-left: 10px;
}

@media (max-width: 850px) {
	.home-hero__content h1,
	.home-hero__content .mw-heading1 {
		font-size: 2.5rem;
	}
}