_forms.scss 2.3 KB

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