_forms.scss 2.3 KB

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