MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Wikikama
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(68 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Subtitel unter dem Wikikama-Schriftzug */
/* Subtitel unter dem Wikikama-Schriftzug */
#p-logo:after {
#p-logo:after {
Zeile 12: Zeile 13:
/* Einheitliche Schriftart auf Arial setzen */
/* Einheitliche Schriftart auf Arial setzen */
body {
body {
  font-family: Arial, Helvetica, sans-serif;
    font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
    font-size: 16px;
  line-height: 1.6;
    line-height: 1.6;
  color: #222;
    color: #222;
}
}


/* Optional: Überschriften leicht anpassen */
/* Optional: Überschriften leicht anpassen */
h1, h2, h3 {
h1, h2, h3 {
  font-family: Arial, Helvetica, sans-serif;
    font-family: Arial, Helvetica, sans-serif;
  color: #2C5282;
    color: #2C5282;
}
 
/* Einheitliche Linkfarbe für alle Links */
a:link,
a:visited {
    color: #2B6CB0 !important; /* dein Wunschblau */
    text-decoration: none;
}
 
a:hover {
    text-decoration: underline;
}
 
#mw-content-container {
    border-bottom: none !important;
}
 
#mw-footer-container,
#mw-footer {
    background-color: #3a3a3a !important;
    color: #ccc;
}
 
#mw-footer a {
    color: #8ab4f8 !important; /* heller, gut lesbarer Blauton */
    text-decoration: underline; /* optional, zur besseren Erkennbarkeit */
}
 
#mw-footer a:hover {
    color: #a6c8ff !important; /* hellerer Blauton bei Hover */
}
 
#mw-footer-container {
    margin-bottom: 20px;
    /* Oder falls margin besser passt */
    /* margin-bottom: 20px; */
}
 
#mw-footer a:hover {
    color: #5599dd;
}
 
/* Support-Banner Styling mit Mobilfix */
#support-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff4a3;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    gap: 10px;
    word-break: break-word;
}
 
#support-banner .sb-text {
    font-weight: bold;
    max-width: 90%;
    line-height: 1.5;
}
 
#support-banner .sb-link {
    color: #0645ad;
    text-decoration: underline;
    font-weight: bold;
}
 
#support-banner .sb-link:hover {
    color: #0b3d91;
}
 
#support-banner button#support-banner-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #444;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    padding: 0;
    margin: 0;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}
 
#support-banner button#support-banner-close:hover {
    opacity: 1;
    color: #111;
}
 
/* Menü- und Toolbox-Einträge ausblenden – nur für Gäste (nicht eingeloggt) */
body:not(.logged-in) #user-tools,
body:not(.logged-in) .vector-user-menu,
body:not(.logged-in) #p-personal,
body:not(.logged-in) #p-tb,
body:not(.logged-in) .sidebar-chunk#site-tools {
    display: none !important;
}
 
/* Für alle angemeldeten Benutzer:innen (body.logged-in) wieder einblenden */
body.logged-in #user-tools,
body.logged-in .vector-user-menu,
body.logged-in #p-personal,
body.logged-in #p-tb,
body.logged-in .sidebar-chunk#site-tools {
    display: block !important;
}
 
/* Links in der Seitenleiste (Portal-Navigation) */
#mw-panel .portal a {
    display: block;
    background-color: #2C5282;
    color: white !important;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
 
#mw-panel .portal a:hover {
    background-color: #1A365D;
}
 
/* DPL-Listen (DynamicPageList3) */
a[href*="Vorlage:Extension_DPL"] {
    display: none !important;
}
 
.dpl-list-simple ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
 
.dpl-list-simple ul > li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px 0 !important;
}
 
.dpl-list-simple ul > li::before {
    content: "📄" !important;
    margin-right: 8px !important;
    flex: none !important;
}
 
.dpl-list-simple ul > li a {
    color: #2C5282 !important;
    text-decoration: none !important;
    flex: auto !important;
}
 
.dpl-list-simple ul > li span.dpl-date {
    font-size: 0.9em !important;
    color: #4A5568 !important;
    margin-left: 12px !important;
    flex: none !important;
}
 
/* Responsive Anpassung bei kleinen Bildschirmen */
@media (max-width: 600px) {
    .wikikama-boxes {
        flex-direction: column !important;
    }
}
 
.a2a_kit {
    margin-bottom: 30px;
}
 
.wikikama-sharebox {
    margin-top: 40px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Zentriert auf allen Geräten */
    gap: 8px;
}
 
.wikikama-sharebox strong {
    flex-basis: 100%;
    margin-bottom: 8px;
    text-align: center;  /* Überschrift zentriert */
}
 
.wikikama-sharebox a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
    transition: filter 0.3s ease;
    border-radius: 4px;
}
 
.wikikama-sharebox a:hover {
    filter: brightness(0.85);
}
 
/* Styling für das Benutzer-anlegen Formular */
.successbox {
    background-color: #e6ffe6;
    border: 1px solid #00aa00;
    padding: 1em;
    margin-bottom: 1em;
}
 
