2017-07-12 15:12:40 +00:00
|
|
|
// Headings in mobile
|
|
|
|
//
|
|
|
|
// All headings styled in the content div will be styled like so.
|
|
|
|
//
|
|
|
|
// Markup:
|
|
|
|
// <div class="pre-content">
|
|
|
|
// <h1 id="section_0">Heading 1</h1>
|
|
|
|
// </div>
|
|
|
|
// <div class="content">
|
|
|
|
// <p>Paragraph of text</p>
|
|
|
|
// <h2>Heading 2</h2>
|
|
|
|
// <p>Paragraph of text</p>
|
|
|
|
// <h3>Heading 3</h3>
|
|
|
|
// <p>Paragraph of text</p>
|
|
|
|
// <h4>Heading 4</h4>
|
|
|
|
// <p>Paragraph of text</p>
|
|
|
|
// <h5>Heading 2</h5>
|
|
|
|
// <p>Paragraph of text</p>
|
|
|
|
// <h6>Heading 2</h6>
|
|
|
|
// <p>Paragraph of text</p>
|
|
|
|
// </div>
|
|
|
|
@import 'mediawiki.mixins.less';
|
2021-04-29 01:01:54 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
@headingLineHeight: 1.3;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: @fontSizeH1;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: @fontSizeH2;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: @fontSizeH3;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pre-content h1,
|
|
|
|
.content h1,
|
|
|
|
.content h2 {
|
2019-12-06 05:12:46 +00:00
|
|
|
font-family: @font-family-serif;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.pre-content h1,
|
|
|
|
.content h1,
|
|
|
|
.content h2,
|
|
|
|
h3, h4, h5, h6 {
|
|
|
|
line-height: @headingLineHeight;
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
// This value isn't valid per the specification [0] but fixes the behaviour in
|
|
|
|
// Google Chrome (45.0.2454.93), and, likely, other browsers too.
|
|
|
|
//
|
|
|
|
// [0] https://drafts.csswg.org/css-text-3/#propdef-word-break
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
// Deliberately not applied to h1
|
|
|
|
h2, h3, h4, h5, h6 {
|
|
|
|
padding: @headingMargin 0;
|
|
|
|
}
|
2019-04-02 23:04:00 +00:00
|
|
|
|
|
|
|
// `h3`s need extra `margin-top` after paragraphs, see T219572.
|
|
|
|
p + h3 {
|
|
|
|
margin-top: @headingMargin * 3;
|
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|