// Headings in mobile // // All headings styled in the content div will be styled like so. // // Markup: //
//

Heading 1

//
//
//

Paragraph of text

//

Heading 2

//

Paragraph of text

//

Heading 3

//

Paragraph of text

//

Heading 4

//

Paragraph of text

//
Heading 2
//

Paragraph of text

//
Heading 2
//

Paragraph of text

//
// // Alternative markup (pre-T13555): //
//

Paragraph of text

//

Heading 2

//

Paragraph of text

//

Heading 3

//

Paragraph of text

//

Heading 4

//

Paragraph of text

//
Heading 2
//

Paragraph of text

//
Heading 2
//

Paragraph of text

//
@import 'mediawiki.mixins.less'; @import '../../../minerva.less/minerva.variables.less'; @import '../../../minerva.less/minerva.mixins.less'; .mw-heading1, h1 { font-size: @fontSizeH1; } .mw-heading2, h2 { font-size: @fontSizeH2; } .mw-heading3, h3 { font-size: @fontSizeH3; font-weight: bold; } .mw-heading4, h4 { font-weight: bold; } .pre-content h1, .content .mw-heading1, .content h1, .content .mw-heading2, .content h2 { font-family: @font-family-serif; } .pre-content h1, .content .mw-heading1, .content h1, .content .mw-heading2, .content h2, .mw-heading3, .mw-heading4, .mw-heading5, .mw-heading6, h3, h4, h5, h6 { line-height: @line-height-xx-small; 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 .mw-heading2, .mw-heading3, .mw-heading4, .mw-heading5, .mw-heading6, h2, h3, h4, h5, h6 { padding: @headingMargin 0; } // `h3`s need extra `margin-top` after paragraphs, see T219572. p + .mw-heading3, p + h3 { margin-top: @headingMargin * 3; } // Override the styles above for `hN` nested inside `.mw-heading`, as used on wikitext pages. .mw-heading { h1, h2, h3, h4, h5, h6 { font-size: inherit; line-height: inherit; padding: 0; margin: 0; } } }