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)
Page créée avec « Modèle MinecraftConnect : .minecraft-connect-wrapper { display: inline-flex; align-items: center; gap: 8px; position: relative; } .minecraft-connect-link { display: inline-flex; align-items: center; padding: 8px 16px; background: linear-gradient(135deg, #3a8c3e 0%, #2d6b30 100%); color: white !important; text-decoration: none !important; border-radius: 6px; font-weight: 600; font-size: 14px; transition... »
 
Hiob (discussion | contributions)
Aucun résumé des modifications
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/* Modèle MinecraftConnect */
/* =============================================================================
.minecraft-connect-wrapper {
  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: 8px;
     justify-content: space-between;
     position: relative;
    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;
}
}


.minecraft-connect-link {
.mc-connect-background img {
     display: inline-flex;
     width: 100%;
    align-items: center;
     height: 100%;
     padding: 8px 16px;
     object-fit: cover;
    background: linear-gradient(135deg, #3a8c3e 0%, #2d6b30 100%);
     filter: blur(4px) brightness(0.4);
    color: white !important;
     text-decoration: none !important;
     border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #2d6b30;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
}


.minecraft-connect-link:hover {
/* Overlay sombre */
     background: linear-gradient(135deg, #4aa44e 0%, #3a8c3e 100%);
.mc-connect-overlay {
     transform: translateY(-2px);
    position: absolute;
     box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    top: 0;
    border-color: #4aa44e;
     left: 0;
    width: 100%;
     height: 100%;
     background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}
}


.minecraft-connect-link:active {
/* Fond par défaut sans image */
     transform: translateY(0);
.mc-connect--no-image {
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
     background: linear-gradient(135deg, #2c5530 0%, #1a3a1f 100%);
}
}


.minecraft-copy-btn {
/* Contenu texte */
     padding: 8px 12px;
.mc-connect-content {
     background: #ffffff;
     position: relative;
     border: 2px solid #ddd;
     z-index: 2;
     border-radius: 6px;
     display: flex;
     cursor: pointer;
     align-items: center;
     font-size: 16px;
     gap: 15px;
     transition: all 0.3s ease;
     flex: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
     color: #ffffff;
}
}


.minecraft-copy-btn:hover {
/* Label */
     background: #f0f0f0;
.mc-connect-label {
     border-color: #3a8c3e;
     font-size: 0.9rem;
     transform: scale(1.1);
     font-weight: 500;
     opacity: 0.9;
    white-space: nowrap;
}
}


.minecraft-copy-btn:active {
/* Adresse du serveur */
     transform: scale(0.95);
.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;
}
}


.minecraft-copied-msg {
/* Bouton copier */
     position: absolute;
.mc-connect-copy {
     right: -80px;
     position: relative;
     background: #2d6b30;
     z-index: 2;
     color: white;
     background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
     border: 1px solid rgba(255, 255, 255, 0.3);
     border-radius: 6px;
     border-radius: 6px;
     font-size: 13px;
     padding: 8px 12px;
     font-weight: 600;
     font-size: 1.2rem;
     opacity: 0;
     cursor: pointer;
    pointer-events: none;
     transition: all 0.2s ease;
     transition: opacity 0.3s ease;
     color: #fff;
     white-space: nowrap;
    min-width: 40px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.2);
     text-align: center;
}
}


.minecraft-copied-msg.show {
.mc-connect-copy:hover {
     opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
     transform: scale(1.1);
}
}


/* Animation de feedback */
.mc-connect-copy:active {
@keyframes copySuccess {
     transform: scale(0.95);
     0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
}


.minecraft-copy-btn.copied {
/* Effet hover global */
     animation: copySuccess 0.3s ease;
.mc-connect:hover {
     background: #4aa44e;
     border-color: rgba(85, 255, 85, 0.4);
     border-color: #3a8c3e;
     box-shadow: 0 4px 16px rgba(85, 255, 85, 0.2);
     transform: translateY(-2px);
}
}


/* Responsive */
/* Responsive mobile */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .minecraft-connect-wrapper {
     .mc-connect {
         flex-direction: column;
         min-width: 240px;
         align-items: stretch;
         height: 60px;
         gap: 6px;
         padding: 0 15px;
     }
     }
      
      
     .minecraft-copied-msg {
     .mc-connect-label {
         position: static;
         font-size: 0.8rem;
        margin-top: 4px;
        text-align: center;
     }
     }
   
    .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.