.errorbox {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    padding: 1em;
    margin-bottom: 1em;
}
 
.warningbox {
    background-color: #fff8e1;
    border: 1px solid #ff9900;
    padding: 1em;
    margin-bottom: 1em;
}
}

Aktuelle Version vom 3. Juni 2025, 05:37 Uhr

/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */

/* Subtitel unter dem Wikikama-Schriftzug */
#p-logo:after {
    content: "Mehr Wissen. Mehr Sicherheit. Fakten gegen Fakes.";
    display: block;
    font-size: 0.8em;
    color: gray;
    text-align: center;
    margin-top: 5px;
}

/* Einheitliche Schriftart auf Arial setzen */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

/* Optional: Überschriften leicht anpassen */
h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: #2C5282;
}

/* Einheitliche Linkfarbe für alle Links */
a:link,
a:visited {
    color: #2B6CB0 !important; /* dein Wunschblau */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#mw-content-container {
    border-bottom: none !important;
}

#mw-footer-container,
#mw-footer {
    background-color: #3a3a3a !important;
    color: #ccc;
}

#mw-footer a {
    color: #8ab4f8 !important; /* heller, gut lesbarer Blauton */
    text-decoration: underline; /* optional, zur besseren Erkennbarkeit */
}

#mw-footer a:hover {
    color: #a6c8ff !important; /* hellerer Blauton bei Hover */
}

#mw-footer-container {
    margin-bottom: 20px;
    /* Oder falls margin besser passt */
    /* margin-bottom: 20px; */
}

#mw-footer a:hover {
    color: #5599dd;
}

/* Support-Banner Styling mit Mobilfix */
#support-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff4a3;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    gap: 10px;
    word-break: break-word;
}

#support-banner .sb-text {
    font-weight: bold;
    max-width: 90%;
    line-height: 1.5;
}

#support-banner .sb-link {
    color: #0645ad;
    text-decoration: underline;
    font-weight: bold;
}

#support-banner .sb-link:hover {
    color: #0b3d91;
}

#support-banner button#support-banner-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #444;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    padding: 0;
    margin: 0;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

#support-banner button#support-banner-close:hover {
    opacity: 1;
    color: #111;
}

/* Menü- und Toolbox-Einträge ausblenden – nur für Gäste (nicht eingeloggt) */
body:not(.logged-in) #user-tools,
body:not(.logged-in) .vector-user-menu,
body:not(.logged-in) #p-personal,
body:not(.logged-in) #p-tb,
body:not(.logged-in) .sidebar-chunk#site-tools {
    display: none !important;
}

/* Für alle angemeldeten Benutzer:innen (body.logged-in) wieder einblenden */
body.logged-in #user-tools,
body.logged-in .vector-user-menu,
body.logged-in #p-personal,
body.logged-in #p-tb,
body.logged-in .sidebar-chunk#site-tools {
    display: block !important;
}

/* Links in der Seitenleiste (Portal-Navigation) */
#mw-panel .portal a {
    display: block;
    background-color: #2C5282;
    color: white !important;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

#mw-panel .portal a:hover {
    background-color: #1A365D;
}

/* DPL-Listen (DynamicPageList3) */
a[href*="Vorlage:Extension_DPL"] {
    display: none !important;
}

.dpl-list-simple ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dpl-list-simple ul > li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px 0 !important;
}

.dpl-list-simple ul > li::before {
    content: "📄" !important;
    margin-right: 8px !important;
    flex: none !important;
}

.dpl-list-simple ul > li a {
    color: #2C5282 !important;
    text-decoration: none !important;
    flex: auto !important;
}

.dpl-list-simple ul > li span.dpl-date {
    font-size: 0.9em !important;
    color: #4A5568 !important;
    margin-left: 12px !important;
    flex: none !important;
}

/* Responsive Anpassung bei kleinen Bildschirmen */
@media (max-width: 600px) {
    .wikikama-boxes {
        flex-direction: column !important;
    }
}

.a2a_kit {
    margin-bottom: 30px;
}

.wikikama-sharebox {
    margin-top: 40px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Zentriert auf allen Geräten */
    gap: 8px;
}

.wikikama-sharebox strong {
    flex-basis: 100%;
    margin-bottom: 8px;
    text-align: center;  /* Überschrift zentriert */
}

.wikikama-sharebox a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
    transition: filter 0.3s ease;
    border-radius: 4px;
}

.wikikama-sharebox a:hover {
    filter: brightness(0.85);
}

/* Styling für das Benutzer-anlegen Formular */
.successbox {
    background-color: #e6ffe6;
    border: 1px solid #00aa00;
    padding: 1em;
    margin-bottom: 1em;
}

.errorbox {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    padding: 1em;
    margin-bottom: 1em;
}

.warningbox {
    background-color: #fff8e1;
    border: 1px solid #ff9900;
    padding: 1em;
    margin-bottom: 1em;
}