123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // Custom control
- // additional styles for custom checkboxes, radios and other
- //
-
- .custom-control-label {
- // Background-color and (when enabled) gradient
- &::before {
- border: $custom-control-indicator-border-width solid $custom-control-indicator-border-color;
- @if $enable-transitions {
- transition: $input-transition;
- }
- }
-
- span {
- position: relative;
- top: 2px;
- }
- }
-
- .custom-control-label {
- margin-bottom: 0;
- }
-
-
- // Alternative style
-
- .custom-control-alternative {
- .custom-control-label {
- // Background-color and (when enabled) gradient
- &::before {
- border: 0;
- box-shadow: $input-alternative-box-shadow;
- }
- }
-
- .custom-control-input {
- &:checked {
- ~ .custom-control-label {
- &::before {
- box-shadow: $input-focus-alternative-box-shadow;
- }
- }
- }
-
- &:active~.custom-control-label::before,
- &:focus~.custom-control-label::before {
- box-shadow: $input-alternative-box-shadow;
- }
- }
- }
|