No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_custom-control.scss 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // Custom control
  3. // additional styles for custom checkboxes, radios and other
  4. //
  5. .custom-control-label {
  6. // Background-color and (when enabled) gradient
  7. &::before {
  8. border: $custom-control-indicator-border-width solid $custom-control-indicator-border-color;
  9. @if $enable-transitions {
  10. transition: $input-transition;
  11. }
  12. }
  13. span {
  14. position: relative;
  15. top: 2px;
  16. }
  17. }
  18. .custom-control-label {
  19. margin-bottom: 0;
  20. }
  21. // Alternative style
  22. .custom-control-alternative {
  23. .custom-control-label {
  24. // Background-color and (when enabled) gradient
  25. &::before {
  26. border: 0;
  27. box-shadow: $input-alternative-box-shadow;
  28. }
  29. }
  30. .custom-control-input {
  31. &:checked {
  32. ~ .custom-control-label {
  33. &::before {
  34. box-shadow: $input-focus-alternative-box-shadow;
  35. }
  36. }
  37. }
  38. &:active~.custom-control-label::before,
  39. &:focus~.custom-control-label::before {
  40. box-shadow: $input-alternative-box-shadow;
  41. }
  42. }
  43. }