mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
4496292268
There's no reason to have this as separate style file in content.styles as common text styles are taken care of in 'text.less' and 'print/articles.less' for print. Moving contents rule there. Change-Id: Ie613d95488e9b5a814b6be8f0c856e9e92ab5aed
88 lines
1.3 KiB
Plaintext
88 lines
1.3 KiB
Plaintext
@import 'mediawiki.mixins.less';
|
|
@import '../../minerva.less/minerva.variables';
|
|
@import '../../minerva.less/minerva.mixins';
|
|
|
|
.content {
|
|
p {
|
|
margin: 0.5em 0 1em 0;
|
|
}
|
|
|
|
// Code
|
|
//
|
|
// Use this solely for blocks of computer code.
|
|
//
|
|
// Markup:
|
|
// <code>
|
|
// body {
|
|
// color:red;
|
|
// }
|
|
// </code>
|
|
//
|
|
// Styleguide 1.6.
|
|
|
|
// 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
|
|
// tt is a non-standard element so is not included in the selector.
|
|
// Styleguide 1.7.
|
|
kbd,
|
|
samp,
|
|
code,
|
|
pre {
|
|
font-family: @fontFamilyMonospace;
|
|
border: solid 1px @colorGray12;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
code {
|
|
padding: 0.2em 0.5em;
|
|
}
|
|
|
|
pre {
|
|
padding: 1em;
|
|
}
|
|
}
|
|
|
|
b,
|
|
strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 3px solid @colorGray12;
|
|
font-family: @fontFamilyHeading;
|
|
font-size: 1.1em;
|
|
padding: 1em @blockquotePaddingRight 1em @blockquotePaddingLeft;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
em,
|
|
i {
|
|
font-style: italic;
|
|
}
|
|
|
|
sup {
|
|
vertical-align: super;
|
|
}
|
|
|
|
sub {
|
|
vertical-align: sub;
|
|
}
|
|
|
|
sub,
|
|
sup {
|
|
font-size: 0.75em;
|
|
// Avoid line-height issues caused by sup and sub
|
|
line-height: 1;
|
|
}
|