_forms.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. @use "mixins";
  2. @use "variables";
  3. /* btns */
  4. .btn {
  5. margin: 0;
  6. padding: 0.5rem 1.5rem;
  7. background: variables.$grey-lighter;
  8. color: variables.$grey-dark;
  9. font-size: 1rem;
  10. border: none;
  11. border-radius: 5px;
  12. min-height: 25px;
  13. min-width: 15px;
  14. line-height: 25px;
  15. vertical-align: middle;
  16. @include mixins.transition(all, 0.15s, ease-in-out);
  17. &.btn-important {
  18. background: variables.$main-first;
  19. color: variables.$white;
  20. &:hover,
  21. &:active {
  22. background: variables.$main-first-alt;
  23. }
  24. img {
  25. filter: brightness(3);
  26. }
  27. }
  28. &.btn-attention {
  29. background: variables.$alert-bg;
  30. color: #fff;
  31. &:hover,
  32. &:active {
  33. background: variables.$alert-text;
  34. }
  35. }
  36. &:hover {
  37. text-decoration: none;
  38. }
  39. }
  40. /*=== Forms */
  41. legend {
  42. margin: 2rem 0 1rem 0;
  43. padding: 0;
  44. display: inline-block;
  45. width: auto;
  46. font-size: 1rem;
  47. clear: both;
  48. text-transform: uppercase;
  49. letter-spacing: 1px;
  50. font-weight: 700;
  51. }
  52. label {
  53. min-height: 25px;
  54. padding: 5px 0;
  55. cursor: pointer;
  56. color: variables.$grey-dark;
  57. }
  58. textarea {
  59. max-width: 100%;
  60. width: 360px;
  61. height: 100px;
  62. }
  63. input, select, textarea, button {
  64. padding: 5px 10px;
  65. background: variables.$white;
  66. color: variables.$grey-dark;
  67. font-family: "lato", "Helvetica", "Arial", sans-serif;
  68. font-size: 1rem;
  69. border: 1px solid variables.$grey-light;
  70. border-radius: 2px;
  71. min-height: 25px;
  72. line-height: 25px;
  73. vertical-align: middle;
  74. }
  75. select {
  76. padding-top: 9px;
  77. padding-bottom: 9px;
  78. }
  79. option {
  80. padding: 0 .5em;
  81. }
  82. input:focus, select:focus, textarea:focus {
  83. color: variables.$main-font-color;
  84. border-color: variables.$main-first;
  85. }
  86. input:invalid, select:invalid {
  87. color: variables.$alert-bg;
  88. border-color: variables.$alert-bg;
  89. box-shadow: none;
  90. }
  91. input:disabled, select:disabled {
  92. background: variables.$grey-light;
  93. }
  94. .form-group {
  95. padding: 5px;
  96. border-radius: 3px;
  97. &::after {
  98. display: block;
  99. clear: both;
  100. }
  101. .group-name {
  102. padding: 10px 0;
  103. }
  104. .group-controls {
  105. min-height: 25px;
  106. padding: 5px 0;
  107. }
  108. .group-controls .control {
  109. line-height: 2.0em;
  110. }
  111. &.form-actions {
  112. margin: 15px 0 25px;
  113. padding: 5px 0;
  114. }
  115. &.form-actions .btn {
  116. margin: 0 0.5rem 0 0;
  117. }
  118. }