« Modèle:MinecraftConnect/styles.css » : différence entre les versions
De Nefald
Autres actions
mAucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
/* Conteneur | /* ============================================================================= | ||
.mc-connect | MINECRAFT CONNECT - Bouton de copie d'adresse serveur | ||
============================================================================= */ | |||
/* Conteneur principal */ | |||
.mc-connect { | |||
position: relative; | position: relative; | ||
min-height: | display: inline-flex; | ||
align-items: center; | |||
border-radius: | justify-content: space-between; | ||
overflow: | min-width: 280px; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0. | height: 70px; | ||
padding: 0 20px; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
border: 2px solid rgba(255, 255, 255, 0.1); | |||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
cursor: default; | |||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); | |||
} | |||
/* Fond avec image */ | |||
.mc-connect-background { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
z-index: 1; | |||
} | } | ||
.mc-connect-background img { | |||
.mc-connect- | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
object-fit: cover; | |||
filter: blur(4px) brightness(0.4); | |||
} | } | ||
.mc-connect- | /* Overlay sombre */ | ||
.mc-connect-overlay { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%); | |||
} | } | ||
.mc-connect- | /* Fond par défaut sans image */ | ||
.mc-connect--no-image { | |||
background: linear-gradient(135deg, #2c5530 0%, #1a3a1f 100%); | |||
} | } | ||
/* Contenu | /* Contenu texte */ | ||
.mc-connect-content { | .mc-connect-content { | ||
position: relative; | |||
z-index: 2; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 15px; | |||
gap: | flex: 1; | ||
color: #ffffff; | |||
color: | |||
} | } | ||
.mc-connect- | /* Label */ | ||
.mc-connect-label { | |||
font-size: 0.9rem; | |||
font-weight: 500; | |||
opacity: 0.9; | |||
white-space: nowrap; | |||
} | } | ||
/* | /* Adresse du serveur */ | ||
.mc-connect- | .mc-connect-address { | ||
font-family: 'Courier New', monospace; | |||
font-size: 1.1rem; | |||
font-weight: 700; | |||
color: #55ff55; | |||
text-shadow: 0 0 8px rgba(85, 255, 85, 0.5); | |||
letter-spacing: 0.5px; | |||
user-select: all; | |||
padding: 4px 8px; | |||
background: rgba(0, 0, 0, 0.3); | |||
border-radius: 4px; | |||
white-space: nowrap; | |||
} | } | ||
.mc-connect- | /* Bouton copier */ | ||
.mc-connect-copy { | |||
position: relative; | |||
z-index: 2; | |||
background: rgba(255, 255, 255, 0.15); | |||
border: 1px solid rgba(255, 255, 255, 0.3); | |||
border-radius: 6px; | |||
padding: 8px 12px; | |||
font-size: 1.2rem; | |||
cursor: pointer; | |||
transition: all 0.2s ease; | |||
color: #fff; | |||
min-width: 40px; | |||
text-align: center; | |||
} | } | ||
.mc-connect-copy:hover { | |||
.mc-connect- | background: rgba(255, 255, 255, 0.25); | ||
border-color: rgba(255, 255, 255, 0.5); | |||
transform: scale(1.1); | |||
. | |||
. | |||
. | |||
} | } | ||
.mc-connect- | .mc-connect-copy:active { | ||
transform: scale(0.95); | |||
} | } | ||
.mc-connect | /* Effet hover global */ | ||
.mc-connect:hover { | |||
border-color: rgba(85, 255, 85, 0.4); | |||
box-shadow: 0 4px 16px rgba(85, 255, 85, 0.2); | |||
transform: translateY(-2px); | |||
} | } | ||
/* | /* Responsive mobile */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.mc-connect- | .mc-connect { | ||
min-width: 240px; | |||
height: 60px; | |||
padding: 0 15px; | |||
} | |||
.mc-connect-label { | |||
font-size: 0.8rem; | |||
} | |||
.mc-connect-address { | |||
font-size: 0.95rem; | |||
} | |||
.mc-connect-copy { | |||
padding: 6px 10px; | |||
font-size: 1rem; | |||
} | } | ||
} | |||
/* Animation de succès */ | |||
@keyframes success-pulse { | |||
0%, 100% { transform: scale(1); } | |||
50% { transform: scale(1.1); } | |||
} | } | ||