« Modèle:MiniCard/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications Balise : Révoqué |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* | /* MiniCard - Wrapper pour gérer le lien */ | ||
.minicard-wrapper { | |||
display: inline-block; | |||
text-decoration: none !important; | |||
} | |||
.minicard-wrapper a { | |||
.minicard- | text-decoration: none !important; | ||
color: inherit !important; | |||
} | } | ||
/* | /* Card principale */ | ||
.minicard { | .minicard { | ||
position: relative; | position: relative; | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | |||
min-width: 180px; | min-width: 180px; | ||
height: 60px; | height: 60px; | ||
background: linear-gradient(135deg, rgba(255, 255, 255, 0. | padding: 0 20px; | ||
border-radius: 30px; | |||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%); | |||
border: 1px solid rgba(255, 255, 255, 0.18); | |||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
overflow: hidden; | |||
box-sizing: border-box; | |||
} | } | ||
.minicard:hover { | /* Hover natif du lien */ | ||
.minicard-wrapper:hover .minicard, | |||
.minicard-wrapper a:hover .minicard { | |||
transform: translateY(-2px); | |||
box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3); | |||
border-color: rgba(74, 158, 255, 0.4); | border-color: rgba(74, 158, 255, 0.4); | ||
background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%); | |||
} | } | ||
| Ligne 43 : | Ligne 44 : | ||
height: 100%; | height: 100%; | ||
z-index: 0; | z-index: 0; | ||
display: block; | |||
} | } | ||
| Ligne 49 : | Ligne 51 : | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
filter: blur(8px) brightness(0.4); | |||
} | } | ||
.minicard- | .minicard-background .thumbinner { | ||
display: none; | |||
} | } | ||
.minicard-background .image { | |||
.minicard- | display: block; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
} | } | ||
/* | /* Overlay */ | ||
.minicard- | .minicard-overlay { | ||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: rgba(0, 0, 0, 0.6); | |||
pointer-events: none; | |||
display: block; | |||
} | } | ||
/* Texte */ | |||
/* Texte | |||
.minicard-text { | .minicard-text { | ||
position: relative; | position: relative; | ||
z-index: | z-index: 2; | ||
color: #fff; | |||
font-weight: 600; | |||
font-size: 0.95rem; | |||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-shadow: | text-overflow: ellipsis; | ||
max-width: 100%; | |||
} | } | ||
| Ligne 137 : | Ligne 95 : | ||
} | } | ||
.minicard.minicard--no-image:hover { | .minicard-wrapper:hover .minicard.minicard--no-image, | ||
.minicard-wrapper a:hover .minicard.minicard--no-image { | |||
background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%); | background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%); | ||
} | } | ||
/* | /* Grid */ | ||
.minicard-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); | |||
grid-auto-rows: 60px; | |||
gap: 12px; | |||
margin: 1rem 0; | |||
} | |||
/* Fix pour les liens MediaWiki */ | |||
.minicard-wrapper .mw-file-description { | |||
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; | |||
} | } | ||
Version du 11 novembre 2025 à 13:40
/* MiniCard - Wrapper pour gérer le lien */
.minicard-wrapper {
display: inline-block;
text-decoration: none !important;
}
.minicard-wrapper a {
text-decoration: none !important;
color: inherit !important;
}
/* 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: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
border: 1px solid rgba(255, 255, 255, 0.18);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
box-sizing: border-box;
}
/* Hover natif du lien */
.minicard-wrapper:hover .minicard,
.minicard-wrapper a:hover .minicard {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
border-color: rgba(74, 158, 255, 0.4);
background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%);
}
/* Image de fond */
.minicard-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
display: block;
}
.minicard-background img {
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(8px) brightness(0.4);
}
.minicard-background .thumbinner {
display: none;
}
.minicard-background .image {
display: block;
width: 100%;
height: 100%;
}
/* Overlay */
.minicard-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
pointer-events: none;
display: block;
}
/* 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.3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
/* Sans image */
.minicard.minicard--no-image {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.minicard-wrapper:hover .minicard.minicard--no-image,
.minicard-wrapper a:hover .minicard.minicard--no-image {
background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
}
/* Grid */
.minicard-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
grid-auto-rows: 60px;
gap: 12px;
margin: 1rem 0;
}
/* Fix pour les liens MediaWiki */
.minicard-wrapper .mw-file-description {
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;
}