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)
Aucun résumé des modifications
Hiob (discussion | contributions)
Aucun résumé des modifications
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 1 : Ligne 1 :
/* Modèle MinecraftConnect - Style discret */
/* =============================================================================
.mc-link {
  MINECRAFT CONNECT - Bouton de copie d'adresse serveur
  ============================================================================= */
 
/* Conteneur principal */
.mc-connect {
    position: relative;
     display: inline-flex;
     display: inline-flex;
     align-items: center;
     align-items: center;
     gap: 4px;
     justify-content: space-between;
     white-space: nowrap;
    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);
}
}


.mc-connect {
/* Overlay sombre */
     text-decoration: underline;
.mc-connect-overlay {
     color: #0645ad;
     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:hover {
/* Fond par défaut sans image */
     color: #0b0080;
.mc-connect--no-image {
     background: linear-gradient(135deg, #2c5530 0%, #1a3a1f 100%);
}
}


.mc-copy {
/* Contenu texte */
     display: inline-flex;
.mc-connect-content {
    position: relative;
    z-index: 2;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     gap: 15px;
     width: 20px;
     flex: 1;
     height: 20px;
     color: #ffffff;
    padding: 0;
}
    border: 1px solid #a2a9b1;
 
    border-radius: 3px;
/* Label */
     background: #f8f9fa;
.mc-connect-label {
    cursor: pointer;
     font-size: 0.9rem;
     font-size: 12px;
     font-weight: 500;
     line-height: 1;
     opacity: 0.9;
     transition: all 0.2s;
     white-space: nowrap;
}
}


.mc-copy:hover {
/* Adresse du serveur */
     background: #eaecf0;
.mc-connect-address {
     border-color: #72777d;
    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-copy:active {
/* Bouton copier */
     background: #c8ccd1;
.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-copied {
.mc-connect-copy:hover {
     display: none;
     background: rgba(255, 255, 255, 0.25);
     color: #14866d;
     border-color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
     transform: scale(1.1);
    font-size: 14px;
     animation: fadeInOut 2s;
}
}


.mc-copied.show {
.mc-connect-copy:active {
     display: inline;
     transform: scale(0.95);
}
}


@keyframes fadeInOut {
/* Effet hover global */
     0%, 100% { opacity: 0; }
.mc-connect:hover {
     10%, 90% { opacity: 1; }
     border-color: rgba(85, 255, 85, 0.4);
    box-shadow: 0 4px 16px rgba(85, 255, 85, 0.2);
     transform: translateY(-2px);
}
}


/* Style mobile */
/* Responsive mobile */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .mc-copy {
     .mc-connect {
         width: 24px;
         min-width: 240px;
         height: 24px;
         height: 60px;
         font-size: 14px;
         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.