info@53
|
1 |
//
|
info@53
|
2 |
// Typography
|
info@53
|
3 |
// --------------------------------------------------
|
info@53
|
4 |
|
info@53
|
5 |
|
info@53
|
6 |
// Headings
|
info@53
|
7 |
// -------------------------
|
info@53
|
8 |
|
info@53
|
9 |
h1, h2, h3, h4, h5, h6,
|
info@53
|
10 |
.h1, .h2, .h3, .h4, .h5, .h6 {
|
info@53
|
11 |
font-family: @headings-font-family;
|
info@53
|
12 |
font-weight: @headings-font-weight;
|
info@53
|
13 |
line-height: @headings-line-height;
|
info@53
|
14 |
color: @headings-color;
|
info@53
|
15 |
|
info@53
|
16 |
small,
|
info@53
|
17 |
.small {
|
info@53
|
18 |
font-weight: normal;
|
info@53
|
19 |
line-height: 1;
|
info@53
|
20 |
color: @headings-small-color;
|
info@53
|
21 |
}
|
info@53
|
22 |
}
|
info@53
|
23 |
|
info@53
|
24 |
h1,
|
info@53
|
25 |
h2,
|
info@53
|
26 |
h3 {
|
info@53
|
27 |
margin-top: @line-height-computed;
|
info@53
|
28 |
margin-bottom: (@line-height-computed / 2);
|
info@53
|
29 |
|
info@53
|
30 |
small,
|
info@53
|
31 |
.small {
|
info@53
|
32 |
font-size: 65%;
|
info@53
|
33 |
}
|
info@53
|
34 |
}
|
info@53
|
35 |
h4,
|
info@53
|
36 |
h5,
|
info@53
|
37 |
h6 {
|
info@53
|
38 |
margin-top: (@line-height-computed / 2);
|
info@53
|
39 |
margin-bottom: (@line-height-computed / 2);
|
info@53
|
40 |
|
info@53
|
41 |
small,
|
info@53
|
42 |
.small {
|
info@53
|
43 |
font-size: 75%;
|
info@53
|
44 |
}
|
info@53
|
45 |
}
|
info@53
|
46 |
|
info@53
|
47 |
h1, .h1 { font-size: @font-size-h1; }
|
info@53
|
48 |
h2, .h2 { font-size: @font-size-h2; }
|
info@53
|
49 |
h3, .h3 { font-size: @font-size-h3; }
|
info@53
|
50 |
h4, .h4 { font-size: @font-size-h4; }
|
info@53
|
51 |
h5, .h5 { font-size: @font-size-h5; }
|
info@53
|
52 |
h6, .h6 { font-size: @font-size-h6; }
|
info@53
|
53 |
|
info@53
|
54 |
|
info@53
|
55 |
// Body text
|
info@53
|
56 |
// -------------------------
|
info@53
|
57 |
|
info@53
|
58 |
p {
|
info@53
|
59 |
margin: 0 0 (@line-height-computed / 2);
|
info@53
|
60 |
}
|
info@53
|
61 |
|
info@53
|
62 |
.lead {
|
info@53
|
63 |
margin-bottom: @line-height-computed;
|
info@53
|
64 |
font-size: floor(@font-size-base * 1.15);
|
info@53
|
65 |
font-weight: 200;
|
info@53
|
66 |
line-height: 1.4;
|
info@53
|
67 |
|
info@53
|
68 |
@media (min-width: @screen-sm-min) {
|
info@53
|
69 |
font-size: (@font-size-base * 1.5);
|
info@53
|
70 |
}
|
info@53
|
71 |
}
|
info@53
|
72 |
|
info@53
|
73 |
|
info@53
|
74 |
// Emphasis & misc
|
info@53
|
75 |
// -------------------------
|
info@53
|
76 |
|
info@53
|
77 |
// Ex: 14px base font * 85% = about 12px
|
info@53
|
78 |
small,
|
info@53
|
79 |
.small { font-size: 85%; }
|
info@53
|
80 |
|
info@53
|
81 |
// Undo browser default styling
|
info@53
|
82 |
cite { font-style: normal; }
|
info@53
|
83 |
|
info@53
|
84 |
// Contextual emphasis
|
info@53
|
85 |
.text-muted {
|
info@53
|
86 |
color: @text-muted;
|
info@53
|
87 |
}
|
info@53
|
88 |
.text-primary {
|
info@53
|
89 |
color: @brand-primary;
|
info@53
|
90 |
&:hover {
|
info@53
|
91 |
color: darken(@brand-primary, 10%);
|
info@53
|
92 |
}
|
info@53
|
93 |
}
|
info@53
|
94 |
.text-warning {
|
info@53
|
95 |
color: @state-warning-text;
|
info@53
|
96 |
&:hover {
|
info@53
|
97 |
color: darken(@state-warning-text, 10%);
|
info@53
|
98 |
}
|
info@53
|
99 |
}
|
info@53
|
100 |
.text-danger {
|
info@53
|
101 |
color: @state-danger-text;
|
info@53
|
102 |
&:hover {
|
info@53
|
103 |
color: darken(@state-danger-text, 10%);
|
info@53
|
104 |
}
|
info@53
|
105 |
}
|
info@53
|
106 |
.text-success {
|
info@53
|
107 |
color: @state-success-text;
|
info@53
|
108 |
&:hover {
|
info@53
|
109 |
color: darken(@state-success-text, 10%);
|
info@53
|
110 |
}
|
info@53
|
111 |
}
|
info@53
|
112 |
.text-info {
|
info@53
|
113 |
color: @state-info-text;
|
info@53
|
114 |
&:hover {
|
info@53
|
115 |
color: darken(@state-info-text, 10%);
|
info@53
|
116 |
}
|
info@53
|
117 |
}
|
info@53
|
118 |
|
info@53
|
119 |
// Alignment
|
info@53
|
120 |
.text-left { text-align: left; }
|
info@53
|
121 |
.text-right { text-align: right; }
|
info@53
|
122 |
.text-center { text-align: center; }
|
info@53
|
123 |
|
info@53
|
124 |
|
info@53
|
125 |
// Page header
|
info@53
|
126 |
// -------------------------
|
info@53
|
127 |
|
info@53
|
128 |
.page-header {
|
info@53
|
129 |
padding-bottom: ((@line-height-computed / 2) - 1);
|
info@53
|
130 |
margin: (@line-height-computed * 2) 0 @line-height-computed;
|
info@53
|
131 |
border-bottom: 1px solid @page-header-border-color;
|
info@53
|
132 |
}
|
info@53
|
133 |
|
info@53
|
134 |
|
info@53
|
135 |
// Lists
|
info@53
|
136 |
// --------------------------------------------------
|
info@53
|
137 |
|
info@53
|
138 |
// Unordered and Ordered lists
|
info@53
|
139 |
ul,
|
info@53
|
140 |
ol {
|
info@53
|
141 |
margin-top: 0;
|
info@53
|
142 |
margin-bottom: (@line-height-computed / 2);
|
info@53
|
143 |
ul,
|
info@53
|
144 |
ol {
|
info@53
|
145 |
margin-bottom: 0;
|
info@53
|
146 |
}
|
info@53
|
147 |
}
|
info@53
|
148 |
|
info@53
|
149 |
// List options
|
info@53
|
150 |
|
info@53
|
151 |
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
info@53
|
152 |
.list-unstyled {
|
info@53
|
153 |
padding-left: 0;
|
info@53
|
154 |
list-style: none;
|
info@53
|
155 |
}
|
info@53
|
156 |
|
info@53
|
157 |
// Inline turns list items into inline-block
|
info@53
|
158 |
.list-inline {
|
info@53
|
159 |
.list-unstyled();
|
info@53
|
160 |
|
info@53
|
161 |
> li {
|
info@53
|
162 |
display: inline-block;
|
info@53
|
163 |
padding-left: 5px;
|
info@53
|
164 |
padding-right: 5px;
|
info@53
|
165 |
|
info@53
|
166 |
&:first-child {
|
info@53
|
167 |
padding-left: 0;
|
info@53
|
168 |
}
|
info@53
|
169 |
}
|
info@53
|
170 |
}
|
info@53
|
171 |
|
info@53
|
172 |
// Description Lists
|
info@53
|
173 |
dl {
|
info@53
|
174 |
margin-top: 0; // Remove browser default
|
info@53
|
175 |
margin-bottom: @line-height-computed;
|
info@53
|
176 |
}
|
info@53
|
177 |
dt,
|
info@53
|
178 |
dd {
|
info@53
|
179 |
line-height: @line-height-base;
|
info@53
|
180 |
}
|
info@53
|
181 |
dt {
|
info@53
|
182 |
font-weight: bold;
|
info@53
|
183 |
}
|
info@53
|
184 |
dd {
|
info@53
|
185 |
margin-left: 0; // Undo browser default
|
info@53
|
186 |
}
|
info@53
|
187 |
|
info@53
|
188 |
// Horizontal description lists
|
info@53
|
189 |
//
|
info@53
|
190 |
// Defaults to being stacked without any of the below styles applied, until the
|
info@53
|
191 |
// grid breakpoint is reached (default of ~768px).
|
info@53
|
192 |
|
info@53
|
193 |
@media (min-width: @grid-float-breakpoint) {
|
info@53
|
194 |
.dl-horizontal {
|
info@53
|
195 |
dt {
|
info@53
|
196 |
float: left;
|
info@53
|
197 |
width: (@component-offset-horizontal - 20);
|
info@53
|
198 |
clear: left;
|
info@53
|
199 |
text-align: right;
|
info@53
|
200 |
.text-overflow();
|
info@53
|
201 |
}
|
info@53
|
202 |
dd {
|
info@53
|
203 |
margin-left: @component-offset-horizontal;
|
info@53
|
204 |
.clearfix(); // Clear the floated `dt` if an empty `dd` is present
|
info@53
|
205 |
}
|
info@53
|
206 |
}
|
info@53
|
207 |
}
|
info@53
|
208 |
|
info@53
|
209 |
// MISC
|
info@53
|
210 |
// ----
|
info@53
|
211 |
|
info@53
|
212 |
// Abbreviations and acronyms
|
info@53
|
213 |
abbr[title],
|
info@53
|
214 |
// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
|
info@53
|
215 |
abbr[data-original-title] {
|
info@53
|
216 |
cursor: help;
|
info@53
|
217 |
border-bottom: 1px dotted @abbr-border-color;
|
info@53
|
218 |
}
|
info@53
|
219 |
.initialism {
|
info@53
|
220 |
font-size: 90%;
|
info@53
|
221 |
text-transform: uppercase;
|
info@53
|
222 |
}
|
info@53
|
223 |
|
info@53
|
224 |
// Blockquotes
|
info@53
|
225 |
blockquote {
|
info@53
|
226 |
padding: (@line-height-computed / 2) @line-height-computed;
|
info@53
|
227 |
margin: 0 0 @line-height-computed;
|
info@53
|
228 |
border-left: 5px solid @blockquote-border-color;
|
info@53
|
229 |
p {
|
info@53
|
230 |
font-size: (@font-size-base * 1.25);
|
info@53
|
231 |
font-weight: 300;
|
info@53
|
232 |
line-height: 1.25;
|
info@53
|
233 |
}
|
info@53
|
234 |
p:last-child {
|
info@53
|
235 |
margin-bottom: 0;
|
info@53
|
236 |
}
|
info@53
|
237 |
small,
|
info@53
|
238 |
.small {
|
info@53
|
239 |
display: block;
|
info@53
|
240 |
line-height: @line-height-base;
|
info@53
|
241 |
color: @blockquote-small-color;
|
info@53
|
242 |
&:before {
|
info@53
|
243 |
content: '\2014 \00A0'; // EM DASH, NBSP
|
info@53
|
244 |
}
|
info@53
|
245 |
}
|
info@53
|
246 |
|
info@53
|
247 |
// Float right with text-align: right
|
info@53
|
248 |
&.pull-right {
|
info@53
|
249 |
padding-right: 15px;
|
info@53
|
250 |
padding-left: 0;
|
info@53
|
251 |
border-right: 5px solid @blockquote-border-color;
|
info@53
|
252 |
border-left: 0;
|
info@53
|
253 |
p,
|
info@53
|
254 |
small,
|
info@53
|
255 |
.small {
|
info@53
|
256 |
text-align: right;
|
info@53
|
257 |
}
|
info@53
|
258 |
small,
|
info@53
|
259 |
.small {
|
info@53
|
260 |
&:before {
|
info@53
|
261 |
content: '';
|
info@53
|
262 |
}
|
info@53
|
263 |
&:after {
|
info@53
|
264 |
content: '\00A0 \2014'; // NBSP, EM DASH
|
info@53
|
265 |
}
|
info@53
|
266 |
}
|
info@53
|
267 |
}
|
info@53
|
268 |
}
|
info@53
|
269 |
|
info@53
|
270 |
// Quotes
|
info@53
|
271 |
blockquote:before,
|
info@53
|
272 |
blockquote:after {
|
info@53
|
273 |
content: "";
|
info@53
|
274 |
}
|
info@53
|
275 |
|
info@53
|
276 |
// Addresses
|
info@53
|
277 |
address {
|
info@53
|
278 |
margin-bottom: @line-height-computed;
|
info@53
|
279 |
font-style: normal;
|
info@53
|
280 |
line-height: @line-height-base;
|
info@53
|
281 |
}
|