MediaWiki:Gadget-VectorClassic.css: Difference between revisions
Appearance
Content deleted Content added
maintenance: See Wikipedia:Village_pump_(technical)#Classic_vector_skin_font_size. The previous style was based on old DOM structure. |
Updates for mw:Heading HTML changes – requested at WP:VPT#New h2 headings use serif font even when the "Vector classic typography" gadget is enabled |
||
Line 11: | Line 11: | ||
div#content h1, |
div#content h1, |
||
div#content h2, |
div#content h2, |
||
div#content .mw-heading1, |
|||
div#content .mw-heading2, |
|||
div#content #firstHeading, |
div#content #firstHeading, |
||
div#content .mw-editsection { |
div#content .mw-editsection { |
||
font-family: inherit; |
font-family: inherit; |
||
} |
} |
||
div#content .mw-heading, |
|||
div#content h1, |
div#content h1, |
||
div#content h2, |
div#content h2, |
||
Line 32: | Line 35: | ||
padding-bottom: 0; |
padding-bottom: 0; |
||
} |
} |
||
div#content |
div#content .mw-heading1 { |
||
font-size: 188%; |
font-size: 188%; |
||
margin-bottom: 0.6em; |
margin-bottom: 0.6em; |
||
} |
} |
||
div#content |
div#content .mw-heading2 { |
||
font-size: 150%; |
font-size: 150%; |
||
margin-bottom: 0.6em; |
margin-bottom: 0.6em; |
||
} |
} |
||
div#content |
div#content .mw-heading3 { |
||
font-size: 132%; |
font-size: 132%; |
||
} |
} |
||
div#content |
div#content .mw-heading4 { |
||
font-size: 116%; |
font-size: 116%; |
||
} |
} |
||
div#content |
div#content .mw-heading5 { |
||
font-size: 108%; |
font-size: 108%; |
||
} |
} |
||
div#content |
div#content .mw-heading6 { |
||
font-size: 100%; |
font-size: 100%; |
||
} |
} |
Latest revision as of 20:25, 6 June 2024
/**
* Gadget to reset typography refresh
*/
html, body {
font-family: sans-serif;
}
div#content {
color: black;
}
div#content h1,
div#content h2,
div#content .mw-heading1,
div#content .mw-heading2,
div#content #firstHeading,
div#content .mw-editsection {
font-family: inherit;
}
div#content .mw-heading,
div#content h1,
div#content h2,
div#content h3,
div#content h4,
div#content h5,
div#content h6 {
line-height: inherit;
margin: 0;
padding-top: 0.5em;
padding-bottom: 0.17em;
}
div#content #firstHeading {
font-size: 1.6em;
line-height: 1.2em;
margin-bottom: 0.1em;
padding-bottom: 0;
}
div#content .mw-heading1 {
font-size: 188%;
margin-bottom: 0.6em;
}
div#content .mw-heading2 {
font-size: 150%;
margin-bottom: 0.6em;
}
div#content .mw-heading3 {
font-size: 132%;
}
div#content .mw-heading4 {
font-size: 116%;
}
div#content .mw-heading5 {
font-size: 108%;
}
div#content .mw-heading6 {
font-size: 100%;
}
.vector-body {
font-size: 0.8125em;
line-height: 1.5em;
}