_forms.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /* btns */
  2. .btn {
  3. display: inline-block;
  4. min-height: 38px;
  5. min-width: 15px;
  6. line-height: 25px;
  7. margin: 0;
  8. padding: 0.5rem 1.5rem;
  9. font-size: 1rem;
  10. vertical-align: middle;
  11. cursor: pointer;
  12. overflow: hidden;
  13. background: $grey-lighter;
  14. border-radius: 5px;
  15. border: none;
  16. color: $grey-dark;
  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. display: inline-block;
  46. width: auto;
  47. margin: 2rem 0 1rem 0;
  48. padding: 0;
  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. width: 360px;
  63. height: 100px;
  64. }
  65. input, select, textarea, button {
  66. font-family: "lato", "Helvetica", "Arial", sans-serif;
  67. min-height: 25px;
  68. padding: 5px 10px;
  69. line-height: 25px;
  70. vertical-align: middle;
  71. background: $white;
  72. border: 1px solid $grey-light;
  73. font-size: 1rem;
  74. color: $grey-dark;
  75. border-radius: 2px;
  76. }
  77. option {
  78. padding: 0 .5em;
  79. }
  80. input:focus, select:focus, textarea:focus {
  81. color: $main-font-color;
  82. border-color: $main-first;
  83. }
  84. input:invalid, select:invalid {
  85. color: $alert-bg;
  86. border-color: $alert-bg;
  87. box-shadow: none;
  88. }
  89. input:disabled, select:disabled {
  90. background: $grey-light;
  91. }
  92. input.extend {
  93. transition: width 200ms linear;
  94. -moz-transition: width 200ms linear;
  95. -webkit-transition: width 200ms linear;
  96. -o-transition: width 200ms linear;
  97. -ms-transition: width 200ms linear;
  98. }
  99. .form-group {
  100. padding: 5px;
  101. border-radius: 3px;
  102. &::after {
  103. content: "";
  104. display: block;
  105. clear: both;
  106. }
  107. &:hover {
  108. // background: #fff;
  109. // border: 1px solid #eee;
  110. // border-radius: 3px;
  111. // border: 1px solid #eee;
  112. }
  113. .group-name {
  114. padding: 10px 0;
  115. text-align: right;
  116. }
  117. .group-controls {
  118. min-height: 25px;
  119. padding: 5px 0;
  120. }
  121. .group-controls .control {
  122. line-height: 2.0em;
  123. }
  124. table {
  125. margin: 10px 0 0 220px;
  126. }
  127. &.form-actions {
  128. margin: 15px 0 25px;
  129. padding: 5px 0;
  130. // background: #333;
  131. }
  132. &.form-actions .btn {
  133. margin: 0 0.5rem 0 0;
  134. }
  135. }