##// END OF EJS Templates
ui: fixed problem with display of dt elements, fixes #4277
marcink -
r1087:d5020bd3 default
parent child Browse files
Show More
@@ -1,542 +1,541 b''
1 1 //
2 2 // Typography
3 3 // modified from Bootstrap
4 4 // --------------------------------------------------
5 5
6 6 // Base
7 7 body {
8 8 font-size: @basefontsize;
9 9 font-family: @text-light;
10 10 letter-spacing: .02em;
11 11 color: @grey2;
12 12 }
13 13
14 14 #content, label{
15 15 font-size: @basefontsize;
16 16 }
17 17
18 18 label {
19 19 color: @grey2;
20 20 }
21 21
22 22 ::selection { background: @rchighlightblue; }
23 23
24 24 // Headings
25 25 // -------------------------
26 26
27 27 h1, h2, h3, h4, h5, h6,
28 28 .h1, .h2, .h3, .h4, .h5, .h6 {
29 29 margin: 0 0 @textmargin 0;
30 30 padding: 0;
31 31 line-height: 1.8em;
32 32 color: @text-color;
33 33 a {
34 34 color: @rcblue;
35 35 }
36 36 }
37 37
38 38 h1, .h1 { font-size: 1.54em; font-family: @text-bold; }
39 39 h2, .h2 { font-size: 1.23em; font-family: @text-semibold; }
40 40 h3, .h3 { font-size: 1.23em; font-family: @text-regular; }
41 41 h4, .h4 { font-size: 1em; font-family: @text-bold; }
42 42 h5, .h5 { font-size: 1em; font-family: @text-bold-italic; }
43 43 h6, .h6 { font-size: 1em; font-family: @text-bold-italic; }
44 44
45 45 // Breadcrumbs
46 46 .breadcrumbs {
47 47 &:extend(h1);
48 48 margin: 0;
49 49 }
50 50
51 51 .breadcrumbs_light {
52 52 float:left;
53 53 margin: @padding 0;
54 54 }
55 55
56 56 // Body text
57 57 // -------------------------
58 58
59 59 p {
60 60 margin: 0 0 @textmargin 0;
61 61 padding: 0;
62 62 line-height: 2em;
63 63 }
64 64
65 65 .lead {
66 66 margin-bottom: @textmargin;
67 67 font-weight: 300;
68 68 line-height: 1.4;
69 69
70 70 @media (min-width: @screen-sm-min) {
71 71 font-size: (@basefontsize * 1.5);
72 72 }
73 73 }
74 74
75 75 a,
76 76 .link {
77 77 color: @rcblue;
78 78 text-decoration: none;
79 79 outline: none;
80 80 cursor: pointer;
81 81
82 82 &:focus {
83 83 outline: none;
84 84 }
85 85
86 86 &:hover {
87 87 color: @rcdarkblue;
88 88 }
89 89 }
90 90
91 91 img {
92 92 border: none;
93 93 outline: none;
94 94 }
95 95
96 96 strong {
97 97 font-family: @text-bold;
98 98 }
99 99
100 100 em {
101 101 font-family: @text-italic;
102 102 }
103 103
104 104 strong em,
105 105 em strong {
106 106 font-family: @text-bold-italic;
107 107 }
108 108
109 109 //TODO: lisa: b and i are depreciated, but we are still using them in places.
110 110 // Should probably make some decision whether to keep or lose these.
111 111 b {
112 112
113 113 }
114 114
115 115 i {
116 116 font-style: normal;
117 117 }
118 118
119 119 label {
120 120 color: @text-color;
121 121
122 122 input[type="checkbox"] {
123 123 margin-right: 1em;
124 124 }
125 125 input[type="radio"] {
126 126 margin-right: 1em;
127 127 }
128 128 }
129 129
130 130 code,
131 131 .code {
132 132 font-size: .95em;
133 133 font-family: "Lucida Console", Monaco, monospace;
134 134 color: @grey3;
135 135
136 136 a {
137 137 color: lighten(@rcblue,10%)
138 138 }
139 139 }
140 140
141 141 pre {
142 142 margin: 0;
143 143 padding: 0;
144 144 border: 0;
145 145 outline: 0;
146 146 font-size: @basefontsize*.95;
147 147 line-height: 1.4em;
148 148 font-family: "Lucida Console", Monaco, monospace;
149 149 color: @grey3;
150 150 }
151 151
152 152 // Emphasis & misc
153 153 // -------------------------
154 154
155 155 small,
156 156 .small {
157 157 font-size: 75%;
158 158 font-weight: normal;
159 159 line-height: 1em;
160 160 }
161 161
162 162 mark,
163 163 .mark {
164 164 background-color: @rclightblue;
165 165 padding: .2em;
166 166 }
167 167
168 168 // Alignment
169 169 .text-left { text-align: left; }
170 170 .text-right { text-align: right; }
171 171 .text-center { text-align: center; }
172 172 .text-justify { text-align: justify; }
173 173 .text-nowrap { white-space: nowrap; }
174 174
175 175 // Transformation
176 176 .text-lowercase { text-transform: lowercase; }
177 177 .text-uppercase { text-transform: uppercase; }
178 178 .text-capitalize { text-transform: capitalize; }
179 179
180 180 // Contextual colors
181 181 .text-muted {
182 182 color: @grey4;
183 183 }
184 184 .text-primary {
185 185 color: @rcblue;
186 186 }
187 187 .text-success {
188 188 color: @alert1;
189 189 }
190 190 .text-info {
191 191 color: @alert4;
192 192 }
193 193 .text-warning {
194 194 color: @alert3;
195 195 }
196 196 .text-danger {
197 197 color: @alert2;
198 198 }
199 199
200 200 // Contextual backgrounds
201 201 .bg-primary {
202 202 background-color: white;
203 203 }
204 204 .bg-success {
205 205 background-color: @alert1;
206 206 }
207 207 .bg-info {
208 208 background-color: @alert4;
209 209 }
210 210 .bg-warning {
211 211 background-color: @alert3;
212 212 }
213 213 .bg-danger {
214 214 background-color: @alert2;
215 215 }
216 216
217 217
218 218 // Page header
219 219 // -------------------------
220 220
221 221 .page-header {
222 222 margin: @pagepadding 0 @textmargin;
223 223 border-bottom: @border-thickness solid @grey5;
224 224 }
225 225
226 226 .title {
227 227 clear: both;
228 228 float: left;
229 229 width: 100%;
230 230 margin: @pagepadding 0 @pagepadding;
231 231
232 232 .breadcrumbs{
233 233 float: left;
234 234 clear: both;
235 235 width: 700px;
236 236 margin: 0;
237 237
238 238 .q_filter_box {
239 239 margin-right: @padding;
240 240 }
241 241 }
242 242
243 243 h1 a {
244 244 color: @rcblue;
245 245 }
246 246
247 247 input{
248 248 margin-right: @padding;
249 249 }
250 250
251 251 h5, .h5 {
252 252 color: @grey1;
253 253 margin-bottom: @space;
254 254
255 255 span {
256 256 display: inline-block;
257 257 }
258 258 }
259 259
260 260 p {
261 261 margin-bottom: 0;
262 262 }
263 263
264 264 .links {
265 265 float: right;
266 266 display: inline;
267 267 margin: 0;
268 268 padding-left: 0;
269 269 list-style: none;
270 270 text-align: right;
271 271
272 272 li:before { content: none; }
273 273 li { float: right; }
274 274 a {
275 275 display: inline-block;
276 276 margin-left: @textmargin/2;
277 277 }
278 278 }
279 279
280 280 .title-content {
281 281 float: left;
282 282 margin: 0;
283 283 padding: 0;
284 284
285 285 & + .breadcrumbs {
286 286 margin-top: @padding;
287 287 }
288 288
289 289 & + .links {
290 290 margin-top: -@button-padding;
291 291
292 292 & + .breadcrumbs {
293 293 margin-top: @padding;
294 294 }
295 295 }
296 296 }
297 297
298 298 .title-main {
299 299 font-size: @repo-title-fontsize;
300 300 }
301 301
302 302 .title-description {
303 303 margin-top: .5em;
304 304 }
305 305
306 306 .q_filter_box {
307 307 width: 200px;
308 308 }
309 309
310 310 }
311 311
312 312 #readme .title {
313 313 text-transform: none;
314 314 }
315 315
316 316 // Lists
317 317 // -------------------------
318 318
319 319 // Unordered and Ordered lists
320 320 ul,
321 321 ol {
322 322 margin-top: 0;
323 323 margin-bottom: @textmargin;
324 324 ul,
325 325 ol {
326 326 margin-bottom: 0;
327 327 }
328 328 }
329 329
330 330 li {
331 331 line-height: 2em;
332 332 }
333 333
334 334 ul li {
335 335 position: relative;
336 336 display: block;
337 337 list-style-type: none;
338 338
339 339 &:before {
340 340 content: "\2014\00A0";
341 341 position: absolute;
342 342 top: 0;
343 343 left: -1.25em;
344 344 }
345 345
346 346 p:first-child {
347 347 display:inline;
348 348 }
349 349 }
350 350
351 351 // List options
352 352
353 353 // Unstyled keeps list items block level, just removes default browser padding and list-style
354 354 .list-unstyled {
355 355 padding-left: 0;
356 356 list-style: none;
357 357 li:before { content: none; }
358 358 }
359 359
360 360 // Inline turns list items into inline-block
361 361 .list-inline {
362 362 .list-unstyled();
363 363 margin-left: -5px;
364 364
365 365 > li {
366 366 display: inline-block;
367 367 padding-left: 5px;
368 368 padding-right: 5px;
369 369 }
370 370 }
371 371
372 372 // Description Lists
373 373
374 374 dl {
375 375 margin-top: 0; // Remove browser default
376 376 margin-bottom: @textmargin;
377 377 }
378 378
379 379 dt,
380 380 dd {
381 381 line-height: 1.4em;
382 382 }
383 383
384 384 dt {
385 385 margin: @textmargin 0 0 0;
386 386 font-family: @text-bold;
387 387 }
388 388
389 389 dd {
390 390 margin-left: 0; // Undo browser default
391 391 }
392 392
393 393 // Horizontal description lists
394 394 // Defaults to being stacked without any of the below styles applied, until the
395 395 // grid breakpoint is reached (default of ~768px).
396 396 // These are used in forms as well; see style guide.
397 397 // TODO: lisa: These should really not be used in forms.
398 398
399 399 .dl-horizontal {
400 400
401 401 overflow: hidden;
402 margin-top: -5px;
403 402 margin-bottom: @space;
404 403
405 404 dt, dd {
406 405 float: left;
407 406 margin: 5px 0 5px 0;
408 407 }
409 408
410 409 dt {
411 410 clear: left;
412 411 width: @label-width - @form-vertical-margin;
413 412 }
414 413
415 414 dd {
416 415 &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
417 416 margin-left: @form-vertical-margin;
418 417 max-width: @form-max-width - (@label-width - @form-vertical-margin) - @form-vertical-margin;
419 418 }
420 419
421 420 pre {
422 421 margin: 0;
423 422 }
424 423
425 424 &.settings {
426 425 dt {
427 426 text-align: left;
428 427 }
429 428 }
430 429
431 430 @media (min-width: 768px) {
432 431 dt {
433 432 float: left;
434 433 width: 180px;
435 434 clear: left;
436 435 text-align: right;
437 436 }
438 437 dd {
439 438 margin-left: 20px;
440 439 }
441 440 }
442 441 }
443 442
444 443
445 444 // Misc
446 445 // -------------------------
447 446
448 447 // Abbreviations and acronyms
449 448 abbr[title],
450 449 abbr[data-original-title] {
451 450 cursor: help;
452 451 border-bottom: @border-thickness dotted @grey4;
453 452 }
454 453 .initialism {
455 454 font-size: 90%;
456 455 text-transform: uppercase;
457 456 }
458 457
459 458 // Blockquotes
460 459 blockquote {
461 460 padding: 1em 2em;
462 461 margin: 0 0 2em;
463 462 font-size: @basefontsize;
464 463 border-left: 2px solid @grey6;
465 464
466 465 p,
467 466 ul,
468 467 ol {
469 468 &:last-child {
470 469 margin-bottom: 0;
471 470 }
472 471 }
473 472
474 473 footer,
475 474 small,
476 475 .small {
477 476 display: block;
478 477 font-size: 80%;
479 478
480 479 &:before {
481 480 content: '\2014 \00A0'; // em dash, nbsp
482 481 }
483 482 }
484 483 }
485 484
486 485 // Opposite alignment of blockquote
487 486 //
488 487 .blockquote-reverse,
489 488 blockquote.pull-right {
490 489 padding-right: 15px;
491 490 padding-left: 0;
492 491 border-right: 5px solid @grey6;
493 492 border-left: 0;
494 493 text-align: right;
495 494
496 495 // Account for citation
497 496 footer,
498 497 small,
499 498 .small {
500 499 &:before { content: ''; }
501 500 &:after {
502 501 content: '\00A0 \2014'; // nbsp, em dash
503 502 }
504 503 }
505 504 }
506 505
507 506 // Addresses
508 507 address {
509 508 margin-bottom: 2em;
510 509 font-style: normal;
511 510 line-height: 1.8em;
512 511 }
513 512
514 513 .error-message {
515 514 display: block;
516 515 margin: @padding/3 0;
517 516 color: @alert2;
518 517 }
519 518
520 519 .issue-tracker-link {
521 520 color: @rcblue;
522 521 }
523 522
524 523 .info_text{
525 524 font-size: @basefontsize;
526 525 color: @grey4;
527 526 font-family: @text-regular;
528 527 }
529 528
530 529 // help block text
531 530 .help-block {
532 531 display: block;
533 532 margin: 0 0 @padding;
534 533 color: @grey4;
535 534 font-family: @text-light;
536 535 }
537 536
538 537 .error-message {
539 538 display: block;
540 539 margin: @padding/3 0;
541 540 color: @alert2;
542 541 }
General Comments 0
You need to be logged in to leave comments. Login now