Aller au contenu

MediaWiki:Common.js

De AECFC

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  •  Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* Tout JavaScript présent ici sera exécuté par tous les utilisateurs à chaque chargement de page.

$(function () {
    $('a.mw-wiki-logo, a.mw-logo')
        .attr('href', 'Accueil')
        .attr('title', 'Retour a l'accueil');
});
*/

/* Ensemble : logo + liens Accueil et Devoirs */
.aecfc-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
}

/* Logo graphique uniquement */
.aecfc-brand .aecfc-logo-link {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto !important;

    width: auto !important;
    height: auto !important;
    margin: 0 !important;

    position: static !important;
    inset: auto !important;
    z-index: auto !important;

    pointer-events: auto !important;
}

/* Les deux liens à droite du logo */
.aecfc-text-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    margin-left: 14px;
    white-space: nowrap;

    position: relative;
    z-index: 10;
}

/* Accueil : texte principal */
.aecfc-accueil-link,
.aecfc-accueil-link:visited {
    color: #287676;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    pointer-events: auto;
}

/* Devoirs : texte secondaire */
.aecfc-devoirs-link,
.aecfc-devoirs-link:visited {
    color: #3366cc;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    margin-top: 3px;
    pointer-events: auto;
}

.aecfc-accueil-link:hover,
.aecfc-devoirs-link:hover {
    text-decoration: underline;
}