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.

_input-control.scss 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .form-control {
  2. padding: 16px 0;
  3. &:first-child {
  4. padding-top: 0;
  5. }
  6. &:last-child {
  7. padding-bottom: 0;
  8. }
  9. &__text {
  10. margin: 8px 0;
  11. font-size: 1em
  12. }
  13. &__label {
  14. font-size: 1em;
  15. font-weight: $labelFontWeight;
  16. }
  17. &__input {
  18. margin-bottom: 8px;
  19. @include transition(all .2s ease-in);
  20. &:last-child {
  21. margin-bottom: inherit;
  22. }
  23. &::selection {
  24. background-color: $defaultDarkSelectionColor;
  25. }
  26. &.error {
  27. color: $errorColor;
  28. border-color: $errorColor;
  29. }
  30. }
  31. &__em {
  32. color: $inputControlEmColor;
  33. }
  34. &__hint {
  35. margin-top: 0;
  36. font-size: $hintFontSize;
  37. span {
  38. vertical-align: middle;
  39. }
  40. &_error {
  41. color: $errorColor;
  42. }
  43. }
  44. &__container {
  45. position: relative;
  46. width: 100%;
  47. margin-top: 5px;
  48. margin-bottom: 5px;
  49. @include flex();
  50. .button-control {
  51. margin: 1px 0 1px 10px;
  52. }
  53. }
  54. &__right {
  55. position: absolute;
  56. right: 0;
  57. }
  58. }
  59. /**
  60. * Set a specific color for read only style.
  61. */
  62. input:read-only {
  63. color: $readOnlyInputColor;
  64. }