Debian Codegraph @

skins/MinervaNeue/resources/skins.minerva.base.styles/content/text.less

raw
1 @import 'mediawiki.mixins.less';
2 @import '../../../minerva.less/minerva.variables.less';
3 @import '../../../minerva.less/minerva.mixins.less';
4
5 .content {
6 p {
7 padding-bottom: 0.5em;
8 margin: 0.5em 0 0 0;
9 }
10
11 hr {
12 // border-color used as background-color as exception here.
13 background-color: @border-color-base;
14 height: 1px;
15 border: 0;
16 }
17
18 // Code
19 //
20 // Use this solely for blocks of computer code.
21 //
22 // Markup:
23 // <code>
24 // body {
25 // color:red;
26 // }
27 // </code>
28
29 // Preformatted text
30 //
31 // Use on text where whitespace is significant and the content should not be formatted.
32 //
33 // Markup:
34 // <pre>
35 // body {
36 // color:red;
37 // }
38 // </pre>
39 //
40 // Note .mw-code is not added here as it is assumed that will be used with a suitable tag
41 kbd,
42 samp,
43 code,
44 pre {
45 font-family: @font-family-monospace;
46 border: @border-subtle;
47 white-space: pre-wrap;
48 }
49
50 code {
51 padding: @spacing-12 @spacing-25;
52 }
53
54 pre {
55 padding: 1em;
56 }
57 }
58
59 b,
60 strong {
61 font-weight: bold;
62 }
63
64 blockquote {
65 border-left: 3px @border-style-base @border-color-subtle;
66 padding: @padding-vertical-blockquote @padding-end-blockquote @padding-vertical-blockquote @padding-start-blockquote;
67 font-family: @font-family-serif;
68 font-size: 1.1em;
69
70 // Ensure not to inherit whitespace mashing margins on child elements.
71 > :first-child {
72 margin-top: 0;
73 }
74
75 > :last-child {
76 margin-bottom: 0;
77 }
78
79 > :only-child {
80 margin-top: 0;
81 margin-bottom: 0;
82 }
83 }
84
85 em,
86 i {
87 font-style: italic;
88 }
89
90 sup {
91 vertical-align: super;
92 }
93
94 sub {
95 vertical-align: sub;
96 }
97
98 sub,
99 sup,
100 .content .mw-ref {
101 font-size: 0.75em;
102 // Avoid line-height issues caused by sup and sub
103 line-height: 1;
104 }