mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-14 09:54:45 +00:00
5e7b3994fd
We need to load these only when VisualEditor is loaded. This is the best way to ensure that. They have been haphazardly placed in different files. The goal of this change is to move content styling for Minerva out of mobile.editor.ve/minerva.less, and thus to be able to move this file to mediawiki/extensions/MobileFrontend (T202978). But I spotted the other places while working on that. Moved as-is: * skins.minerva.content.styles/links.less * mobile.editor.ve/minerva.less No longer needed: * skins.minerva.content.styles/text.less Parsoid now uses <sup> tags for references rather than <span>, so the existing rules for <sup> tags are enough. See T45094, <https://www.mediawiki.org/wiki/Specs/HTML/1.6.0/Extensions/Cite>. Was never needed: * skins.minerva.content.styles/thumbnails.less The styles from the core module 'mediawiki.skinning.content.parsoid' are never loaded, so we don't need to override them. Bug: T202978 Change-Id: I45e1cb89b65a41a29d2b1a361a79199745ccec14
79 lines
1.1 KiB
Plaintext
79 lines
1.1 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;
|
|
}
|
|
}
|
|
|
|
strong,
|
|
b {
|
|
font-weight: bold;
|
|
}
|
|
|
|
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;
|
|
}
|