Meryam Sahin (talk | contribs) No edit summary |
Meryam Sahin (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
ul#footer-links li:nth-child(6) {width:100%; text-align:center; margin-top:0.5em} | ul#footer-links li:nth-child(6) {width:100%; text-align:center; margin-top:0.5em} | ||
/* ========================================================== | |||
Buttons in Karten (.btnrow / .btn) | |||
Ersetzt den alten Block "Custom Mainpage". | |||
- .btnrow .btn wirkt auf allen Seiten, nicht nur in .custom-dashboard | |||
- .custom-dashboard .btn bleibt vorerst fuer Altvorlagen erhalten | |||
- Spezifitaet 0,2,0 schlaegt Bootstraps .btn (0,1,0) | |||
- Farben kommen aus --wiki-color (pro Wiki gesetzt), | |||
Rueckfallwert #3e5389, falls die Variable fehlt | |||
========================================================== */ | |||
.btnrow { | |||
text-align: center; | |||
} | } | ||
. | .btnrow .btn, | ||
.custom-dashboard .btn { | |||
.custom-dashboard . | |||
display: inline-block; | display: inline-block; | ||
margin: 1.4rem; | |||
padding: 0; | |||
/* heller Hintergrund: 5 % Wiki-Farbe auf Weiss */ | |||
background: #f7f7f8; | background: #f7f7f8; | ||
background: color-mix(in srgb, var(--wiki-color, #3e5389) 5%, white); | |||
border: 1px solid #3e5389; | border: 1px solid #3e5389; | ||
border-color: var(--wiki-color, #3e5389); | |||
border-radius: 10px; | border-radius: 10px; | ||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.06); | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.06); | ||
overflow: hidden; | overflow: hidden; | ||
transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s | /* Bootstrap-Vorgaben von .btn neutralisieren */ | ||
font-size: inherit; | |||
font-weight: inherit; | |||
line-height: inherit; | |||
white-space: normal; | |||
vertical-align: middle; | |||
user-select: auto; | |||
transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.custom-dashboard . | /* Link fuellt den ganzen Button: auch Klicks auf den Rand funktionieren */ | ||
.btnrow .btn a, | |||
.custom-dashboard .btn a { | |||
display: block; | |||
padding: 0.3rem 0.5rem; | |||
} | } | ||
. | .btnrow .btn a:hover, | ||
.custom-dashboard .btn a:hover { | |||
text-decoration: none; | |||
} | } | ||
. | .btnrow .btn:hover, | ||
.btnrow .btn:focus-within, | |||
.custom-dashboard .btn:hover, | |||
.custom-dashboard .btn:focus-within { | |||
. | /* etwas kraeftigerer Farbton: 12 % Wiki-Farbe auf Weiss */ | ||
background: #eef1f8; | |||
background: color-mix(in srgb, var(--wiki-color, #3e5389) 12%, white); | |||
/* Rahmen leicht aufgehellt: 80 % Wiki-Farbe, 20 % Weiss */ | |||
border-color: #5470b3; | |||
.custom-dashboard . | border-color: color-mix(in srgb, var(--wiki-color, #3e5389) 80%, white); | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.08); | |||
.custom-dashboard . | |||
background: | |||
} | } | ||
/* Sichtbarer Tastaturfokus */ | |||
. | .btnrow .btn a:focus-visible, | ||
.custom-dashboard .btn a:focus-visible { | |||
outline: 2px solid #3e5389; | |||
outline-color: var(--wiki-color, #3e5389); | |||
outline-offset: -4px; | |||
border-radius: 8px; | |||
.custom-dashboard .btn | |||
} | } | ||
Revision as of 08:20, 5 November 2026
/*align AI-Disclaimer in footer */
ul#footer-links li:nth-child(6) {width:100%; text-align:center; margin-top:0.5em}
/* ==========================================================
Buttons in Karten (.btnrow / .btn)
Ersetzt den alten Block "Custom Mainpage".
- .btnrow .btn wirkt auf allen Seiten, nicht nur in .custom-dashboard
- .custom-dashboard .btn bleibt vorerst fuer Altvorlagen erhalten
- Spezifitaet 0,2,0 schlaegt Bootstraps .btn (0,1,0)
- Farben kommen aus --wiki-color (pro Wiki gesetzt),
Rueckfallwert #3e5389, falls die Variable fehlt
========================================================== */
.btnrow {
text-align: center;
}
.btnrow .btn,
.custom-dashboard .btn {
display: inline-block;
margin: 1.4rem;
padding: 0;
/* heller Hintergrund: 5 % Wiki-Farbe auf Weiss */
background: #f7f7f8;
background: color-mix(in srgb, var(--wiki-color, #3e5389) 5%, white);
border: 1px solid #3e5389;
border-color: var(--wiki-color, #3e5389);
border-radius: 10px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.06);
overflow: hidden;
/* Bootstrap-Vorgaben von .btn neutralisieren */
font-size: inherit;
font-weight: inherit;
line-height: inherit;
white-space: normal;
vertical-align: middle;
user-select: auto;
transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
}
/* Link fuellt den ganzen Button: auch Klicks auf den Rand funktionieren */
.btnrow .btn a,
.custom-dashboard .btn a {
display: block;
padding: 0.3rem 0.5rem;
}
.btnrow .btn a:hover,
.custom-dashboard .btn a:hover {
text-decoration: none;
}
.btnrow .btn:hover,
.btnrow .btn:focus-within,
.custom-dashboard .btn:hover,
.custom-dashboard .btn:focus-within {
/* etwas kraeftigerer Farbton: 12 % Wiki-Farbe auf Weiss */
background: #eef1f8;
background: color-mix(in srgb, var(--wiki-color, #3e5389) 12%, white);
/* Rahmen leicht aufgehellt: 80 % Wiki-Farbe, 20 % Weiss */
border-color: #5470b3;
border-color: color-mix(in srgb, var(--wiki-color, #3e5389) 80%, white);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.08);
}
/* Sichtbarer Tastaturfokus */
.btnrow .btn a:focus-visible,
.custom-dashboard .btn a:focus-visible {
outline: 2px solid #3e5389;
outline-color: var(--wiki-color, #3e5389);
outline-offset: -4px;
border-radius: 8px;
}