_forms.scss 2.5 KB

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