« Modèle:MiniCard/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications Balise : Révoqué |
mAucun résumé des modifications Balise : Révoqué |
||
| Ligne 24 : | Ligne 24 : | ||
align-items: center; | align-items: center; | ||
min-width: 180px; | min-width: 180px; | ||
height: 60px; | height: 60px; | ||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%); | |||
backdrop-filter: blur(10px); | |||
} | } | ||
.minicard:hover { | .minicard:hover { | ||
border-color: rgba(74, 158, 255, 0.4); | border-color: rgba(74, 158, 255, 0.4); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 8px | box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); | ||
} | } | ||
/* | /* Image de fond */ | ||
.minicard-background { | .minicard-background { | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: 100%; | |||
height: 100%; | |||
z-index: 0; | z-index: 0; | ||
} | } | ||
| Ligne 66 : | Ligne 49 : | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
opacity: 0.4; | |||
} | } | ||
.minicard-overlay { | .minicard-overlay { | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: 100%; | |||
height: 100%; | |||
background: linear-gradient(135deg, rgba(0,0,0,0. | background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%); | ||
} | } | ||
/* Conteneur de lien */ | |||
.minicard-link { | |||
/* | |||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
padding: 0 16px; | |||
} | |||
/* Liens internes */ | |||
.minicard-link a:not(.external) { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
| Ligne 105 : | Ligne 81 : | ||
0 0 8px rgba(0, 0, 0, 0.6); | 0 0 8px rgba(0, 0, 0, 0.6); | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
} | |||
/* Liens externes */ | |||
.minicard-link a.external { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
| Ligne 127 : | Ligne 96 : | ||
0 0 8px rgba(0, 0, 0, 0.6); | 0 0 8px rgba(0, 0, 0, 0.6); | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
width: 100%; | |||
height: 100%; | |||
display: flex; | |||
align-items: center; | |||
} | } | ||
.minicard:hover .minicard- | /* Masquer l'icône de lien externe par défaut de MediaWiki */ | ||
.minicard-link a.external::after { | |||
display: none !important; | |||
} | |||
/* Hover sur tous les liens */ | |||
.minicard:hover .minicard-link a { | |||
padding-left: 20px; | padding-left: 20px; | ||
text-shadow: | |||
-1px -1px 6px rgba(0, 0, 0, 0.9), | |||
1px 1px 6px rgba(0, 0, 0, 0.9), | |||
0 0 12px rgba(74, 158, 255, 0.5); | |||
} | } | ||
| Ligne 139 : | Ligne 121 : | ||
z-index: 1; | z-index: 1; | ||
padding: 0 16px; | padding: 0 16px; | ||
color: #ffffff; | width: 100%; | ||
height: 100%; | |||
display: flex; | |||
align-items: center; | |||
color: #ffffff !important; | |||
text-shadow: | text-shadow: | ||
-1px -1px 4px rgba(0, 0, 0, 0.8), | -1px -1px 4px rgba(0, 0, 0, 0.8), | ||
| Ligne 146 : | Ligne 132 : | ||
} | } | ||
/* | /* Sans image */ | ||
.minicard.minicard--no-image { | .minicard.minicard--no-image { | ||
background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); | background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%); | ||
} | } | ||
| Ligne 169 : | Ligne 155 : | ||
} | } | ||
.minicard-link { | |||
padding: 0 12px; | padding: 0 12px; | ||
} | } | ||
| Ligne 183 : | Ligne 167 : | ||
.minicard { | .minicard { | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
} | } | ||
Version du 11 novembre 2025 à 13:29
/* =============================================================================
MINICARD - Navigation Pills
============================================================================= */
/* Conteneur de grille */
.minicard-grid {
display: grid;
gap: 12px;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
grid-auto-rows: 60px;
margin: 0 0 24px 0;
}
/* MiniCard individuelle */
.minicard {
position: relative;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
overflow: hidden;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
min-width: 180px;
height: 60px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
backdrop-filter: blur(10px);
}
.minicard:hover {
border-color: rgba(74, 158, 255, 0.4);
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* 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;
opacity: 0.4;
}
.minicard-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
}
/* Conteneur de lien */
.minicard-link {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding: 0 16px;
}
/* Liens internes */
.minicard-link a:not(.external) {
color: #ffffff !important;
text-decoration: none !important;
text-shadow:
-1px -1px 4px rgba(0, 0, 0, 0.8),
1px 1px 4px rgba(0, 0, 0, 0.8),
0 0 8px rgba(0, 0, 0, 0.6);
transition: all 0.3s ease;
width: 100%;
height: 100%;
display: flex;
align-items: center;
}
/* Liens externes */
.minicard-link a.external {
color: #ffffff !important;
text-decoration: none !important;
text-shadow:
-1px -1px 4px rgba(0, 0, 0, 0.8),
1px 1px 4px rgba(0, 0, 0, 0.8),
0 0 8px rgba(0, 0, 0, 0.6);
transition: all 0.3s ease;
width: 100%;
height: 100%;
display: flex;
align-items: center;
}
/* Masquer l'icône de lien externe par défaut de MediaWiki */
.minicard-link a.external::after {
display: none !important;
}
/* Hover sur tous les liens */
.minicard:hover .minicard-link a {
padding-left: 20px;
text-shadow:
-1px -1px 6px rgba(0, 0, 0, 0.9),
1px 1px 6px rgba(0, 0, 0, 0.9),
0 0 12px rgba(74, 158, 255, 0.5);
}
/* Texte sans lien */
.minicard-text {
position: relative;
z-index: 1;
padding: 0 16px;
width: 100%;
height: 100%;
display: flex;
align-items: center;
color: #ffffff !important;
text-shadow:
-1px -1px 4px rgba(0, 0, 0, 0.8),
1px 1px 4px rgba(0, 0, 0, 0.8),
0 0 8px rgba(0, 0, 0, 0.6);
}
/* 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.minicard--no-image:hover {
background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
}
/* Responsive */
@media (max-width: 768px) {
.minicard-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
grid-auto-rows: 52px;
gap: 8px;
}
.minicard {
font-size: 0.85rem;
min-width: 140px;
height: 52px;
}
.minicard-link {
padding: 0 12px;
}
}
@media (max-width: 480px) {
.minicard-grid {
grid-template-columns: repeat(2, 1fr);
}
.minicard {
min-width: 0;
}
}