Last edited 3 days ago
by Meryam Sahin

MediaWiki:Common.css: Difference between revisions

Meryam Sahin (talk | contribs)
No edit summary
Meryam Sahin (talk | contribs)
No edit summary
Line 4: Line 4:


/* Buttons in Karten (.btnrow / .btn) */
/* Buttons in Karten (.btnrow / .btn) */
.btnrow {
.btnrow {
     text-align: center;
     text-align: center;
Line 14: Line 13:
     margin: 1.4rem;
     margin: 1.4rem;
     padding: 0;
     padding: 0;
    /* heller Hintergrund: 5 % Wiki-Farbe auf Weiss */
     background: #f7f7f8;
     background: #f7f7f8;
     background: color-mix(in srgb, var(--wiki-color, #3e5389) 5%, white);
     background: color-mix(in srgb, var(--wiki-color, #3e5389) 5%, white);
Line 22: Line 20:
     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;
    /* Bootstrap-Vorgaben von .btn neutralisieren */
     font-size: inherit;
     font-size: inherit;
     font-weight: inherit;
     font-weight: inherit;
Line 49: Line 46:
.custom-dashboard .btn:hover,
.custom-dashboard .btn:hover,
.custom-dashboard .btn:focus-within {
.custom-dashboard .btn:focus-within {
    /* etwas kraeftigerer Farbton: 12 % Wiki-Farbe auf Weiss */
     background: #eef1f8;
     background: #eef1f8;
     background: color-mix(in srgb, var(--wiki-color, #3e5389) 12%, white);
     background: color-mix(in srgb, var(--wiki-color, #3e5389) 12%, white);
    /* Rahmen leicht aufgehellt: 80 % Wiki-Farbe, 20 % Weiss */
     border-color: #5470b3;
     border-color: #5470b3;
     border-color: color-mix(in srgb, var(--wiki-color, #3e5389) 80%, white);
     border-color: color-mix(in srgb, var(--wiki-color, #3e5389) 80%, white);
Line 78: Line 73:


.navbar-sitenotice  .navbar-brand {
.navbar-sitenotice  .navbar-brand {
font-size: 1.1em;
font-size: 1.1em;
     color: #6b6d6b;
     color: #6b6d6b;
Line 84: Line 78:
     margin-left: 1.5em;
     margin-left: 1.5em;
}
}


.navbar-sitenotice .bi::before {
.navbar-sitenotice .bi::before {
Line 102: Line 95:
     color: #d96b1f
     color: #d96b1f
}
}
.navbar-sitenotice  .nav-link {
.navbar-sitenotice  .nav-link {
     margin: 0.5em!important;
     margin: 0.5em!important;
     display: inline;
     display: inline;
     background: white;
     background: white;
border-color: #5470b3;
    border-color: #5470b3;
     border-color: rgb(210 210 210);
     border-color: rgb(210 210 210);
     border-radius: 10px;
     border-radius: 10px;
Line 116: Line 110:
.navbar-sitenotice  .nav-link:hover {
.navbar-sitenotice  .nav-link:hover {
     background: white;
     background: white;
      outline: 1px solid #3e5389;
    outline: 1px solid #3e5389;
     border-color: var(--wiki-color, #e3e3e3);
     border-color: var(--wiki-color, #e3e3e3);
}
}

Revision as of 14:50, 19 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) */
.btnrow {
    text-align: center;
}

.btnrow .btn,
.custom-dashboard .btn {
    display: inline-block;
    margin: 1.4rem;
    padding: 0;
    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;
    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 {
    background: #eef1f8;
    background: color-mix(in srgb, var(--wiki-color, #3e5389) 12%, white);
    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;
}

/* Sitenotice usecase nav */

.navbar-sitenotice {
    padding: 0;
    font-size: 0.7em;
    border-radius: 10px;
}

.page-Hauptseite .navbar-sitenotice {display:none}

.navbar-sitenotice  .navbar-brand {
	font-size: 1.1em;
    color: #6b6d6b;
    margin-top: 0.7em;
    margin-left: 1.5em;
}

.navbar-sitenotice .bi::before {
    font-size:1.2em;
    vertical-align:-0.2em
}

.navbar-sitenotice .bi-person-fill {
    color: #3c72a0;
}

.navbar-sitenotice  .bi-gear-fill {
    color: #366f3c
}

.navbar-sitenotice .bi-rocket-takeoff-fill {
    color: #d96b1f
}

.navbar-sitenotice  .nav-link {
    margin: 0.5em!important;
    display: inline;
    background: white;
    border-color: #5470b3;
    border-color: rgb(210 210 210);
    border-radius: 10px;
    user-select: auto;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.navbar-sitenotice  .nav-link:hover {
    background: white;
    outline: 1px solid #3e5389;
    border-color: var(--wiki-color, #e3e3e3);
}

.navbar-sitenotice  .nav-link a:hover {
    text-decoration: none!important;
}