MediaWiki:Citizen.css: Unterschied zwischen den Versionen

Aus Lost Dreams Of Tomorrow Wiki
Markierung: Erneut erstellt
 
Keine Bearbeitungszusammenfassung
 
(28 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Das folgende CSS wird für Benutzer des Citizen-Skins geladen */
/* ========================================
/* ========================================
   CITIZEN CUSTOM STYLES
   CITIZEN – GLASS HEADER + BACKGROUND ONLY
  MediaWiki:Citizen.css
  ======================================== */
 
/* ========================================
  FULL WIDTH LAYOUT
   ======================================== */
   ======================================== */
:root {
:root {
     --width-layout: 100%; /* Full width - ändere zu 1280px für Wide oder 960px für Standard */
     --opacity-glass: 0.6;
    --backdrop-filter-frosted-glass: blur(12px) saturate(120%);
    --color-surface-0: rgba(0, 0, 0, 0.6);
}
}
 
/* ===== Page Background ===== */
/* ========================================
  BACKGROUND IMAGE
  ======================================== */
 
/* Hintergrund für gesamte Seite */
body {
body {
     background-color: #000000;
     background-color: #000;
     background-image: url(https://lostdreamsoftomorrow.wiki/images/resources/Background.png);
     background-image: url(https://lostdreamsoftomorrow.wiki/images/resources/Background.png);
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-position: center top;
     background-position: center top;
    background-size: cover;
     background-attachment: fixed;
     background-attachment: fixed;
    background-size: cover;
}
}


/* Content Bereich transparent machen */
/* Mobile Fix */
.mw-page-container,
@media (max-width: 999px) {
.mw-body,
    body {
#content {
        background-attachment: scroll;
     background: transparent;
    }
}
 
/* ===== Glass Header (Citizen) ===== */
.mw-header,
.citizen-header {
     background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(120, 120, 160, 0.35);
}
}


/* Optional: Leichter dunkler Overlay für bessere Lesbarkeit */
/* Falls Citizen ein Overlay benutzt */
.mw-body {
.mw-header::before,
    background: rgba(0, 0, 0, 0.7);
.citizen-header::before {
     backdrop-filter: blur(2px);
     background: none !important;
}
}


/* ========================================
/* ========================================
   SIDEBAR BREITER & EXPANDABLE
   CITIZEN – GLASS CONTENT AREA
   ======================================== */
   ======================================== */


/* Sidebar breiter machen */
/* Haupt-Content-Container */
@media (min-width: 1000px) {
.citizen-body-container {
    .citizen-page-container {
    background: rgba(0, 0, 0, 0.6) !important;
        grid-template-columns: 280px 1fr; /* Standard: 240px - jetzt 280px */
     backdrop-filter: blur(10px);
     }
     -webkit-backdrop-filter: blur(10px);
      
     border-radius: 12px;
     #mw-navigation {
     border: 1px solid rgba(120, 120, 160, 0.35);
        width: 280px;
     }
}
}


/* Extra breit für große Bildschirme */
/* Falls Citizen ein Overlay nutzt */
@media (min-width: 1600px) {
.citizen-body-container::before {
    .citizen-page-container {
     background: none !important;
        grid-template-columns: 320px 1fr;
    }
   
     #mw-navigation {
        width: 320px;
    }
}
}


/* Sidebar Styling verbessern */
/* Optional: etwas Abstand zum Rand */
.mw-portlet {
.citizen-body {
     background: rgba(0, 0, 0, 0.8);
     padding: 1.5rem;
    border: 1px solid #434360;
    border-radius: 4px;
    padding: 1em;
    margin-bottom: 1em;
    backdrop-filter: blur(5px);
}
}


.mw-portlet h3 {
.citizen-card--content,
    color: #ffffff;
.citizen-card {
    font-size: 1.1em;
     background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
     box-shadow: none;
     padding-bottom: 0.5em;
     margin-bottom: 0.5em;
}
}


/* Sidebar Links */
/*background transparent machen*/
.mw-portlet .mw-list-item a {
.mw-parser-output, .mw-body, .mw-body-content, #bodyContent {
    color: #ffffff;
  background-color: transparent !important;
    padding: 0.3em 0;
    display: block;
    transition: all 0.2s;
}
}


.mw-portlet .mw-list-item a:hover {
/*Content platz entfernen*/
     color: #0075ae;
@media screen {
     padding-left: 0.5em;
  .page-Main_Page.action-view .citizen-body-container {
     border-radius: 0px;
     margin-top: 0px;
  }
}
}


