« Modèle:Accueil/header/styles.css » : différence entre les versions
De Infothèque
Autres actions
< Modèle:Accueil | header
Aucun résumé des modifications |
Logo responsive + style recherche InputBox (Infothèque) Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* ============================================================ | /* ============================================================ | ||
* Infothèque — Accueil : header (logo, titre, recherche) | * Infothèque — Accueil : header (logo, titre, recherche) | ||
* À coller dans : Modèle:Accueil/header/styles.css | |||
* | |||
* Ce bloc repose directement sur le fond d'écran de la page | * Ce bloc repose directement sur le fond d'écran de la page | ||
* d'accueil (pas de carte derrière) — couleur de texte forcée en | * d'accueil (pas de carte derrière) — couleur de texte forcée en | ||
| Ligne 12 : | Ligne 14 : | ||
.ith-home-logo { | .ith-home-logo { | ||
margin: 44px auto | margin: 44px auto 8px auto; | ||
text-align: center; | text-align: center; | ||
} | |||
.ith-home-logo img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
@media (max-width: 700px) { | |||
.ith-home-logo { margin-top: 28px; } | |||
.ith-home-logo img { width: 100px; } | |||
} | |||
@media (max-width: 420px) { | |||
.ith-home-logo img { width: 80px; } | |||
} | } | ||
| Ligne 34 : | Ligne 50 : | ||
} | } | ||
/* Barre de recherche : générée par <inputbox type=search>, un vrai | |||
* champ de recherche MediaWiki (suggestions en direct natives via | |||
* la classe mw-searchInput), pas un bloc décoratif. */ | |||
.ith-home-search { | .ith-home-search { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin: 8px auto 32px auto; | margin: 8px auto 32px auto; | ||
max-width: 1100px; | max-width: 1100px; | ||
padding: | padding: 10px 20px; | ||
border: 1px solid #c9ced6; | border: 1px solid #c9ced6; | ||
border-radius: 18px; | border-radius: 18px; | ||
background-color: #ffffff; | background-color: #ffffff; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); | |||
} | |||
.ith-home-search .mw-inputbox-form { | |||
display: flex; | |||
align-items: center; | |||
gap: 10px; | |||
} | |||
.ith-home-search input.mw-searchInput { | |||
flex: 1 1 auto; | |||
box-sizing: border-box; | |||
width: 100%; | |||
border: none; | |||
outline: none; | |||
background: transparent; | |||
font-size: 18px; | |||
font-weight: 700; | |||
color: #1f2328; | color: #1f2328; | ||
padding: 8px 4px; | |||
} | } | ||
.ith-home-search | /* Le bouton "go" (accès direct titre exact) est redondant avec la | ||
* recherche à suggestions — masqué. Seul "fulltext" reste, stylé | |||
* comme une icône. */ | |||
.ith-home-search input[name="go"] { | |||
display: none; | |||
} | } | ||
.ith-home- | .ith-home-search input[name="fulltext"] { | ||
flex: 0 0 auto; | |||
border: none; | |||
background: transparent; | |||
color: #1f2328; | |||
font-size: 22px; | font-size: 22px; | ||
line-height: 1; | |||
cursor: pointer; | |||
padding: 4px 8px; | |||
} | } | ||
.ith-home-search input[name="fulltext"]:hover { | |||
.ith-home- | opacity: 0.7; | ||
} | } | ||
| Ligne 76 : | Ligne 113 : | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
.ith-home-search { padding: | .ith-home-search { padding: 8px 14px; } | ||
.ith-home- | .ith-home-search input.mw-searchInput { font-size: 15px; } | ||
} | } | ||
Version du 12 août 2026 à 11:26
/* ============================================================
* Infothèque — Accueil : header (logo, titre, recherche)
* À coller dans : Modèle:Accueil/header/styles.css
*
* Ce bloc repose directement sur le fond d'écran de la page
* d'accueil (pas de carte derrière) — couleur de texte forcée en
* sombre et légère ombre portée, pour rester lisible quel que soit
* le thème jour/nuit du site (le fond Clouds est clair).
*
* La barre de recherche fait la même largeur que la grille de
* tuiles en dessous (1100px, cf. Modèle:Accueil/tiles/styles.css)
* pour former une colonne alignée.
* ============================================================ */
.ith-home-logo {
margin: 44px auto 8px auto;
text-align: center;
}
.ith-home-logo img {
max-width: 100%;
height: auto;
}
@media (max-width: 700px) {
.ith-home-logo { margin-top: 28px; }
.ith-home-logo img { width: 100px; }
}
@media (max-width: 420px) {
.ith-home-logo img { width: 80px; }
}
.ith-home-title {
text-align: center;
font-size: 2.4em;
font-weight: 800;
letter-spacing: 0.04em;
line-height: 1.1;
color: #1f2328;
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}
.ith-home-subtitle {
text-align: center;
font-size: 0.95em;
color: #3f4147;
margin: 8px 0 24px 0;
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}
/* Barre de recherche : générée par <inputbox type=search>, un vrai
* champ de recherche MediaWiki (suggestions en direct natives via
* la classe mw-searchInput), pas un bloc décoratif. */
.ith-home-search {
box-sizing: border-box;
margin: 8px auto 32px auto;
max-width: 1100px;
padding: 10px 20px;
border: 1px solid #c9ced6;
border-radius: 18px;
background-color: #ffffff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.ith-home-search .mw-inputbox-form {
display: flex;
align-items: center;
gap: 10px;
}
.ith-home-search input.mw-searchInput {
flex: 1 1 auto;
box-sizing: border-box;
width: 100%;
border: none;
outline: none;
background: transparent;
font-size: 18px;
font-weight: 700;
color: #1f2328;
padding: 8px 4px;
}
/* Le bouton "go" (accès direct titre exact) est redondant avec la
* recherche à suggestions — masqué. Seul "fulltext" reste, stylé
* comme une icône. */
.ith-home-search input[name="go"] {
display: none;
}
.ith-home-search input[name="fulltext"] {
flex: 0 0 auto;
border: none;
background: transparent;
color: #1f2328;
font-size: 22px;
line-height: 1;
cursor: pointer;
padding: 4px 8px;
}
.ith-home-search input[name="fulltext"]:hover {
opacity: 0.7;
}
@media (max-width: 700px) {
.ith-home-title { font-size: 1.6em; }
}
@media (max-width: 1140px) {
.ith-home-search { max-width: 92%; }
}
@media (max-width: 700px) {
.ith-home-search { padding: 8px 14px; }
.ith-home-search input.mw-searchInput { font-size: 15px; }
}