Zum Inhalt springen

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

Aus Besorgte Hausfrauen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
.js-foto-button {
/* Der Container, der die Buttons hält und positioniert */
    /* WICHTIG: Damit der Button über ALLEM liegt und klickbar ist */
.custom-button-wrapper {
     position: fixed;
     position: fixed;
     z-index: 2147483647 !important; /* Der technisch höchstmögliche Wert */
     z-index: 99999 !important;
     cursor: pointer; /* Zeigt die Hand beim Drüberfahren */
    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;
      
      
    /* Design */
     background-color: #d33; /* Rot */
     background-color: #d33;
     color: #ffffff !important;
     color: #ffffff;
     font-family: sans-serif;
     font-family: sans-serif;
     font-weight: bold;
     font-weight: bold;
     text-transform: uppercase;
     text-transform: uppercase;
     text-align: center;
     text-align: center;
    text-decoration: none !important;
     box-shadow: 0 4px 8px rgba(0,0,0,0.5);
     box-shadow: 0 4px 8px rgba(0,0,0,0.5);
     border: 2px solid white; /* Weißer Rand macht ihn sichtbarer */
     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);
}
}


/* --- DESKTOP (PC/Laptop) --- */
/* --- PC / DESKTOP --- */
@media screen and (min-width: 769px) {
@media screen and (min-width: 769px) {
     .js-foto-button {
     .custom-button-wrapper {
         top: 80px;     /* Unterhalb der Kopfzeile */
         top: 80px;
         right: 20px;   /* Ganz rechts am Rand */
         right: 20px;
    }
   
    .js-custom-button {
         padding: 10px 20px;
         padding: 10px 20px;
         border-radius: 5px;
         border-radius: 5px;
Zeile 27: Zeile 48:
}
}


/* --- HANDY (Mobile) --- */
/* --- HANDY / MOBILE --- */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
     .js-foto-button {
     .custom-button-wrapper {
         top: auto;     /* Nicht oben */
         top: auto;
         bottom: 30px;   /* Sondern unten */
         bottom: 30px; /* Abstand vom unteren Rand */
         right: 20px;   /* Rechts */
         right: 20px;
         padding: 15px 20px;
    }
         border-radius: 50px; /* Rund */
   
         font-size: 16px;
    .js-custom-button {
         padding: 12px 20px;
         border-radius: 50px; /* Pillen-Form auf Handy */
         font-size: 14px;
     }
     }
}
/* Hover-Effekt */
.js-foto-button:hover {
    background-color: #ff0000;
    transform: scale(1.05);
}
}

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;
    }
}