Zum Inhalt springen

MediaWiki:Vector-2022.css: Unterschied zwischen den Versionen

Aus Besorgte Hausfrauen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Den Menüpunkt "Fotos" aus der Leiste herauslösen und fixieren */
/* Der Container, der die Buttons hält und positioniert */
#n-Fotos {
.custom-button-wrapper {
     position: fixed !important;
     position: fixed;
     top: 80px;       /* Abstand von oben - etwas tiefer, damit es nicht das Benutzermenü verdeckt */
    z-index: 99999 !important;
     right: 20px;     /* Abstand von rechts */
     display: flex;           /* Flexbox aktiviert */
     z-index: 999;   /* Ganz weit vorne */
     flex-direction: column; /* Buttons untereinander stapeln */
     list-style: none !important; /* Keine Aufzählungspunkte */
     gap: 10px;               /* Abstand zwischen den Buttons */
    margin: 0 !important;
     pointer-events: none;   /* Der Container selbst blockiert keine Klicks drumherum */
}
}


/* Den eigentlichen Link zum Button stylen */
/* Das Aussehen der Buttons */
#n-Fotos a {
.js-custom-button {
     display: block !important;
     pointer-events: auto;    /* Die Buttons müssen klickbar sein */
     background-color: #d33; /* Roter Hintergrund */
    cursor: pointer;
     color: #fff !important; /* Weiße Schrift */
   
     padding: 12px 25px !important; /* Größe des Buttons */
     background-color: #d33; /* Rot */
     color: #ffffff !important;
     font-family: sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
     text-decoration: none !important;
     text-decoration: none !important;
     font-weight: bold;
     box-shadow: 0 4px 8px rgba(0,0,0,0.5);
     font-size: 16px;
     border: 2px solid white;
     border-radius: 8px; /* Runde Ecken */
      
     box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* Schatten für 3D-Effekt */
    /* Animation für Hover */
     text-transform: uppercase; /* Großbuchstaben */
     transition: transform 0.2s, background-color 0.2s;
}
 
/* Hover-Effekt für beide Buttons */
.js-custom-button:hover {
     background-color: #ff0000;
    transform: scale(1.05);
}
}


/* Hover-Effekt (Maus drüber) */
/* --- PC / DESKTOP --- */
#n-Fotos a:hover {
@media screen and (min-width: 769px) {
     background-color: #f00; /* Helleres Rot */
     .custom-button-wrapper {
     transform: scale(1.05); /* Leicht vergrößern */
        top: 80px;
        right: 20px;
     }
   
    .js-custom-button {
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 14px;
    }
}
}


/* Das Icon neben dem Text ausblenden (falls vorhanden) */
/* --- HANDY / MOBILE --- */
#n-Fotos a::before {
@media screen and (max-width: 768px) {
    display: none !important;
    .custom-button-wrapper {
        top: auto;
        bottom: 30px; /* Abstand vom unteren Rand */
        right: 20px;
    }
   
    .js-custom-button {
        padding: 12px 20px;
        border-radius: 50px; /* Pillen-Form auf Handy */
        font-size: 14px;
    }
}
}

Aktuelle Version vom 27. November 2025, 15:09 Uhr

/* Der Container, der die Buttons hält und positioniert */
.custom-button-wrapper {
    position: fixed;
    z-index: 99999 !important;
    display: flex;           /* Flexbox aktiviert */
    flex-direction: column;  /* Buttons untereinander stapeln */
    gap: 10px;               /* Abstand zwischen den Buttons */
    pointer-events: none;    /* Der Container selbst blockiert keine Klicks drumherum */
}

/* Das Aussehen der Buttons */
.js-custom-button {
    pointer-events: auto;    /* Die Buttons müssen klickbar sein */
    cursor: pointer;
    
    background-color: #d33;  /* Rot */
    color: #ffffff !important;
    font-family: sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    border: 2px solid white;
    
    /* Animation für Hover */
    transition: transform 0.2s, background-color 0.2s;
}

/* Hover-Effekt für beide Buttons */
.js-custom-button:hover {
    background-color: #ff0000;
    transform: scale(1.05);
}

/* --- PC / DESKTOP --- */
@media screen and (min-width: 769px) {
    .custom-button-wrapper {
        top: 80px;
        right: 20px;
    }
    
    .js-custom-button {
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 14px;
    }
}

/* --- HANDY / MOBILE --- */
@media screen and (max-width: 768px) {
    .custom-button-wrapper {
        top: auto;
        bottom: 30px; /* Abstand vom unteren Rand */
        right: 20px;
    }
    
    .js-custom-button {
        padding: 12px 20px;
        border-radius: 50px; /* Pillen-Form auf Handy */
        font-size: 14px;
    }
}