Template:Markup/styles.css: Difference between revisions
Appearance
Deleatur yhe (talk | contribs) m 1 revision imported |
Deleatur yhe (talk | contribs) m 1 revision imported |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 18: | Line 18: | ||
background: var(--background-color-interactive-subtle, #f8f9fa); | background: var(--background-color-interactive-subtle, #f8f9fa); | ||
color:inherit; | color:inherit; | ||
border: 1px solid #eaecf0; | border: 1px solid var(--background-color-neutral, #eaecf0); | ||
padding: 5px; | padding: 5px; | ||
vertical-align: top; | vertical-align: top; | ||
| Line 46: | Line 46: | ||
} | } | ||
/* These are for the anti-pattern of using <syntaxhighlight | /* These are for the anti-pattern of using <syntaxhighlight> inside {{Markup}}, | ||
use |tag=syntaxhighlight instead */ | use |tag=syntaxhighlight instead */ | ||
.markup-markup .mw-highlight { | .markup-markup .mw-highlight { | ||
Latest revision as of 15:10, 17 September 2026
/* {{pp-template|small=yes}} */
.markup {
margin: 0;
margin-bottom: 0.5em;
border-width: medium;
padding: 0;
}
.markup > caption {
font-weight: bold;
}
.markup > tbody > tr > th[scope=col] {
width: 50%;
}
.markup > tbody > tr > td {
background: var(--background-color-interactive-subtle, #f8f9fa);
color:inherit;
border: 1px solid var(--background-color-neutral, #eaecf0);
padding: 5px;
vertical-align: top;
}
.markup-wrapper > :first-child {
margin-top: 0;
}
.markup-wrapper > :last-child {
margin-bottom: 0;
}
.markup-markup {
margin: 0;
border: none;
overflow-wrap: break-word;
white-space: pre-wrap;
}
code.markup-markup {
padding: 0;
}
pre.markup-markup {
padding: 2px 0 0;
}
/* These are for the anti-pattern of using <syntaxhighlight> inside {{Markup}},
use |tag=syntaxhighlight instead */
.markup-markup .mw-highlight {
margin: 0;
}
.markup-markup .mw-highlight pre {
border: none;
}
/* These are for |tag=syntaxhighlight */
div.markup-markup.mw-highlight > pre {
padding: 0;
border: 0;
}