Jump to content
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 Infothèque
Aucun résumé des modifications
Balise : Révocation manuelle
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
/* ============================================================
* Infothèque — Accueil : header (logo, titre, recherche)
* 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 {
.ith-home-logo {
     margin: 44px auto 32px 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 36 : Ligne 38 :
.ith-home-search {
.ith-home-search {
     box-sizing: border-box;
     box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 1100px;
     margin: 8px auto 32px auto;
     margin: 8px auto 32px auto;
    max-width: 1100px;
     padding: 16px 24px 16px 52px;
     padding: 16px 24px;
     border: 1px solid #c9ced6;
     border: 1px solid #c9ced6;
     border-radius: 18px;
     border-radius: 18px;
     background-color: #ffffff;
     background-color: #ffffff;
    color: #1f2328;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
}


.ith-home-search:hover {
.ith-home-search::before {
     background-color: #f2f2f5;
     content: "🔎";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}
}


.ith-home-search__icon {
.ith-home-search .mw-inputbox-centered {
    display: inline-block;
     width: 100%;
    vertical-align: middle;
    font-size: 22px;
     margin-right: 12px;
}
}


.ith-home-search__text {
.ith-home-search form.searchbox {
     display: inline-block;
    width: 100%;
     vertical-align: middle;
    margin: 0;
    padding: 0;
}
 
.ith-home-search .cdx-text-input {
    width: 100%;
}
 
.ith-home-search input.mw-searchInput {
    box-sizing: border-box;
     display: block;
     width: 100%;
    border: none;
    outline: none;
    background: transparent;
     font-size: 18px;
     font-size: 18px;
     font-weight: 700;
     font-weight: 700;
    color: #1f2328;
    padding: 4px;
}
.ith-home-search input[name="go"],
.ith-home-search input[name="fulltext"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}
}


Ligne 76 : Ligne 107 :


@media (max-width: 700px) {
@media (max-width: 700px) {
     .ith-home-search { padding: 12px 16px; }
     .ith-home-search { padding: 12px 16px 12px 44px; }
     .ith-home-search__text { font-size: 15px; }
     .ith-home-search::before { left: 16px; font-size: 17px; }
    .ith-home-search input.mw-searchInput { font-size: 15px; }
}
}

Version du 12 août 2026 à 11:56

.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);
}

.ith-home-search {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 8px auto 32px auto;
    padding: 16px 24px 16px 52px;
    border: 1px solid #c9ced6;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ith-home-search::before {
    content: "🔎";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.ith-home-search .mw-inputbox-centered {
    width: 100%;
}

.ith-home-search form.searchbox {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ith-home-search .cdx-text-input {
    width: 100%;
}

.ith-home-search input.mw-searchInput {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #1f2328;
    padding: 4px;
}

.ith-home-search input[name="go"],
.ith-home-search input[name="fulltext"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

@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: 12px 16px 12px 44px; }
    .ith-home-search::before { left: 16px; font-size: 17px; }
    .ith-home-search input.mw-searchInput { font-size: 15px; }
}