Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

De Vianney Pacaud Colab
Aucun résumé des modifications
Page blanchie
Balise : Blanchiment
 
Ligne 1 : Ligne 1 :
/* --- STYLE INFOBULLE STYLE WIKIPÉDIA --- */


/* Le mot souligné dans le texte */
.m-popups {
    position: relative;
    display: inline;
    color: #3366cc; /* Bleu lien Wikipédia */
    border-bottom: 1px dotted #a2a9b1;
    cursor: help;
    text-decoration: none;
}
/* La boîte qui surgit (la carte) */
.m-popups-card {
    visibility: hidden;
    width: 350px;
    background: #ffffff;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: absolute;
    z-index: 1000;
    bottom: 140%; /* Distance par rapport au mot */
    left: 50%;
    margin-left: -175px; /* Pour centrer la boîte */
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(10px);
    pointer-events: none;
}
/* Affichage au survol du mot */
.m-popups:hover .m-popups-card {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
/* Zone de contenu avec Padding de 20px */
.m-popups-content {
    padding: 20px;
    color: #202122;
    font-size: 14px;
    line-height: 1.6;
    font-family: sans-serif;
    text-align: left;
}
/* Le titre à l'intérieur de la bulle */
.m-popups-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecf0; /* Ligne de séparation grise */
    font-family: 'Linux Libertine', 'Georgia', serif;
}
/* Image à l'intérieur de la bulle */
.m-popups-image {
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
    border: 1px solid #eaecf0;
    max-width: 100px;
    height: auto;
}
/* La flèche de pointage en bas de la boîte */
.m-popups-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

Dernière version du 24 avril 2026 à 21:37