Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Modèle:MinecraftConnect/styles.css » : différence entre les versions

De Nefald
Hiob (discussion | contributions)
mAucun résumé des modifications
Hiob (discussion | contributions)
Aucun résumé des modifications
 
Ligne 1 : Ligne 1 :
/* Conteneur du bouton */
/* =============================================================================
.mc-connect-wrapper {
  MINECRAFT CONNECT - Bouton de copie d'adresse serveur
  ============================================================================= */
 
/* Conteneur principal */
.mc-connect {
     position: relative;
     position: relative;
     min-height: 80px;
    display: inline-flex;
     width: 300px;
    align-items: center;
     border-radius: 12px;
    justify-content: space-between;
     overflow: visible;
     min-width: 280px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 70px;
    background: #62b47a; /* Couleur Minecraft par défaut */
     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;
}
}


/* Bouton principal */
.mc-connect-background img {
.mc-connect-btn {
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     min-height: 80px;
     object-fit: cover;
     border: none;
     filter: blur(4px) brightness(0.4);
    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 {
/* Overlay sombre */
     transform: translateY(-2px);
.mc-connect-overlay {
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    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-btn:active {
/* Fond par défaut sans image */
     transform: translateY(0);
.mc-connect--no-image {
     background: linear-gradient(135deg, #2c5530 0%, #1a3a1f 100%);
}
}


/* Contenu du bouton */
/* Contenu texte */
.mc-connect-content {
.mc-connect-content {
    position: relative;
    z-index: 2;
     display: flex;
     display: flex;
    flex-direction: column;
     align-items: center;
     align-items: center;
    justify-content: center;
     gap: 15px;
     gap: 8px;
     flex: 1;
     padding: 1rem;
     color: #ffffff;
     color: white;
}
}


.mc-connect-content img {
/* Label */
     filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
.mc-connect-label {
     font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}
}


/* Message de confirmation */
/* Adresse du serveur */
.mc-connect-feedback {
.mc-connect-address {
     position: absolute;
     font-family: 'Courier New', monospace;
     top: 50%;
     font-size: 1.1rem;
     left: 50%;
     font-weight: 700;
     transform: translate(-50%, -50%);
     color: #55ff55;
     background: rgba(20, 134, 109, 0.95);
     text-shadow: 0 0 8px rgba(85, 255, 85, 0.5);
     color: white;
     letter-spacing: 0.5px;
    padding: 8px 16px;
     user-select: all;
    border-radius: 8px;
     padding: 4px 8px;
    font-weight: bold;
     background: rgba(0, 0, 0, 0.3);
    font-size: 14px;
    border-radius: 4px;
    opacity: 0;
    white-space: nowrap;
     pointer-events: none;
     transition: opacity 0.3s;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
}


.mc-connect-feedback.show {
/* Bouton copier */
     opacity: 1;
.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;
}
}


/* Couleurs prédéfinies */
.mc-connect-copy:hover {
.mc-connect--minecraft { background: #62b47a; }
    background: rgba(255, 255, 255, 0.25);
.mc-connect--primary { background: #007bff; }
    border-color: rgba(255, 255, 255, 0.5);
.mc-connect--success { background: #28a745; }
    transform: scale(1.1);
.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 {
.mc-connect-copy:active {
     margin-left: auto;
     transform: scale(0.95);
    margin-right: auto;
}
}


.mc-connect--align-right {
/* Effet hover global */
     margin-left: auto;
.mc-connect:hover {
     margin-right: 0;
     border-color: rgba(85, 255, 85, 0.4);
     box-shadow: 0 4px 16px rgba(85, 255, 85, 0.2);
    transform: translateY(-2px);
}
}


/* Mobile */
/* Responsive mobile */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .mc-connect-wrapper {
     .mc-connect {
         width: 100%;
        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); }
}
}

Dernière version du 14 novembre 2025 à 17:51

/* =============================================================================
   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); }
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.