_forms.scss 2.4 KB

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