mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/content/text.less
bwang 9c52c298ad Update padding on <p> elements
Bug: T358808
Change-Id: I7f13bddaf79cd9b1061a1cac03e6ab1b767fc808
2024-03-18 19:10:20 +00:00

106 lines
1.6 KiB
Plaintext

@import 'mediawiki.mixins.less';
@import '../../../minerva.less/minerva.variables.less';
@import '../../../minerva.less/minerva.mixins.less';
.content {
p {
padding-bottom: 0.5em;
margin: 0.5em 0 0 0;
}
hr {
// border-color used as background-color as exception here.
background-color: @border-color-base;
height: 1px;
border: 0;
}
// Code
//
// Use this solely for blocks of computer code.
//
// Markup:
// <code>
// body {
// color:red;
// }
// </code>
// Preformatted text
//
// Use on text where whitespace is significant and the content should not be formatted.
//
// Markup:
// <pre>
// body {
// color:red;
// }
// </pre>
//
// Note .mw-code is not added here as it is assumed that will be used with a suitable tag
kbd,
samp,
code,
pre {
font-family: @font-family-monospace;
border: @border-subtle;
white-space: pre-wrap;
}
code {
padding: 0.2em 0.5em;
}
pre {
margin: 0;
padding: 1em;
}
}
b,
strong {
font-weight: bold;
}
blockquote {
border-left: 3px @border-style-base var( --border-color-subtle );
padding: @padding-vertical-blockquote @padding-end-blockquote @padding-vertical-blockquote @padding-start-blockquote;
font-family: @font-family-serif;
font-size: 1.1em;
// Ensure not to inherit whitespace mashing margins on child elements.
> :first-child {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
> :only-child {
margin-top: 0;
margin-bottom: 0;
}
}
em,
i {
font-style: italic;
}
sup {
vertical-align: super;
}
sub {
vertical-align: sub;
}
sub,
sup,
.content .mw-ref {
font-size: 0.75em;
// Avoid line-height issues caused by sup and sub
line-height: 1;
}