2 * MediaWiki style sheet for general styles on basic content elements.
3 * IMPORTANT: All rules in this file should only apply to __tag__ selectors (T255717).
4 * Styling of non-tag selectors is permitted for backwards compatibility, in only two cases:
5 * 1) There is an equivalent tag with the same name in HTML4 (e.g. `.small and <small>)
6 * 2) A class matches a tag name and is prefixed with `mw-` e.g. `code` and `.mw-code`
8 * Styles for basic elements: links, headings, lists, ….
10 * This style sheet is used by the Monobook and Vector skins.
13 @import 'mediawiki.mixins.less';
14 @import 'mediawiki.skin.variables.less';
16 /* stylelint-disable selector-class-pattern */
20 text-decoration: none;
25 cursor: pointer; /* Always cursor:pointer even without href */
29 color: @color-link--visited;
33 color: @color-link--active;
38 text-decoration: underline;
44 border: 0; /* FIXME: Remove after adding 'normalize.less' added to all 'elements.less' calling skins. */
45 vertical-align: middle;
49 // Use `@border-width-base` instead of `1px` to match the default border width.
50 height: @border-width-base;
51 // Use `@border-color-base` as the element represents a border.
52 background-color: @border-color-base;
57 /* Structural Elements */
65 color: @color-emphasized;
69 padding-bottom: 0.17em;
70 // Create a "block formatting context" so that the bottom border on headings
71 // don't overlap floated content like infoboxes or thumbnails.
72 // In addition, word-break:break-word forces heading to span multiple lines.
73 // Together, these two rules are a substitute for overflow: hidden.
74 // https://developer.mozilla.org/en-US/docs/Web/CSS/display#flow-root
75 /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
77 word-break: break-word;
85 border-bottom: @border-width-base @border-style-base @border-color-base;
129 // Override all styles above for `hN` nested inside `.mw-heading`, as used on wikitext pages.
130 // Also override the most common skin-defined styles to make the migration after T13555 easier.
138 // Must be inline to allow `.mw-editsection` to be shown on the same line
149 margin: 0.4em 0 0.5em 0;
159 .margin-inline( 1.6em, 0 );
166 .margin-inline( 3.2em, 0 );
168 list-style-image: none;
172 margin-bottom: 0.1em;
173 .margin-inline( 1.6em, 0 );
177 margin-bottom: 0.1em;
182 margin-bottom: 0.1em;
187 margin-bottom: 0.5em;
190 /* FIXME: Duplicated ruleset if skins using ResourceLoaderSkinModule
191 load the features `normalize` and `elements`. */
198 /* Support: Blink, Gecko, Webkit; enable unified font sizes for monospace font. T176636 */
199 font-family: monospace, monospace;
205 background-color: @background-color-neutral-subtle;
206 color: @color-emphasized;
207 border: @border-width-base @border-style-base @border-color-muted;
211 border-radius: @border-radius-base;
218 /* Wrap lines in overflow. T2260, T103780 */
219 white-space: pre-wrap;
220 /* Create a new block formatting context */
222 /* Break really long words when they overflow to the next line */
223 word-wrap: break-word;
233 border: @border-width-base @border-style-base #2a4b8d;
249 box-sizing: @box-sizing-base;
251 /* Support: Firefox */
252 /* Border rule required to override system appearance on Linux. T13641. */
253 border: @border-width-base @border-style-base @border-color-base;
268 /* Small for tables and similar */