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

De Nefald
Hiob (discussion | contributions)
Aucun résumé des modifications
Balise : Révoqué
Hiob (discussion | contributions)
Aucun résumé des modifications
Balise : Révoqué
Ligne 1 : Ligne 1 :
/* MiniCard - Wrapper pour gérer le lien */
/* MiniCard - Wrapper lien */
.minicard-wrapper {
.minicard-wrapper {
     display: inline-block;
     display: inline-flex;
     text-decoration: none !important;
     text-decoration: none;
    color: inherit;
}
}


.minicard-wrapper a {
.minicard-wrapper:hover {
     text-decoration: none !important;
     text-decoration: none;
    color: inherit !important;
}
}


Ligne 20 : Ligne 20 :
     padding: 0 20px;
     padding: 0 20px;
     border-radius: 30px;
     border-radius: 30px;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
     background: rgba(255, 255, 255, 0.08);
     border: 1px solid rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
     transition: all 0.3s ease;
     overflow: hidden;
     overflow: hidden;
     box-sizing: border-box;
     box-sizing: border-box;
}
}


/* Hover natif du lien */
/* Hover */
.minicard-wrapper:hover .minicard,
.minicard-wrapper:hover .minicard {
.minicard-wrapper a:hover .minicard {
     transform: translateY(-2px);
     transform: translateY(-2px);
     box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
     box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
     border-color: rgba(74, 158, 255, 0.4);
     background: rgba(74, 158, 255, 0.15);
     background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%);
     border-color: rgba(74, 158, 255, 0.5);
}
}


Ligne 44 : Ligne 44 :
     height: 100%;
     height: 100%;
     z-index: 0;
     z-index: 0;
    display: block;
}
}


Ligne 54 : Ligne 53 :
}
}


.minicard-background .thumbinner {
.minicard-background .thumbinner,
.minicard-background .thumbcaption {
     display: none;
     display: none;
}
.minicard-background .image {
    display: block;
    width: 100%;
    height: 100%;
}
}


Ligne 72 : Ligne 66 :
     height: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.6);
     background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    display: block;
}
}


Ligne 83 : Ligne 75 :
     font-weight: 600;
     font-weight: 600;
     font-size: 0.95rem;
     font-size: 0.95rem;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
     white-space: nowrap;
     white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
}


/* Sans image */
/* Sans image */
.minicard.minicard--no-image {
.minicard--no-image {
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
     background: rgba(255, 255, 255, 0.05);
}
}


.minicard-wrapper:hover .minicard.minicard--no-image,
.minicard-wrapper:hover .minicard--no-image {
.minicard-wrapper a:hover .minicard.minicard--no-image {
     background: rgba(74, 158, 255, 0.12);
     background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
}
}


Ligne 104 : Ligne 92 :
     display: grid;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 60px;
     gap: 12px;
     gap: 12px;
     margin: 1rem 0;
     margin: 1rem 0;
}
}


/* Fix pour les liens MediaWiki */
/* Cacher icône lien externe */
.minicard-wrapper .mw-file-description {
.minicard-wrapper.external::after {
    display: none !important;
}
 
.minicard-wrapper .external,
.minicard-wrapper a.external {
    background: none !important;
    padding-right: 0 !important;
}
 
/* Icône lien externe cachée */
.minicard-wrapper .external::after {
     display: none !important;
     display: none !important;
}
}

Version du 11 novembre 2025 à 13:47

/* MiniCard - Wrapper lien */
.minicard-wrapper {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}

.minicard-wrapper:hover {
    text-decoration: none;
}

/* Card principale */
.minicard {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 60px;
    padding: 0 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

/* Hover */
.minicard-wrapper:hover .minicard {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
    background: rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.5);
}

/* Image de fond */
.minicard-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.minicard-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.4);
}

.minicard-background .thumbinner,
.minicard-background .thumbcaption {
    display: none;
}

/* Overlay */
.minicard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Texte */
.minicard-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Sans image */
.minicard--no-image {
    background: rgba(255, 255, 255, 0.05);
}

.minicard-wrapper:hover .minicard--no-image {
    background: rgba(74, 158, 255, 0.12);
}

/* Grid */
.minicard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 1rem 0;
}

/* Cacher icône lien externe */
.minicard-wrapper.external::after {
    display: none !important;
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.