Modèle:MinecraftConnect/styles.css
De Nefald
Autres actions
/* Conteneur du bouton */
.mc-connect-wrapper {
position: relative;
min-height: 80px;
width: 300px;
border-radius: 12px;
overflow: visible;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
background: #62b47a; /* Couleur Minecraft par défaut */
}
/* Bouton principal */
.mc-connect-btn {
width: 100%;
height: 100%;
min-height: 80px;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: transparent;
padding: 0;
}
.mc-connect-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.mc-connect-btn:active {
transform: translateY(0);
}
/* Contenu du bouton */
.mc-connect-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 1rem;
color: white;
}
.mc-connect-content img {
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
/* Message de confirmation */
.mc-connect-feedback {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(20, 134, 109, 0.95);
color: white;
padding: 8px 16px;
border-radius: 8px;
font-weight: bold;
font-size: 14px;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.mc-connect-feedback.show {
opacity: 1;
}
/* Couleurs prédéfinies */
.mc-connect--minecraft { background: #62b47a; }
.mc-connect--primary { background: #007bff; }
.mc-connect--success { background: #28a745; }
.mc-connect--danger { background: #dc3545; }
.mc-connect--warning { background: #ffc107; color: #000 !important; }
.mc-connect--info { background: #17a2b8; }
.mc-connect--dark { background: #343a40; }
/* Alignements */
.mc-connect--align-left {
margin-right: auto;
margin-left: 0;
}
.mc-connect--align-center {
margin-left: auto;
margin-right: auto;
}
.mc-connect--align-right {
margin-left: auto;
margin-right: 0;
}
/* Mobile */
@media (max-width: 768px) {
.mc-connect-wrapper {
width: 100%;
}
}