Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Bootstrap Switch |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .bootstrap-switch { |
||
| 6 | border-color: $input-border; |
||
| 7 | |||
| 8 | &.bootstrap-switch-focused { |
||
| 9 | box-shadow: none; |
||
| 10 | border-color: $input-border; |
||
| 11 | } |
||
| 12 | } |
||
| 13 | |||
| 14 | /*** |
||
| 15 | Color variants |
||
| 16 | ***/ |
||
| 17 | |||
| 18 | @mixin bootstrap-switch-variant($state, $background, $text) { |
||
| 19 | |||
| 20 | .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-#{$state}, |
||
| 21 | .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-#{$state} { |
||
| 22 | color: $text; |
||
| 23 | background: $background; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | @include bootstrap-switch-variant("primary", $btn-primary-bg, $btn-primary-color); |
||
| 28 | @include bootstrap-switch-variant("info", $btn-info-bg, $btn-info-color); |
||
| 29 | @include bootstrap-switch-variant("success", $btn-success-bg, $btn-success-color); |
||
| 30 | @include bootstrap-switch-variant("warning", $btn-warning-bg, $btn-warning-color); |
||
| 31 | @include bootstrap-switch-variant("danger", $btn-danger-bg, $btn-danger-color); |
||
| 32 | @include bootstrap-switch-variant("default", lighten($brand-default, 15%), #444); |
||
| 33 | |||
| 34 | /* Bootstrap switch on portlet headers */ |
||
| 35 | .portlet > { |
||
| 36 | .portlet-title { |
||
| 37 | > .actions { |
||
| 38 | > .bootstrap-switch { |
||
| 39 | border-color: transparent; |
||
| 40 | margin-top: 0px; |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |