MediaWiki:Timeless.css: Unterschied zwischen den Versionen
Aus NordhausenWiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 1: | Zeile 1: | ||
/* | /* ============================================== */ | ||
/* Optimiertes CSS für NordhausenWiki */ | |||
/* ============================================== */ | |||
/* Koordinaten und Seitenindikatoren */ | |||
#mw-content-text #coordinates, | #mw-content-text #coordinates, | ||
#mw-content-text #editcount, | #mw-content-text #editcount, | ||
| Zeile 34: | Zeile 28: | ||
} | } | ||
/* ============================================== */ | |||
/* Farbschema und Grundlayout */ | |||
/* ============================================== */ | |||
:root { | |||
--nw-primary: #00669d; | |||
--nw-primary-dark: #004d75; | |||
--nw-primary-light: #0088cc; | |||
--nw-accent: #d4a517; | |||
--nw-bg-dark: #272a33; | |||
--nw-bg-light: #f9f9f8; | |||
--nw-border: #EFEFEF; | |||
--nw-text: #252525; | |||
--nw-shadow: rgba(0, 0, 0, 0.1); | |||
} | |||
body { | |||
background: var(--nw-bg-dark) !important; | |||
} | |||
#mw-content-container { | |||
background: var(--nw-bg-light); | |||
background-image: none; | |||
box-shadow: 0 2px 8px var(--nw-shadow); | |||
} | |||
#mw-content { | |||
border-color: #ffffff !important; | |||
} | |||
/* ============================================== */ | /* ============================================== */ | ||
/* | /* Sidebar Verbesserungen */ | ||
/* ============================================== */ | /* ============================================== */ | ||
@media screen and (min-width: 1100px) { | @media screen and (min-width: 1100px) { | ||
.sidebar-chunk { | .sidebar-chunk { | ||
background: #ffffff !important; | background: #ffffff !important; | ||
border-color: #ffffff !important; | border-color: #ffffff !important; | ||
border-radius: 4px; | |||
margin-bottom: 0.75em; | |||
box-shadow: 0 1px 3px var(--nw-shadow); | |||
transition: box-shadow 0.2s ease; | |||
} | |||
.sidebar-chunk:hover { | |||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); | |||
} | } | ||
.sidebar-chunk h3 { | .sidebar-chunk h3 { | ||
border-bottom-color: | border-bottom: 2px solid var(--nw-border) !important; | ||
color: var(--nw-primary-dark); | |||
font-weight: 600; | |||
padding-bottom: 0.5em; | |||
} | |||
.sidebar-chunk ul { | |||
padding-left: 0.5em; | |||
} | |||
.sidebar-chunk li { | |||
padding: 0.25em 0; | |||
transition: background-color 0.2s ease; | |||
} | |||
.sidebar-chunk li:hover { | |||
background-color: rgba(0, 102, 157, 0.05); | |||
border-radius: 2px; | |||
} | } | ||
} | } | ||
/* Masthead | /* ============================================== */ | ||
/* Überschriften und Akzente */ | |||
/* ============================================== */ | |||
.mw-body h1.firstHeading { | |||
border-bottom: 3px solid var(--nw-primary); | |||
color: var(--nw-text); | |||
padding-bottom: 0.3em; | |||
margin-bottom: 0.5em; | |||
} | |||
.mw-body h2 { | |||
border-bottom: 2px solid var(--nw-border); | |||
color: var(--nw-primary-dark); | |||
margin-top: 1em; | |||
padding-bottom: 0.25em; | |||
} | |||
.mw-body h3 { | |||
color: var(--nw-primary-dark); | |||
border-bottom: 1px solid var(--nw-border); | |||
padding-bottom: 0.2em; | |||
} | |||
/* Farbige Akzentlinie oben */ | |||
.color-left, | |||
.color-middle, | |||
.color-right { | |||
background: linear-gradient(90deg, | |||
var(--nw-primary) 0%, | |||
var(--nw-primary-light) 50%, | |||
var(--nw-primary) 100%); | |||
height: 3px; | |||
} | |||
#mw-content-container { | |||
border-bottom-color: var(--nw-primary); | |||
} | |||
.tools-inline li.selected { | |||
border-bottom-color: var(--nw-primary); | |||
} | |||
/* ============================================== */ | |||
/* Portale und spezielle Frames */ | |||
/* ============================================== */ | |||
.nw-portal-frame { | |||
background: #ffffff; | |||
border: 1px solid var(--nw-border); | |||
border-radius: 6px; | |||
padding: 1em; | |||
margin-bottom: 1em; | |||
box-shadow: 0 1px 3px var(--nw-shadow); | |||
} | |||
.nw-portal-frame h2 { | |||
border-bottom: 3px solid var(--nw-primary) !important; | |||
color: var(--nw-primary-dark); | |||
margin-top: 0; | |||
} | |||
.nw-portal-frame h2::after { | |||
border-bottom: none !important; | |||
} | |||
/* ============================================== */ | |||
/* Masthead */ | |||
/* ============================================== */ | |||
.nw-masthead-title h2::after { | .nw-masthead-title h2::after { | ||
border-bottom: none !important; | border-bottom: none !important; | ||
} | } | ||
.nw-masthead-contents { | .nw-masthead-contents { | ||
column-width: 9.125rem; | column-width: 9.125rem; | ||
column-gap: 1.5rem; | |||
} | } | ||
.nw-masthead-mlink { | .nw-masthead-mlink { | ||
display: none; | display: none; | ||
} | } | ||
/* | /* ============================================== */ | ||
.nw- | /* Logo und Titel */ | ||
/* ============================================== */ | |||
.mw-wiki-logo { | |||
transition: transform 0.2s ease; | |||
} | |||
.mw-wiki-logo:hover { | |||
transform: scale(1.02); | |||
} | |||
.mw-wiki-logo img { | |||
width: 150px; | |||
height: 50px; | |||
} | |||
#p-logo-text a { | |||
display: block; | |||
font-weight: 600; | |||
color: var(--nw-primary-dark); | |||
} | |||
@media screen and (min-width: 1150px) { | |||
#p-logo-text a { | |||
display: none; | |||
} | |||
} | |||
@media (max-width: 768px) { | |||
.mw-wiki-logo img { | |||
width: 100px; | |||
height: 33px; | |||
} | |||
} | |||
/* ============================================== */ | |||
/* Links und Buttons */ | |||
/* ============================================== */ | |||
a { | |||
color: var(--nw-primary); | |||
transition: color 0.2s ease; | |||
} | |||
a:hover { | |||
color: var(--nw-primary-light); | |||
} | |||
a:visited { | |||
color: var(--nw-primary-dark); | |||
} | |||
.mw-editsection a { | |||
color: #666; | |||
font-size: 0.85em; | |||
} | |||
.mw-editsection a:hover { | |||
color: var(--nw-primary); | |||
} | |||
/* ============================================== */ | |||
/* Tabellen */ | |||
/* ============================================== */ | |||
table.wikitable { | |||
border: 1px solid var(--nw-border); | |||
border-radius: 4px; | |||
overflow: hidden; | |||
} | |||
table.wikitable > tr > th, | |||
table.wikitable > * > tr > th { | |||
background-color: var(--nw-primary); | |||
color: white; | |||
border-color: rgba(255, 255, 255, 0.3); | |||
} | |||
table.wikitable > tr > td, | |||
table.wikitable > * > tr > td { | |||
border-color: var(--nw-border); | |||
} | } | ||
. | |||
table.wikitable > tr:nth-child(even), | |||
table.wikitable > * > tr:nth-child(even) { | |||
background-color: rgba(0, 102, 157, 0.03); | |||
} | } | ||
/* | /* ============================================== */ | ||
. | /* Infoboxen */ | ||
/* ============================================== */ | |||
.infobox { | |||
border: 1px solid var(--nw-border); | |||
border-radius: 6px; | |||
box-shadow: 0 2px 4px var(--nw-shadow); | |||
overflow: hidden; | |||
} | } | ||
.infobox th { | |||
background-color: var(--nw-primary); | |||
color: white; | |||
} | } | ||
/* | /* ============================================== */ | ||
/* Notices und Hinweise */ | |||
/* ============================================== */ | |||
.mw-indicators { | .mw-indicators { | ||
margin: 0.25em 0 0 0; | margin: 0.25em 0 0 0; | ||
} | } | ||
.mw-dismissable-notice-close { | .mw-dismissable-notice-close { | ||
margin: 0em 1.25em; | margin: 0em 1.25em; | ||
} | } | ||
.mw-message-box { | |||
border-radius: 4px; | |||
border-left-width: 4px; | |||
} | } | ||
border-color: | .mw-message-box-info { | ||
border-left-color: var(--nw-primary); | |||
} | } | ||
/* ============================================== */ | |||
/* Such-Features */ | |||
/* ============================================== */ | |||
.searchresult { | |||
color: var(--nw-primary); | |||
font-weight: 600; | |||
} | } | ||
.mw-search-result-heading a { | |||
color: var(--nw-primary-dark); | |||
font-size: 1.1em; | |||
} | |||
/* | /* ============================================== */ | ||
# | /* Footer */ | ||
/* ============================================== */ | |||
#footer { | |||
color: #666; | |||
} | } | ||
#footer a { | |||
color: var(--nw-primary-dark); | |||
} | } | ||
/* | /* ============================================== */ | ||
/* Mobile Optimierungen */ | |||
/* ============================================== */ | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | .nw-portal-frame { | ||
width: | padding: 0.75em; | ||
} | |||
.nw-masthead-contents { | |||
column-width: 100%; | |||
column-count: 1; | |||
} | } | ||
} | } | ||
Version vom 21. Januar 2026, 20:06 Uhr
/* ============================================== */
/* Optimiertes CSS für NordhausenWiki */
/* ============================================== */
/* Koordinaten und Seitenindikatoren */
#mw-content-text #coordinates,
#mw-content-text #editcount,
#mw-content-text #shortcut,
body.ns-special #mw-content-text .specialpage-helplink {
display: block;
font-size: x-small;
line-height: 1.5;
position: absolute;
right: 1.6em;
text-align: right;
text-indent: 0;
top: 2em;
white-space: nowrap;
}
@media screen and (min-width: 982px) {
#mw-content-text #coordinates,
#mw-content-text #editcount,
#mw-content-text #shortcut,
body.ns-special #mw-content-text .specialpage-helplink {
right: 2.4em;
}
}
/* ============================================== */
/* Farbschema und Grundlayout */
/* ============================================== */
:root {
--nw-primary: #00669d;
--nw-primary-dark: #004d75;
--nw-primary-light: #0088cc;
--nw-accent: #d4a517;
--nw-bg-dark: #272a33;
--nw-bg-light: #f9f9f8;
--nw-border: #EFEFEF;
--nw-text: #252525;
--nw-shadow: rgba(0, 0, 0, 0.1);
}
body {
background: var(--nw-bg-dark) !important;
}
#mw-content-container {
background: var(--nw-bg-light);
background-image: none;
box-shadow: 0 2px 8px var(--nw-shadow);
}
#mw-content {
border-color: #ffffff !important;
}
/* ============================================== */
/* Sidebar Verbesserungen */
/* ============================================== */
@media screen and (min-width: 1100px) {
.sidebar-chunk {
background: #ffffff !important;
border-color: #ffffff !important;
border-radius: 4px;
margin-bottom: 0.75em;
box-shadow: 0 1px 3px var(--nw-shadow);
transition: box-shadow 0.2s ease;
}
.sidebar-chunk:hover {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.sidebar-chunk h3 {
border-bottom: 2px solid var(--nw-border) !important;
color: var(--nw-primary-dark);
font-weight: 600;
padding-bottom: 0.5em;
}
.sidebar-chunk ul {
padding-left: 0.5em;
}
.sidebar-chunk li {
padding: 0.25em 0;
transition: background-color 0.2s ease;
}
.sidebar-chunk li:hover {
background-color: rgba(0, 102, 157, 0.05);
border-radius: 2px;
}
}
/* ============================================== */
/* Überschriften und Akzente */
/* ============================================== */
.mw-body h1.firstHeading {
border-bottom: 3px solid var(--nw-primary);
color: var(--nw-text);
padding-bottom: 0.3em;
margin-bottom: 0.5em;
}
.mw-body h2 {
border-bottom: 2px solid var(--nw-border);
color: var(--nw-primary-dark);
margin-top: 1em;
padding-bottom: 0.25em;
}
.mw-body h3 {
color: var(--nw-primary-dark);
border-bottom: 1px solid var(--nw-border);
padding-bottom: 0.2em;
}
/* Farbige Akzentlinie oben */
.color-left,
.color-middle,
.color-right {
background: linear-gradient(90deg,
var(--nw-primary) 0%,
var(--nw-primary-light) 50%,
var(--nw-primary) 100%);
height: 3px;
}
#mw-content-container {
border-bottom-color: var(--nw-primary);
}
.tools-inline li.selected {
border-bottom-color: var(--nw-primary);
}
/* ============================================== */
/* Portale und spezielle Frames */
/* ============================================== */
.nw-portal-frame {
background: #ffffff;
border: 1px solid var(--nw-border);
border-radius: 6px;
padding: 1em;
margin-bottom: 1em;
box-shadow: 0 1px 3px var(--nw-shadow);
}
.nw-portal-frame h2 {
border-bottom: 3px solid var(--nw-primary) !important;
color: var(--nw-primary-dark);
margin-top: 0;
}
.nw-portal-frame h2::after {
border-bottom: none !important;
}
/* ============================================== */
/* Masthead */
/* ============================================== */
.nw-masthead-title h2::after {
border-bottom: none !important;
}
.nw-masthead-contents {
column-width: 9.125rem;
column-gap: 1.5rem;
}
.nw-masthead-mlink {
display: none;
}
/* ============================================== */
/* Logo und Titel */
/* ============================================== */
.mw-wiki-logo {
transition: transform 0.2s ease;
}
.mw-wiki-logo:hover {
transform: scale(1.02);
}
.mw-wiki-logo img {
width: 150px;
height: 50px;
}
#p-logo-text a {
display: block;
font-weight: 600;
color: var(--nw-primary-dark);
}
@media screen and (min-width: 1150px) {
#p-logo-text a {
display: none;
}
}
@media (max-width: 768px) {
.mw-wiki-logo img {
width: 100px;
height: 33px;
}
}
/* ============================================== */
/* Links und Buttons */
/* ============================================== */
a {
color: var(--nw-primary);
transition: color 0.2s ease;
}
a:hover {
color: var(--nw-primary-light);
}
a:visited {
color: var(--nw-primary-dark);
}
.mw-editsection a {
color: #666;
font-size: 0.85em;
}
.mw-editsection a:hover {
color: var(--nw-primary);
}
/* ============================================== */
/* Tabellen */
/* ============================================== */
table.wikitable {
border: 1px solid var(--nw-border);
border-radius: 4px;
overflow: hidden;
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
background-color: var(--nw-primary);
color: white;
border-color: rgba(255, 255, 255, 0.3);
}
table.wikitable > tr > td,
table.wikitable > * > tr > td {
border-color: var(--nw-border);
}
table.wikitable > tr:nth-child(even),
table.wikitable > * > tr:nth-child(even) {
background-color: rgba(0, 102, 157, 0.03);
}
/* ============================================== */
/* Infoboxen */
/* ============================================== */
.infobox {
border: 1px solid var(--nw-border);
border-radius: 6px;
box-shadow: 0 2px 4px var(--nw-shadow);
overflow: hidden;
}
.infobox th {
background-color: var(--nw-primary);
color: white;
}
/* ============================================== */
/* Notices und Hinweise */
/* ============================================== */
.mw-indicators {
margin: 0.25em 0 0 0;
}
.mw-dismissable-notice-close {
margin: 0em 1.25em;
}
.mw-message-box {
border-radius: 4px;
border-left-width: 4px;
}
.mw-message-box-info {
border-left-color: var(--nw-primary);
}
/* ============================================== */
/* Such-Features */
/* ============================================== */
.searchresult {
color: var(--nw-primary);
font-weight: 600;
}
.mw-search-result-heading a {
color: var(--nw-primary-dark);
font-size: 1.1em;
}
/* ============================================== */
/* Footer */
/* ============================================== */
#footer {
color: #666;
}
#footer a {
color: var(--nw-primary-dark);
}
/* ============================================== */
/* Mobile Optimierungen */
/* ============================================== */
@media (max-width: 768px) {
.nw-portal-frame {
padding: 0.75em;
}
.nw-masthead-contents {
column-width: 100%;
column-count: 1;
}
}