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