@media screen and (min-width: 1120px) {
  .citizen-footer {
    margin-bottom: 0;
    margin-top: 0px;
  }
}
/*footer icon  entfernen*/
@media screen {
  #footer-icons a {
    display: flex;
    align-items: center;
    background-color: var(--background-color-base-fixed);
    display: none;
  }
}
/* ========================================
/* ========================================
   COLLAPSIBLE SIDEBAR SECTIONS
   CITIZEN – GLASS HEADER INNER + CENTERED
   ======================================== */
   ======================================== */


/* Alle Portlets collapsible machen */
/* Haupt-Header-Container */
.mw-portlet h3 {
.citizen-page-header-inner {
     cursor: pointer;
     display: flex;
     position: relative;
    justify-content: center; /* mittig */
     padding-left: 20px;
    align-items: center;    /* vertikal zentriert */
     user-select: none;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: var(--width-layout);
     margin-inline: auto;
     padding-block: var(--space-md);
     background: rgba(0, 0, 0, 0.6); /* dunkler Glas-Hintergrund */
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-radius: 12px;
    border: 1px solid rgba(120, 120, 160, 0.35);
}
}


/* Pfeil-Icon vor Überschrift */
/* Falls Citizen ein Overlay benutzt */
.mw-portlet h3:before {
.citizen-page-header-inner::before {
     content: '▼';
     background: none !important;
    position: absolute;
    left: 0;
    transition: transform 0.2s;
    font-size: 0.8em;
}
}


/* Collapsed state */
/* Spezifisch für die Main Page */
.mw-portlet.collapsed h3:before {
@media screen and (max-width: 1119px) {
    transform: rotate(-90deg);
  .page-Main_Page.action-view .citizen-page-header-inner {
}
      justify-content: center;
 
      padding-top: 8px;
.mw-portlet.collapsed .mw-portlet-body {
      padding-bottom: 8px;
    display: none;
      border-top: var(--border-width-base) solid rgba(0, 0, 0, 0.1);
}
  }
} /* <-- HIER media schließen */


/* Hover-Effekt */
/* Haupt-Header */
.mw-portlet h3:hover {
.citizen-page-header {
     background: rgba(255, 255, 255, 0.1);
    display: flex;
     border-radius: 4px;
    justify-content: center; /* alles horizontal mittig */
    align-items: center;    /* vertikal mittig */
     background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    padding: 0.5rem 1rem;
     border-radius: 12px;
    border: 1px solid rgba(120, 120, 160, 0.35);
    margin-inline: auto;
    max-width: var(--width-layout);
}
}


/* ========================================
/* Inner Container (für Flex-Zentrierung) */
  DARK MODE OPTIMIERUNGEN
.citizen-page-header-inner {
  ======================================== */
    display: flex;
 
    justify-content: center; /* mittig */
/* Text immer weiß/lesbar */
    align-items: center;
.citizen-body {
    gap: var(--space-md);
     color: #ffffff;
    flex-wrap: wrap;
     width: 100%;
}
}


/* Links weiß mit blauem Hover */
/* Buttons und Actions */
a {
.page-actions {
     color: #ffffff;
     display: flex;
    justify-content: center; /* Buttons mittig */
    gap: 0.5rem;
    flex-wrap: wrap;
}
}


a:hover {
.page-actions .citizen-button,
     color: #0075ae;
.page-actions .citizen-menu {
     flex: none; /* nicht die Breite des Containers einnehmen */
}
}


/* Header/Footer dunkler */
/* Glas-Effekt für Dropdowns */
.citizen-header,
.page-actions .citizen-dropdown .citizen-menu__card-content {
.citizen-footer {
     background: rgba(0,0,0,0.6);
     background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px) saturate(120%);
     border-color: #434360;
    -webkit-backdrop-filter: blur(12px) saturate(120%);
     border-radius: 8px;
}
}


/* Table of Contents (ToC) */
/* Mobile Fallback */
.citizen-toc {
@media (max-width: 1119px) {
     background: rgba(0, 0, 0, 0.85);
    .citizen-page-header,
    border: 1px solid #434360;
     .citizen-page-header-inner,
    backdrop-filter: blur(5px);
    .page-actions {
}
        justify-content: center;
 
        flex-direction: column;
/* Search */
        align-items: center;
.citizen-search-box {
     }
    background: rgba(0, 0, 0, 0.7);
     border-color: #434360;
}
}


.citizen-search-box input {
@media screen and (min-width: 1120px) {
     background: rgba(0, 0, 0, 0.5);
  .citizen-page-header {
     color: #ffffff;
     transition-property: 3px;
    margin-top: 0px;
    padding-right: 0px;
     padding-left: 0px;
  }
}
}


/* ========================================
@media screen {
  MOBILE OPTIMIERUNGEN
  .page-Main_Page.action-view .citizen-body-container {
  ======================================== */
     border-radius: 0px;
 
     margin-top: 0px;
