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