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