@media (max-width: 999px) {
     margin-bottom: 0px;
     /* Mobile Sidebar volle Breite wenn geöffnet */
     border-top-width: 0px;
     #mw-navigation {
  }
        background: rgba(0, 0, 0, 0.95);
     }
   
    /* Background auch auf Mobile */
    body {
        background-attachment: scroll; /* Fixed kann auf Mobile Probleme machen */
     }
   
    .mw-body {
        background: rgba(0, 0, 0, 0.85);
    }
}
}

Aktuelle Version vom 11. Januar 2026, 21:17 Uhr

/* ========================================
   CITIZEN – GLASS HEADER + BACKGROUND ONLY
   ======================================== */
:root {
    --opacity-glass: 0.6;
    --backdrop-filter-frosted-glass: blur(12px) saturate(120%);
    --color-surface-0: rgba(0, 0, 0, 0.6);
}
/* ===== Page Background ===== */
body {
    background-color: #000;
    background-image: url(https://lostdreamsoftomorrow.wiki/images/resources/Background.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

/* Mobile Fix */
@media (max-width: 999px) {
    body {
        background-attachment: scroll;
    }
}

/* ===== Glass Header (Citizen) ===== */
.mw-header,
.citizen-header {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(120, 120, 160, 0.35);
}

/* Falls Citizen ein Overlay benutzt */
.mw-header::before,
.citizen-header::before {
    background: none !important;
}

/* ========================================
   CITIZEN – GLASS CONTENT AREA
   ======================================== */

/* Haupt-Content-Container */
.citizen-body-container {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(120, 120, 160, 0.35);
}

/* Falls Citizen ein Overlay nutzt */
.citizen-body-container::before {
    background: none !important;
}

/* Optional: etwas Abstand zum Rand */
.citizen-body {
    padding: 1.5rem;
}

.citizen-card--content,
.citizen-card {
    background: transparent !important;
    box-shadow: none;
}

/*background transparent machen*/
.mw-parser-output, .mw-body, .mw-body-content, #bodyContent {
  background-color: transparent !important;
}

/*Content platz entfernen*/
@media screen {
  .page-Main_Page.action-view .citizen-body-container {
    border-radius: 0px;
    margin-top: 0px;
  }
}

@media screen and (min-width: 1120px) {
  .citizen-footer {
    margin-bottom: 0;
    margin-top: 0px;
  }
}
/*footer icon  entfernen*/
@media screen {
  #footer-icons a {
    display: flex;
    align-items: center;
    background-color: var(--background-color-base-fixed);
    display: none;
  }
}
/* ========================================
   CITIZEN – GLASS HEADER INNER + CENTERED
   ======================================== */

/* Haupt-Header-Container */
.citizen-page-header-inner {
    display: flex;
    justify-content: center; /* mittig */
    align-items: center;     /* vertikal zentriert */
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: var(--width-layout);
    margin-inline: auto;
    padding-block: var(--space-md);
    background: rgba(0, 0, 0, 0.6); /* dunkler Glas-Hintergrund */
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-radius: 12px;
    border: 1px solid rgba(120, 120, 160, 0.35);
}

/* Falls Citizen ein Overlay benutzt */
.citizen-page-header-inner::before {
    background: none !important;
}

/* Spezifisch für die Main Page */
@media screen and (max-width: 1119px) {
  .page-Main_Page.action-view .citizen-page-header-inner {
      justify-content: center;
      padding-top: 8px;
      padding-bottom: 8px;
      border-top: var(--border-width-base) solid rgba(0, 0, 0, 0.1);
  }
} /* <-- HIER media schließen */

/* Haupt-Header */
.citizen-page-header {
    display: flex;
    justify-content: center; /* alles horizontal mittig */
    align-items: center;     /* vertikal mittig */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(120, 120, 160, 0.35);
    margin-inline: auto;
    max-width: var(--width-layout);
}

/* Inner Container (für Flex-Zentrierung) */
.citizen-page-header-inner {
    display: flex;
    justify-content: center; /* mittig */
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    width: 100%;
}

/* Buttons und Actions */
.page-actions {
    display: flex;
    justify-content: center; /* Buttons mittig */
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-actions .citizen-button,
.page-actions .citizen-menu {
    flex: none; /* nicht die Breite des Containers einnehmen */
}

/* Glas-Effekt für Dropdowns */
.page-actions .citizen-dropdown .citizen-menu__card-content {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-radius: 8px;
}

/* Mobile Fallback */
@media (max-width: 1119px) {
    .citizen-page-header,
    .citizen-page-header-inner,
    .page-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (min-width: 1120px) {
  .citizen-page-header {
    transition-property: 3px;
    margin-top: 0px;
    padding-right: 0px;
    padding-left: 0px;
  }
}

@media screen {
  .page-Main_Page.action-view .citizen-body-container {
    border-radius: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    border-top-width: 0px;
  }
}