MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus Phoenix-Larp Wiki
Becko (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Becko (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (49 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. */ | ||
#p-personal { | |||
#p-personal- | background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="12" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>'); | ||
background-position: top right; | |||
background-repeat: no-repeat; | |||
padding-right: 20px; | |||
} | } | ||
#footer { | #footer { | ||
| Zeile 16: | Zeile 16: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | |||
#mw-navigation { | |||
width: 160px; | |||
} | |||
/* Breite der linken Sidebar anpassen */ | |||
#mw-panel { | |||
width: 220px; /* Standard sind ca. 160px */ | |||
} | } | ||
| Zeile 63: | Zeile 72: | ||
margin-right: 10px; | margin-right: 10px; | ||
border-radius: 10px; | border-radius: 10px; | ||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="12" width="12" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>'); | |||
background-position: 5px; | |||
background-repeat: no-repeat; | |||
padding-left: 25px; | |||
} | |||
#p-search { | |||
margin-right: -3em; | |||
} | |||
#p-personal .mw-portlet-body { | |||
top: 0em !important; | |||
} | |||
} | |||
#p-search .searchButton { | |||
display:none; | |||
} | |||
/* Breakpoint nach Bedarf anpassen */ | |||
@media (max-width: 768px) { | |||
/* Spalte mit Navigation als Off-Canvas von links */ | |||
#column-navigation { | |||
position: fixed; | |||
inset: 0 auto 0 0; /* top:0; left:0; bottom:0 */ | |||
/* width: 280px; Sidebar-Breite */ | |||
transform: translateX(-100%); | |||
transition: transform .25s ease; | |||
/* background: #eaecf0; Kontrast zur Seite */ | |||
background: #e0e4e4 url(/skins/Anisa/resources/images/bkgd.gif?97fa7) repeat; | |||
z-index: 1001; /* über Content, unter Burger */ | |||
overflow-y: auto; | |||
box-shadow: 2px 0 12px rgba(0,0,0,.2); | |||
padding: .5rem 1rem .5rem .5rem; | |||
} | |||
/* Sichtbar, wenn geöffnet */ | |||
body.nav-open #column-navigation { | |||
transform: translateX(0); | |||
} | |||
/* Overlay hinter dem Menü */ | |||
.nav-overlay { display: none; } | |||
body.nav-open .nav-overlay { | |||
position: fixed; | |||
inset: 0; | |||
background: rgba(0,0,0,.35); | |||
z-index: 1000; | |||
display: block; | |||
} | |||
/* Burger-Button oben links */ | |||
.mw-burger { | |||
position: fixed; /* bleibt beim Scrollen sichtbar */ | |||
top: .75rem; | |||
left: .75rem; | |||
z-index: 1002; | |||
border: 0; | |||
background: #fff; | |||
padding: .5rem .65rem; | |||
border-radius: .5rem; | |||
box-shadow: 0 2px 8px rgba(0,0,0,.12); | |||
cursor: pointer; | |||
line-height: 1; | |||
color: inherit; /* Linienfarbe von Text-/Iconfarbe ableiten */ | |||
} | } | ||
/* exakt 3 Linien via box-shadow auf dem Mittelstrich */ | |||
.mw-burger span { | |||
display: block; | |||
width: 24px; | |||
height: 2px; /* mittlere Linie */ | |||
background: currentColor; | |||
margin: 6px 0; /* Abstand nach oben/unten */ | |||
box-shadow: | |||
0 -6px 0 0 currentColor, /* obere Linie */ | |||
0 6px 0 0 currentColor; /* untere Linie */ | |||
} | |||
/* evtl. vorhandene Pseudo-Elemente sicher deaktivieren */ | |||
.mw-burger span::before, | |||
.mw-burger span::after { | |||
display: none !important; | |||
content: none !important; | |||
} | |||
/* Optional: Verhindert Layout-Schieben im Header auf Mobile */ | |||
#header { padding-left: 3.5rem; } | |||
} | } | ||
.klappbox-header { cursor: pointer; padding: .25em .4em; } | |||
.mw-collapsible .mw-collapsible-content { padding: .4em .4em .6em; } | |||
Aktuelle Version vom 9. November 2025, 20:07 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
#p-personal {
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="12" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>');
background-position: top right;
background-repeat: no-repeat;
padding-right: 20px;
}
#footer {
z-index: auto;
height: 120px;
}
.mw-body-content img {
max-width: 100%;
height: auto;
}
#mw-navigation {
width: 160px;
}
/* Breite der linken Sidebar anpassen */
#mw-panel {
width: 220px; /* Standard sind ca. 160px */
}
@media screen and (min-width: 751px) {
#column-navigation {
width: 13em;
}
}
@media screen and (max-width: 960px) {
a#p-banner {
margin-left: 0;
min-width: 300px;
}
#p-search {
padding: 0 0 0.5rem 0;
width: 100%;
display: flex;
position: relative;
top: inherit;
right: inherit;
}
#searchInput {
flex: 15em 1 1;
}
#searchGoButton {
flex: 1.5rem 0 0;
margin: 0 10px;
}
}
@media screen and (max-width: 1024px) {
#page-tools {
display: flex;
flex-wrap: wrap;
line-height: 1.2rem;
}
}
@media screen {
#p-search input {
background-color: rgba(255,255,255,0.8);
border: none;
margin-right: 10px;
border-radius: 10px;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="12" width="12" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
background-position: 5px;
background-repeat: no-repeat;
padding-left: 25px;
}
#p-search {
margin-right: -3em;
}
#p-personal .mw-portlet-body {
top: 0em !important;
}
}
#p-search .searchButton {
display:none;
}
/* Breakpoint nach Bedarf anpassen */
@media (max-width: 768px) {
/* Spalte mit Navigation als Off-Canvas von links */
#column-navigation {
position: fixed;
inset: 0 auto 0 0; /* top:0; left:0; bottom:0 */
/* width: 280px; Sidebar-Breite */
transform: translateX(-100%);
transition: transform .25s ease;
/* background: #eaecf0; Kontrast zur Seite */
background: #e0e4e4 url(/skins/Anisa/resources/images/bkgd.gif?97fa7) repeat;
z-index: 1001; /* über Content, unter Burger */
overflow-y: auto;
box-shadow: 2px 0 12px rgba(0,0,0,.2);
padding: .5rem 1rem .5rem .5rem;
}
/* Sichtbar, wenn geöffnet */
body.nav-open #column-navigation {
transform: translateX(0);
}
/* Overlay hinter dem Menü */
.nav-overlay { display: none; }
body.nav-open .nav-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.35);
z-index: 1000;
display: block;
}
/* Burger-Button oben links */
.mw-burger {
position: fixed; /* bleibt beim Scrollen sichtbar */
top: .75rem;
left: .75rem;
z-index: 1002;
border: 0;
background: #fff;
padding: .5rem .65rem;
border-radius: .5rem;
box-shadow: 0 2px 8px rgba(0,0,0,.12);
cursor: pointer;
line-height: 1;
color: inherit; /* Linienfarbe von Text-/Iconfarbe ableiten */
}
/* exakt 3 Linien via box-shadow auf dem Mittelstrich */
.mw-burger span {
display: block;
width: 24px;
height: 2px; /* mittlere Linie */
background: currentColor;
margin: 6px 0; /* Abstand nach oben/unten */
box-shadow:
0 -6px 0 0 currentColor, /* obere Linie */
0 6px 0 0 currentColor; /* untere Linie */
}
/* evtl. vorhandene Pseudo-Elemente sicher deaktivieren */
.mw-burger span::before,
.mw-burger span::after {
display: none !important;
content: none !important;
}
/* Optional: Verhindert Layout-Schieben im Header auf Mobile */
#header { padding-left: 3.5rem; }
}
.klappbox-header { cursor: pointer; padding: .25em .4em; }
.mw-collapsible .mw-collapsible-content { padding: .4em .4em .6em; }