« Modèle:MiniCard/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications Balise : Révoqué |
revert Balise : Révocation manuelle |
||
| (4 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 24 : | Ligne 24 : | ||
align-items: center; | align-items: center; | ||
min-width: 180px; | min-width: 180px; | ||
max-width: 300px; | |||
height: 60px; | height: 60px; | ||
margin: 0 12px 12px 0; | |||
vertical-align: top; | |||
} | |||
/* Dans une grille, on retire les marges et on ajuste le display */ | |||
.minicard-grid .minicard { | |||
display: flex; | |||
margin: 0; | |||
min-width: 0; | |||
max-width: none; | |||
width: auto; | |||
} | } | ||
| Ligne 32 : | Ligne 42 : | ||
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 20px rgba(0, 0, 0, 0.4); | ||
} | } | ||
/* | /* Background avec image */ | ||
.minicard-background { | .minicard-background { | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
right: 0; | |||
bottom: 0; | |||
pointer-events: none; | |||
overflow: hidden; | |||
z-index: 0; | z-index: 0; | ||
} | } | ||
| Ligne 49 : | Ligne 61 : | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
transition: transform 0.4s ease; | |||
} | |||
.minicard:hover .minicard-background img { | |||
transform: scale(1.1); | |||
} | } | ||
/* Overlay sombre */ | |||
.minicard-overlay { | .minicard-overlay { | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
right: 0; | |||
bottom: 0; | |||
background: linear-gradient(135deg, rgba(0, 0, 0, 0. | background: linear-gradient( | ||
135deg, | |||
rgba(0, 0, 0, 0.7) 0%, | |||
rgba(0, 0, 0, 0.5) 50%, | |||
rgba(0, 0, 0, 0.7) 100% | |||
); | |||
transition: opacity 0.3s ease; | |||
z-index: 0; | |||
} | |||
.minicard:hover .minicard-overlay { | |||
opacity: 0.6; | |||
} | } | ||
/* | /* Liens internes */ | ||
.minicard-link { | .minicard > a:not(.minicard-link-external) { | ||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
padding: 0 16px; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
| Ligne 81 : | Ligne 105 : | ||
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; | ||
} | |||
.minicard:hover > a:not(.minicard-link-external) { | |||
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); | |||
} | |||
/* Liens externes */ | |||
.minicard-link-external { | |||
position: relative; | |||
z-index: 1; | |||
padding: 0 16px; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex !important; | ||
align-items: center; | align-items: center; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
| Ligne 95 : | Ligne 130 : | ||
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); | 0 0 8px rgba(0, 0, 0, 0.6); | ||
font-weight: 600; | |||
font-size: 0.95rem; | |||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
cursor: pointer; | |||
} | } | ||
.minicard:hover .minicard-link-external { | |||
.minicard:hover .minicard-link | |||
padding-left: 20px; | padding-left: 20px; | ||
text-shadow: | text-shadow: | ||
| Ligne 114 : | Ligne 142 : | ||
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); | 0 0 12px rgba(74, 158, 255, 0.5); | ||
} | |||
/* Icône externe */ | |||
.minicard-external-icon { | |||
margin-left: 4px; | |||
font-size: 0.85rem; | |||
opacity: 0.7; | |||
transition: opacity 0.3s ease; | |||
} | |||
.minicard:hover .minicard-external-icon { | |||
opacity: 1; | |||
} | } | ||
| Ligne 121 : | Ligne 161 : | ||
z-index: 1; | z-index: 1; | ||
padding: 0 16px; | padding: 0 16px; | ||
color: #ffffff; | |||
color: #ffffff | |||
text-shadow: | text-shadow: | ||
-1px -1px 4px rgba(0, 0, 0, 0.8), | -1px -1px 4px rgba(0, 0, 0, 0.8), | ||
| Ligne 132 : | Ligne 168 : | ||
} | } | ||
/* | /* Version sans image (fallback) */ | ||
.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 155 : | Ligne 191 : | ||
} | } | ||
.minicard-link { | .minicard > a:not(.minicard-link-external), | ||
.minicard-link-external, | |||
.minicard-text { | |||
padding: 0 12px; | padding: 0 12px; | ||
} | |||
.minicard-link-external { | |||
font-size: 0.85rem; | |||
} | } | ||
} | } | ||
| Ligne 167 : | Ligne 209 : | ||
.minicard { | .minicard { | ||
min-width: 0; | min-width: 0; | ||
margin-right: 8px; | |||
} | } | ||
} | } | ||