-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
renderedhtml.less
113 lines (100 loc) · 3.18 KB
/
renderedhtml.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.rendered_html {
color: @text-color;
em {font-style: italic;}
strong {font-weight: bold;}
u {text-decoration: underline;}
:link {text-decoration: underline;}
:visited {text-decoration: underline;}
// For a 14px base font size this goes as:
// font-size = 26, 22, 18, 14, 12, 12
// margin-top = 14, 14, 14, 14, 8, 8
h1 {font-size: 185.7%; margin: 1.08em 0 0 0; font-weight: bold; line-height: 1.0;}
h2 {font-size: 157.1%; margin: 1.27em 0 0 0; font-weight: bold; line-height: 1.0;}
h3 {font-size: 128.6%; margin: 1.55em 0 0 0; font-weight: bold; line-height: 1.0;}
h4 {font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0;}
h5 {font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; font-style: italic;}
h6 {font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; font-style: italic;}
// Reduce the top margins by 14px compared to above
h1:first-child {margin-top: 0.538em;}
h2:first-child {margin-top: 0.636em;}
h3:first-child {margin-top: 0.777em;}
h4:first-child {margin-top: 1em;}
h5:first-child {margin-top: 1em;}
h6:first-child {margin-top: 1em;}
ul:not(.list-inline),
ol:not(.list-inline) {padding-left: 2em;}
ul {list-style:disc;}
ul ul {list-style:square;}
ul ul ul {list-style:circle;}
ol {list-style:decimal;}
ol ol {list-style:upper-alpha; }
ol ol ol {list-style:lower-alpha; }
ol ol ol ol {list-style:lower-roman; }
/* any extras will just be numbers: */
ol ol ol ol ol {list-style:decimal;}
* + ul {margin-top: 1em;}
* + ol {margin-top: 1em;}
hr {
color: @rendered_html_border_color;
background-color: @rendered_html_border_color;
}
pre {margin: 1em 2em;}
pre, code {
border: 0;
background-color: @body-bg;
color: @text-color;
font-size: 100%;
padding: 0px;
}
blockquote {margin: 1em 2em;}
table {
margin-left: auto;
margin-right: auto;
border: none;
border-collapse: collapse;
border-spacing: 0;
color: @rendered_html_border_color;
font-size: 12px;
table-layout: fixed;
}
thead {
border-bottom: 1px solid @rendered_html_border_color;
vertical-align: bottom;
}
tr, th, td {
text-align: right;
vertical-align: middle;
padding: 0.5em 0.5em;
line-height: 1.0;
white-space: nowrap;
max-width: 100px;
text-overflow: ellipsis;
overflow: hidden;
border: none;
}
th {
font-weight: bold;
}
tbody tr:nth-child(odd) {
background: #f5f5f5;
}
* + table {margin-top: 1em;}
p {text-align: left;}
* + p {margin-top: 1em;}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
* + img {margin-top: 1em;}
img, svg {
max-width: 100%;
height: auto;
&.unconfined {
max-width: none;
}
}
// Override bootstrap settings, see #1390
.alert {margin-bottom: initial;}
* + .alert {margin-top: 1em;}
}