Modèle:MinecraftConnect/styles.css
De Nefald
Autres actions
/* =============================================================================
MINECRAFT CONNECT - Bouton de copie d'adresse serveur
============================================================================= */
/* Conteneur principal */
.mc-connect {
position: relative;
display: inline-flex;
align-items: center;
justify-content: space-between;
min-width: 280px;
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 {
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(4px) brightness(0.4);
}
/* 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%);
}
/* Fond par défaut sans image */
.mc-connect--no-image {
background: linear-gradient(135deg, #2c5530 0%, #1a3a1f 100%);
}
/* Contenu texte */
.mc-connect-content {
position: relative;
z-index: 2;
display: flex;
align-items: center;
gap: 15px;
flex: 1;
color: #ffffff;
}
/* Label */
.mc-connect-label {
font-size: 0.9rem;
font-weight: 500;
opacity: 0.9;
white-space: nowrap;
}
/* Adresse du serveur */
.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;
}
/* 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 {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.5);
transform: scale(1.1);
}
.mc-connect-copy:active {
transform: scale(0.95);
}
/* 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) {
.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); }
}