Jump to content

Template:ArtBox/style.css

From wikiNonStop
Revision as of 11:30, 7 April 2026 by Majestix (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Haupt-Container */
.wt-artbox-wrapper { 
    margin: 1em 0; 
}

/* Header-Bereich mit Flexbox */
.wt-artbox-header { 
    display: flex; 
}

/* Gemeinsame Basis für die Header-Elemente */
.wt-artbox-header div { 
    border: 0 solid var(--border-color-muted, #dadde3); 
}

/* Der Titel-Bereich (jetzt in Icon und Text unterteilt) */
.wt-artbox-header .wt-artbox-title { 
    display: flex;
    align-items: center;
    gap: 0.6em; /* Abstand zwischen Icon und Text */
    font-weight: bold; 
    padding: .5em 1em; 
    border-width: 1px 1px 0 1px; 
    border-radius: .5em .5em 0 0;
    background-color: transparent; /* Optional: Hintergrundfarbe hier ergänzen */
}

/* Spezifische Klassen für Icon und Text innerhalb des Titels */
.wt-artbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wt-artbox-text {
    white-space: nowrap;
}

/* Die Linie, die den restlichen Header auffüllt */
.wt-artbox-header .wt-artbox-fill { 
    border-width: 0 0 1px 0; 
    flex: 2; 
}

/* Der Inhaltsbereich (Pre-Tag / Code-Block) */
.wt-artbox-wrapper pre { 
    font-family: "Source Code Pro", Menlo, Consolas, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; 
    margin: 0; 
    padding: 1em;
    border: 1px solid var(--border-color-muted, #dadde3);
}

/* Entfernt den doppelten Rahmen oben beim Inhaltsblock */
.wt-artbox-header + .mw-highlight pre,
.wt-artbox-header + pre { 
    border-top: none; 
}

/* Verhindert Abstände zwischen Header und Content-Box */
.wt-artbox-wrapper div.mw-highlight, 
.wt-artbox-header + div.mw-highlight { 
    margin-top: 0; 
}