Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Customized Bootstrap Labels |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .label { |
||
| 6 | text-shadow: none !important; |
||
| 7 | font-size: 14px; |
||
| 8 | font-weight: 300; |
||
| 9 | padding: 3px 6px 3px 6px; |
||
| 10 | color: #fff; |
||
| 11 | font-family: $font-family-primary; |
||
| 12 | |||
| 13 | &.label-sm { |
||
| 14 | font-size: 13px; |
||
| 15 | padding: 2px 5px 2px 5px; |
||
| 16 | } |
||
| 17 | |||
| 18 | h1 &, |
||
| 19 | h2 &, |
||
| 20 | h3 &, |
||
| 21 | h4 &, |
||
| 22 | h5 &, |
||
| 23 | h6 & { |
||
| 24 | font-size:75%; |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | /* Labels variants */ |
||
| 29 | |||
| 30 | .label-default { |
||
| 31 | @include label-variant($brand-default); |
||
| 32 | } |
||
| 33 | |||
| 34 | .label-primary { |
||
| 35 | @include label-variant($brand-primary); |
||
| 36 | } |
||
| 37 | |||
| 38 | .label-success { |
||
| 39 | @include label-variant($brand-success); |
||
| 40 | } |
||
| 41 | |||
| 42 | .label-info { |
||
| 43 | @include label-variant($brand-info); |
||
| 44 | } |
||
| 45 | |||
| 46 | .label-warning { |
||
| 47 | @include label-variant($brand-warning); |
||
| 48 | } |
||
| 49 | |||
| 50 | .label-danger { |
||
| 51 | @include label-variant($brand-danger); |
||
| 52 | } |
||
| 53 | |||
| 54 | /*** |
||
| 55 | Iconic labels |
||
| 56 | ***/ |
||
| 57 | |||
| 58 | .label.label-icon { |
||
| 59 | padding: 4px 0px 4px 4px; |
||
| 60 | margin-right: 2px; |
||
| 61 | text-align: center !important; |
||
| 62 | |||
| 63 | > i { |
||
| 64 | font-size: 12px; |
||
| 65 | text-align: center !important; |
||
| 66 | } |
||
| 67 | |||
| 68 | .ie8 &, |
||
| 69 | .ie9 & { |
||
| 70 | padding: 3px 0px 3px 3px; |
||
| 71 | } |
||
| 72 | } |
||
| 73 | |||
| 74 | /*** |
||
| 75 | Text states |
||
| 76 | ***/ |
||
| 77 | |||
| 78 | .text-default { |
||
| 79 | color: $brand-default; |
||
| 80 | } |
||
| 81 | |||
| 82 | .text-primary { |
||
| 83 | color: $brand-primary; |
||
| 84 | } |
||
| 85 | |||
| 86 | .text-success { |
||
| 87 | color: $brand-success; |
||
| 88 | } |
||
| 89 | |||
| 90 | .text-info { |
||
| 91 | color: $brand-info; |
||
| 92 | } |
||
| 93 | |||
| 94 | .text-warning { |
||
| 95 | color: $brand-warning; |
||
| 96 | } |
||
| 97 | |||
| 98 | .text-danger { |
||
| 99 | color: $brand-danger; |
||
| 100 | } |
||
| 101 | |||
| 102 | @if $theme-type == "material-design" { |
||
| 103 | .label:not(.md-skip) { |
||
| 104 | @extend .md-shadow-z-1; |
||
| 105 | text-transform: uppercase; |
||
| 106 | padding: 2px 6px 4px 6px; |
||
| 107 | font-size: 10px; |
||
| 108 | font-weight: 600; |
||
| 109 | |||
| 110 | &.label-sm { |
||
| 111 | font-size: 10px; |
||
| 112 | font-weight: 600; |
||
| 113 | padding: 3px 6px 3px 6px; |
||
| 114 | } |
||
| 115 | } |
||
| 116 | |||
| 117 | .label:not(.md-skip).label-icon { |
||
| 118 | padding: 4px 0px 4px 4px !important; |
||
| 119 | font-size: 12px !important; |
||
| 120 | |||
| 121 | .ie8 &, |
||
| 122 | .ie9 & { |
||
| 123 | padding: 3px 0 3px 3px !important; |
||
| 124 | } |
||
| 125 | } |
||
| 126 | } |