Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Input icons |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .input-icon { |
||
| 6 | position: relative; |
||
| 7 | left: 0; |
||
| 8 | |||
| 9 | |||
| 10 | > .form-control { |
||
| 11 | padding-left: 33px; |
||
| 12 | |||
| 13 | .input-group & { |
||
| 14 | @include border-radius($general-border-radius 0 0 $general-border-radius); |
||
| 15 | } |
||
| 16 | } |
||
| 17 | |||
| 18 | > i { |
||
| 19 | color: #ccc; |
||
| 20 | display: block; |
||
| 21 | position: absolute; |
||
| 22 | margin: 11px 2px 4px 10px; |
||
| 23 | z-index: 3; |
||
| 24 | width: 16px; |
||
| 25 | font-size: 16px; |
||
| 26 | text-align: center; |
||
| 27 | left: 0; |
||
| 28 | |||
| 29 | .modal & { |
||
| 30 | z-index: $zindex-modal + 5; |
||
| 31 | } |
||
| 32 | |||
| 33 | .has-success & { |
||
| 34 | color: $brand-success; |
||
| 35 | } |
||
| 36 | |||
| 37 | .has-warning & { |
||
| 38 | color: $brand-warning; |
||
| 39 | } |
||
| 40 | |||
| 41 | .has-info & { |
||
| 42 | color: $brand-info; |
||
| 43 | } |
||
| 44 | |||
| 45 | .has-error & { |
||
| 46 | color: $brand-danger; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | &.right { |
||
| 51 | left: auto; |
||
| 52 | right: 0; |
||
| 53 | |||
| 54 | > .form-control { |
||
| 55 | padding-right: 33px; |
||
| 56 | padding-left: 12px; |
||
| 57 | |||
| 58 | .input-group & { |
||
| 59 | @include border-radius(0 $general-border-radius $general-border-radius 0); |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | > i { |
||
| 64 | left: auto; |
||
| 65 | right: 8px; |
||
| 66 | float: right; |
||
| 67 | } |
||
| 68 | } |
||
| 69 | |||
| 70 | &.input-icon-lg { |
||
| 71 | > i { |
||
| 72 | margin-top: 16px; |
||
| 73 | } |
||
| 74 | } |
||
| 75 | |||
| 76 | &.input-icon-sm { |
||
| 77 | > i { |
||
| 78 | margin-top: 8px; |
||
| 79 | font-size: 13px; |
||
| 80 | } |
||
| 81 | } |
||
| 82 | } |