shared.sass 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @import "../utilities/controls"
  2. @import "../utilities/mixins"
  3. $form-colors: $colors !default
  4. $input-color: $text-strong !default
  5. $input-background-color: $scheme-main !default
  6. $input-border-color: $border !default
  7. $input-height: $control-height !default
  8. $input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default
  9. $input-placeholder-color: bulmaRgba($input-color, 0.3) !default
  10. $input-hover-color: $text-strong !default
  11. $input-hover-border-color: $border-hover !default
  12. $input-focus-color: $text-strong !default
  13. $input-focus-border-color: $link !default
  14. $input-focus-box-shadow-size: 0 0 0 0.125em !default
  15. $input-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
  16. $input-disabled-color: $text-light !default
  17. $input-disabled-background-color: $background !default
  18. $input-disabled-border-color: $background !default
  19. $input-disabled-placeholder-color: bulmaRgba($input-disabled-color, 0.3) !default
  20. $input-arrow: $link !default
  21. $input-icon-color: $border !default
  22. $input-icon-active-color: $text !default
  23. $input-radius: $radius !default
  24. =input
  25. @extend %control
  26. background-color: $input-background-color
  27. border-color: $input-border-color
  28. border-radius: $input-radius
  29. color: $input-color
  30. +placeholder
  31. color: $input-placeholder-color
  32. &:hover,
  33. &.is-hovered
  34. border-color: $input-hover-border-color
  35. &:focus,
  36. &.is-focused,
  37. &:active,
  38. &.is-active
  39. border-color: $input-focus-border-color
  40. box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
  41. &[disabled],
  42. fieldset[disabled] &
  43. background-color: $input-disabled-background-color
  44. border-color: $input-disabled-border-color
  45. box-shadow: none
  46. color: $input-disabled-color
  47. +placeholder
  48. color: $input-disabled-placeholder-color
  49. %input
  50. +input