Jump to content

Template:ArtBox/style.css: Difference between revisions

From wikiNonStop
Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Haupt-Container */
.wt-artbox-wrapper {
.wt-artbox-wrapper {
margin: 1em 0;
margin: 1em 0;
}
.wt-artbox-header {
display: flex;
}
.wt-artbox-icon {
display: flex;
}
}


/* Header-Bereich mit Flexbox */
.wt-artbox-header {
.wt-artbox-header {
display: flex;
display: flex;
align-items: stretch; /* Sorgt für gleiche Höhe */
}
}


/* Der Bereich für das Icon */
/* Gemeinsame Basis für die Header-Elemente */
.wt-artbox-icon {
.wt-artbox-header div {
border: 0 solid var(--border-color-muted, #dadde3);
display: flex;
align-items: center;
padding: .5em .7em;
border: 1px solid var(--border-color-muted, #dadde3);
border-bottom: none;
border-radius: .5em 0 0 0; /* Nur oben links abgerundet */
background: var(--bg-muted, #f8f9fa); /* Optional: dezenter Hintergrund */
}
}


/* Der Bereich für den Text/Titel */
/* Der Titel-Bereich (jetzt in Icon und Text unterteilt) */
.wt-artbox-header .wt-artbox-title {
.wt-artbox-header .wt-artbox-title {
display: flex;
align-items: center;
gap: 0.6em; /* Abstand zwischen Icon und Text */
font-weight: bold;
font-weight: bold;
padding: .5em 1em;
padding: .5em 1em;
border: 1px solid var(--border-color-muted, #dadde3);
border-width: 1px 1px 0 1px;
border-width: 1px 1px 0 0; /* Oben und Rechts Rahmen */
border-radius: .5em .5em 0 0;
border-radius: 0 .5em 0 0; /* Nur oben rechts abgerundet */
background-color: transparent; /* Optional: Hintergrundfarbe hier ergänzen */
}
}


/* Spezifische Klassen für Icon und Text innerhalb des Titels */
/* Der restliche Platzhalter rechts daneben */
.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 {
.wt-artbox-header .wt-artbox-fill {
border-bottom: 1px solid var(--border-color-muted, #dadde3);
border-width: 0 0 1px 0;
flex: 2;
flex: 2;
}
}


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

.wt-artbox-header .wt-artbox-fill {
/* Entfernt den doppelten Rahmen oben beim Inhaltsblock */
border-width: 0 0 1px 0;
.wt-artbox-header + .mw-highlight pre,
flex: 2;
.wt-artbox-header + pre {
border-top: none;
}
}

.wt-artbox-wrapper pre {
/* Verhindert Abstände zwischen Header und Content-Box */
font-family: "Source Code Pro",Menlo,Consolas,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New", monospace, monspace;
.wt-artbox-wrapper div.mw-highlight,
margin: 0;
.wt-artbox-header + div.mw-highlight {
}
margin-top: 0;
.wt-artbox-header + .mw-highlight pre {
border-top: none;
}
.wt-artbox-wrapper div.mw-highlight,
.wt-artbox-header + div.mw-highlight {
margin-top: 0;
}
}

Latest revision as of 11:30, 7 April 2026

/* 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; 
}