form-elements.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // form-elements
  2. // inputs
  3. .txt,
  4. textarea {
  5. display: block;
  6. box-sizing: border-box;
  7. width: 100%;
  8. padding: 0 10px;
  9. border: @input-border;
  10. font-family: 'geomanistbook';
  11. color: @default-font-color;
  12. .rounded(0);
  13. }
  14. .error .txt {
  15. border-color: #E05E73;
  16. border-radius: 2px;
  17. }
  18. .txt-small {
  19. height: 28px;
  20. font-size: 13px;
  21. }
  22. .txt-medium {
  23. height: 36px;
  24. font-size: 16px;
  25. }
  26. .txt-large {
  27. height: 40px;
  28. font-size: 18px;
  29. font-family: 'geomanistlight';
  30. }
  31. // buttons
  32. .btn {
  33. display: block;
  34. box-sizing: border-box;
  35. width: 100%;
  36. padding: 0 10px;
  37. border: none;
  38. .rounded(0);
  39. text-decoration: none;
  40. text-transform: uppercase;
  41. cursor: pointer;
  42. color: @button-color;
  43. font-family: 'geomanistbook';
  44. text-align: center;
  45. font-weight: normal;
  46. }
  47. .btn:hover {
  48. .drop-shadow(0, 1px, 2px, 0.4);
  49. }
  50. .btn-small {
  51. height: 28px;
  52. font-size: 14px;
  53. .rounded(0);
  54. }
  55. .btn-medium {
  56. height: 36px;
  57. font-size: 15px;
  58. .rounded(0);
  59. }
  60. .btn-large {
  61. height: 45px;
  62. font-size: 17px;
  63. .rounded(0);
  64. }
  65. .btn-default {
  66. background: @button-dafault-color;
  67. }
  68. .btn-default:hover {
  69. .gradient(lighten(@button-dafault-color, 10%), @button-dafault-color, lighten(@button-dafault-color, 10%));
  70. }
  71. .btn-default:active {
  72. .gradient(@button-dafault-color, lighten(@button-dafault-color, 5%), @button-dafault-color);
  73. }
  74. .btn-2 {
  75. background: @button-2-color;
  76. }
  77. .btn-2:hover {
  78. .gradient(lighten(@button-2-color, 10%), @button-2-color, lighten(@button-2-color, 10%));
  79. }
  80. .btn-2:active {
  81. .gradient(@button-2-color, lighten(@button-2-color, 5%), @button-2-color);
  82. }
  83. .btn-fb {
  84. background: @button-fb-color;
  85. }
  86. .btn-fb:hover {
  87. .gradient(lighten(@button-fb-color, 10%), @button-fb-color, lighten(@button-fb-color, 10%));
  88. }
  89. .btn-fb:active {
  90. .gradient(@button-fb-color, lighten(@button-fb-color, 5%), @button-fb-color);
  91. }
  92. .btn-google {
  93. background: @button-google-color;
  94. }
  95. .btn-google:hover {
  96. .gradient(lighten(@button-google-color, 10%), @button-google-color, lighten(@button-google-color, 10%));
  97. }
  98. .btn-google:active {
  99. .gradient(@button-google-color, lighten(@button-google-color, 5%), @button-google-color);
  100. }
  101. .search-btn {
  102. display: block;
  103. box-sizing: border-box;
  104. width: 40px;
  105. height: 40px;
  106. position: absolute;
  107. right: 0;
  108. top: 0;
  109. border: none;
  110. .rounded(0);
  111. text-decoration: none;
  112. text-transform: uppercase;
  113. cursor: pointer;
  114. background: @button-2-color url('../img/search-btn-bg.png') no-repeat center;
  115. }
  116. input[type="checkbox"] {
  117. display:none;
  118. }
  119. input[type="checkbox"] + label {
  120. cursor: pointer;
  121. .user-select(none);
  122. vertical-align: middle;
  123. display: inline-block;
  124. font-size: 14px;
  125. margin: 3px 0 0 0;
  126. }
  127. input[type="checkbox"] + label > span {
  128. display: inline-block;
  129. width: 19px;
  130. height: 19px;
  131. vertical-align: middle;
  132. border: 2px solid #b7c0c7;
  133. background: #ffffff;
  134. cursor: pointer;
  135. margin: 0 7px 0 0;
  136. text-align: center;
  137. font-size: 12px;
  138. position: relative;
  139. top: -2px;
  140. }
  141. input[type="checkbox"] + label > span > i {
  142. display: none;
  143. position: relative;
  144. top: -1px;
  145. }
  146. input[type="checkbox"]:checked + label > span {
  147. border-color: #0099c8;
  148. background: #0099c8;
  149. }
  150. input[type="checkbox"]:checked + label > span > i {
  151. display: inline-block;
  152. color: #ffffff;
  153. }