_forms.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. width: 360px;
  63. height: 100px;
  64. }
  65. input, select, textarea, button {
  66. padding: 5px 10px;
  67. background: $white;
  68. color: $grey-dark;
  69. font-family: "lato", "Helvetica", "Arial", sans-serif;
  70. font-size: 1rem;
  71. border: 1px solid $grey-light;
  72. border-radius: 2px;
  73. min-height: 25px;
  74. line-height: 25px;
  75. vertical-align: middle;
  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. }
  95. .form-group {
  96. padding: 5px;
  97. border-radius: 3px;
  98. &::after {
  99. content: "";
  100. display: block;
  101. clear: both;
  102. }
  103. &:hover {
  104. // background: #fff;
  105. // border: 1px solid #eee;
  106. // border-radius: 3px;
  107. // border: 1px solid #eee;
  108. }
  109. .group-name {
  110. padding: 10px 0;
  111. text-align: right;
  112. }
  113. .group-controls {
  114. min-height: 25px;
  115. padding: 5px 0;
  116. }
  117. .group-controls .control {
  118. line-height: 2.0em;
  119. }
  120. table {
  121. margin: 10px 0 0 220px;
  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. }