Jump to content

Template:ArtBox/style.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Grundcontainer */
.wt-artbox-wrapper {
.wt-artbox-wrapper {
margin: 1em 0;
margin: 1em 0;
}
.wt-artbox-header {
display: flex;
}
.wt-artbox-icon {
display: flex;
}
}


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


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

/* 1. Icon-Bereich */
.wt-artbox-icon {
.wt-artbox-icon {
display: flex;
display: flex;
align-items: center;
align-items: center;
padding: .5em .7em;
justify-content: center;
padding: 0.5em 0.7em;
border: 1px solid var(--border-color-muted, #dadde3);
border-bottom: none;
border-width: 1px 0 0 1px !important; /* Oben und Links */
border-radius: .5em 0 0 0; /* Nur oben links abgerundet */
border-top-left-radius: 0.5em;
background: var(--bg-muted, #f8f9fa); /* Optional: dezenter Hintergrund */
background-color: var(--bg-muted, #f8f9fa);
}
}


/* Der Bereich für den Text/Titel */
/* 2. Titel-Bereich */
.wt-artbox-header .wt-artbox-title {
.wt-artbox-header .wt-artbox-title {
font-weight: bold;
font-weight: bold;
padding: .5em 1em;
padding: 0.5em 1em;
border-width: 1px 1px 0 1px !important; /* Oben, Rechts, Links */
border: 1px solid var(--border-color-muted, #dadde3);
border-width: 1px 1px 0 0; /* Oben und Rechts Rahmen */
border-top-right-radius: 0.5em;
/* Falls das Icon direkt davor steht, linken Rahmen entfernen um Doppelung zu vermeiden: */
border-radius: 0 .5em 0 0; /* Nur oben rechts abgerundet */
margin-left: -1px;
}
}


/* Der restliche Platzhalter rechts daneben */
/* 3. Auffüll-Linie rechts */
.wt-artbox-header .wt-artbox-fill {
.wt-artbox-header .wt-artbox-fill {
border-bottom: 1px solid var(--border-color-muted, #dadde3);
border-bottom-width: 1px !important;
flex: 2;
flex: 2;
}
}


/* Der Inhaltsbereich (Code/Text) */
.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);
border-top: none; /* Schließt nahtlos an den Header an */
}
}

.wt-artbox-header .wt-artbox-fill {
/* Korrektur für MediaWiki-Highlighting-Klassen */
border-width: 0 0 1px 0;
.wt-artbox-header + .mw-highlight pre,
flex: 2;
.wt-artbox-header + div.mw-highlight pre {
border-top: none;
}
}

.wt-artbox-wrapper pre {
.wt-artbox-wrapper div.mw-highlight,
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-header + div.mw-highlight {
margin: 0;
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;
}
}