Zum Inhalt springen

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

Aus Besorgte Hausfrauen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Styling für den JavaScript-Button */
.js-foto-button {
.js-foto-button {
     position: fixed;       /* Fixiert am Bildschirm */
    /* WICHTIG: Damit der Button über ALLEM liegt und klickbar ist */
     z-index: 9999;        /* Über allem anderen (wichtig!) */
     position: fixed;
   
     z-index: 2147483647 !important; /* Der technisch höchstmögliche Wert */
    /* Aussehen Desktop (Standard) */
     cursor: pointer; /* Zeigt die Hand beim Drüberfahren */
    top: 15px;             /* Ganz oben */
     right: 120px;         /* Etwas links vom Benutzermenü/Suche */
      
      
    /* Design */
     background-color: #d33;
     background-color: #d33;
     color: #ffffff !important;
     color: #ffffff;
     padding: 8px 15px;
     font-family: sans-serif;
     font-weight: bold;
     font-weight: bold;
     font-family: sans-serif;
     text-transform: uppercase;
     text-decoration: none !important;
     text-align: center;
    border-radius: 4px;
     box-shadow: 0 4px 8px rgba(0,0,0,0.5);
     box-shadow: 0 2px 5px rgba(0,0,0,0.5);
     border: 2px solid white; /* Weißer Rand macht ihn sichtbarer */
     font-size: 14px;
}
}


/* Hover-Effekt */
/* --- DESKTOP (PC/Laptop) --- */
.js-foto-button:hover {
@media screen and (min-width: 769px) {
    background-color: #f00;
    .js-foto-button {
    transform: scale(1.05);
        top: 80px;      /* Unterhalb der Kopfzeile */
     cursor: pointer;
        right: 20px;    /* Ganz rechts am Rand */
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 14px;
     }
}
}


/* --- HANDY ANSICHT (Mobile) --- */
/* --- HANDY (Mobile) --- */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
     .js-foto-button {
     .js-foto-button {
         top: auto;       /* Nicht oben */
         top: auto;     /* Nicht oben */
         bottom: 20px;     /* Sondern unten */
         bottom: 30px;   /* Sondern unten */
         right: 20px;     /* Rechts */
         right: 20px;   /* Rechts */
       
         padding: 15px 20px;
         padding: 15px 20px; /* Größerer Touch-Bereich */
         border-radius: 50px; /* Rund */
         border-radius: 50px; /* Pillen-Form */
         font-size: 16px;
         font-size: 16px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
     }
     }
}
/* Hover-Effekt */
.js-foto-button:hover {
    background-color: #ff0000;
    transform: scale(1.05);
}
}

Version vom 27. November 2025, 14:40 Uhr

.js-foto-button {
    /* WICHTIG: Damit der Button über ALLEM liegt und klickbar ist */
    position: fixed;
    z-index: 2147483647 !important; /* Der technisch höchstmögliche Wert */
    cursor: pointer; /* Zeigt die Hand beim Drüberfahren */
    
    /* Design */
    background-color: #d33;
    color: #ffffff;
    font-family: sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    border: 2px solid white; /* Weißer Rand macht ihn sichtbarer */
}

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

/* --- HANDY (Mobile) --- */
@media screen and (max-width: 768px) {
    .js-foto-button {
        top: auto;      /* Nicht oben */
        bottom: 30px;   /* Sondern unten */
        right: 20px;    /* Rechts */
        padding: 15px 20px;
        border-radius: 50px; /* Rund */
        font-size: 16px;
    }
}

/* Hover-Effekt */
.js-foto-button:hover {
    background-color: #ff0000;
    transform: scale(1.05);
}