« Modèle:MiniCard/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications Balise : Révoqué |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* MiniCard - Wrapper | /* MiniCard - Wrapper lien */ | ||
.minicard-wrapper { | .minicard-wrapper { | ||
display: inline- | display: inline-flex; | ||
text-decoration: none | text-decoration: none; | ||
color: inherit; | |||
} | } | ||
.minicard-wrapper | .minicard-wrapper:hover { | ||
text-decoration: none | text-decoration: none; | ||
} | } | ||
| Ligne 20 : | Ligne 20 : | ||
padding: 0 20px; | padding: 0 20px; | ||
border-radius: 30px; | border-radius: 30px; | ||
background: | background: rgba(255, 255, 255, 0.08); | ||
border: 1px solid rgba(255, 255, 255, 0.2); | |||
transition: all 0.3s | 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 | /* Hover */ | ||
.minicard-wrapper | .minicard-wrapper:hover .minicard { | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 8px 24px rgba(74, 158, 255, 0. | 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); | |||
} | } | ||
| Ligne 44 : | Ligne 44 : | ||
height: 100%; | height: 100%; | ||
z-index: 0; | z-index: 0; | ||
} | } | ||
| Ligne 54 : | Ligne 53 : | ||
} | } | ||
.minicard-background .thumbinner { | .minicard-background .thumbinner, | ||
.minicard-background .thumbcaption { | |||
display: none; | display: none; | ||
} | } | ||
| Ligne 72 : | Ligne 66 : | ||
height: 100%; | height: 100%; | ||
background: rgba(0, 0, 0, 0.6); | background: rgba(0, 0, 0, 0.6); | ||
} | } | ||
| 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. | text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* Sans image */ | /* Sans image */ | ||
.minicard--no-image { | |||
background: | background: rgba(255, 255, 255, 0.05); | ||
} | } | ||
.minicard-wrapper:hover | .minicard-wrapper:hover .minicard--no-image { | ||
background: rgba(74, 158, 255, 0.12); | |||
background: | |||
} | } | ||
| 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)); | ||
gap: 12px; | gap: 12px; | ||
margin: 1rem 0; | margin: 1rem 0; | ||
} | } | ||
/* | /* Cacher icône lien externe */ | ||
.minicard-wrapper.external::after { | |||
.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;
}