« Modèle:MinecraftConnect/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
mAucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
/* | /* Conteneur du bouton */ | ||
.mc- | .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 { | .mc-connect-btn:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | |||
} | } | ||
.mc-connect: | .mc-connect-btn:active { | ||
transform: translateY(0); | |||
} | } | ||
.mc- | /* Contenu du bouton */ | ||
display: | .mc-connect-content { | ||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: 8px; | |||
padding: 1rem; | |||
padding: | color: white; | ||
} | |||
.mc-connect-content img { | |||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); | |||
} | } | ||
.mc- | /* Message de confirmation */ | ||
background: | .mc-connect-feedback { | ||
border- | 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- | .mc-connect-feedback.show { | ||
opacity: 1; | |||
} | } | ||
.mc- | /* 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- | .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) { | @media (max-width: 768px) { | ||
.mc- | .mc-connect-wrapper { | ||
width: | width: 100%; | ||
} | } | ||
} | } | ||
Version du 10 novembre 2025 à 07:03
/* 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%;
}
}