form.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. @import "var";
  2. // colored buttons
  3. .btn {
  4. &:hover {
  5. }
  6. }
  7. .btn-small {
  8. font-size: 0.9*@baseFontSize;
  9. padding: .4em .9em;
  10. }
  11. .btn-large {
  12. font-size: 1.2*@baseFontSize;
  13. }
  14. .btn-green {
  15. background-color: @btnGreenColor;
  16. border: 1px solid @btnGreenColor;
  17. &:hover {
  18. background-color: @btnHoverGreenColor;
  19. color: #FFF;
  20. }
  21. }
  22. .btn-blue {
  23. background-color: @btnBlueColor;
  24. border: 1px solid @btnBlueColor;
  25. &:hover {
  26. background-color: @btnHoverBlueColor;
  27. color: #FFF;
  28. }
  29. }
  30. .btn-red {
  31. color: #FFF;
  32. background-color: @btnRedColor;
  33. border: 1px solid @btnRedColor;
  34. &:hover {
  35. background-color: @btnHoverRedColor;
  36. color: #FFF;
  37. }
  38. }
  39. .btn-orange {
  40. background-color: @btnOrangeColor;
  41. border: 1px solid @btnOrangeColor;
  42. &:hover {
  43. background-color: @btnHoverOrangeColor;
  44. color: #FFF;
  45. }
  46. }
  47. .btn-black {
  48. background-color: @btnBlackColor;
  49. border: 1px solid @btnBlackColor;
  50. &:hover {
  51. background-color: @btnHoverBlackColor;
  52. color: #FFF;
  53. }
  54. }
  55. .btn-gray {
  56. background-color: @btnGrayColor;
  57. color: @baseFontColor;
  58. border: 1px solid @btnGrayBorderColor;
  59. &:hover {
  60. background-color: @btnGrayHoverColor;
  61. color: @baseFontColor;
  62. }
  63. }
  64. // status buttons
  65. .btn-active {
  66. box-shadow: 0 0 0 1px rgba(0, 0, 0, .1) inset, 0 0 4px rgba(0, 0, 0, .15) inset
  67. }
  68. .btn-header {
  69. margin-top: -1px;
  70. color: white;
  71. padding: 0 10px;
  72. }
  73. .btn-link {
  74. overflow: visible;
  75. color: white;
  76. padding: .6em 1.2em;
  77. }
  78. .btn-radius {
  79. border-radius: .25em;
  80. }
  81. .btn-left-radius {
  82. border-top-left-radius: .25em;
  83. border-bottom-left-radius: .25em;
  84. }
  85. .btn-right-radius {
  86. border-top-right-radius: .25em;
  87. border-bottom-right-radius: .25em;
  88. }
  89. .btn-block {
  90. display: block;
  91. width: 100%;
  92. box-sizing: content-box;
  93. text-align: center;
  94. }
  95. .btn-disabled {
  96. opacity: .6;
  97. cursor: not-allowed;
  98. box-shadow: none;
  99. background-image: none !important;
  100. border: none;
  101. &:hover {
  102. background-image: none !important;
  103. color: @btnHoverFontColor;
  104. }
  105. }
  106. // input form elements
  107. .ipt {
  108. &:focus {
  109. border-color: @iptFocusBorderColor;
  110. }
  111. }
  112. .ipt-radius {
  113. border-radius: .25em;
  114. }
  115. .ipt-small {
  116. font-size: .8*@baseFontSize;
  117. }
  118. .ipt-large {
  119. font-size: 1.2*@baseFontSize;
  120. }
  121. .ipt-disabled,
  122. input[disabled] {
  123. background-color: @iptDisabledColor !important;
  124. &:focus {
  125. background-color: @iptDisabledColor !important;
  126. }
  127. color: #888;
  128. cursor: not-allowed;
  129. }
  130. .ipt-readonly,
  131. input[readonly] {
  132. &:focus {
  133. background-color: @iptDisabledColor !important;
  134. }
  135. }
  136. .ipt-error {
  137. border-color: @iptErrorBorderColor !important;
  138. background-color: @iptErrorFocusColor !important;
  139. }
  140. .form {
  141. label {
  142. margin-right: 1em;
  143. }
  144. .help {
  145. color: @formHelpFontColor;
  146. padding-top: .6em;
  147. display: inline-block;
  148. }
  149. }
  150. .form-stack {
  151. label {
  152. display: block;
  153. }
  154. .field {
  155. margin-bottom: 1em;
  156. }
  157. }
  158. .form-align {
  159. label,
  160. .form-label {
  161. display: inline-block;
  162. width: 120px;
  163. text-align: right;
  164. margin-right: 1em;
  165. }
  166. .field {
  167. margin-bottom: 1em;
  168. }
  169. }
  170. label.req {
  171. &:after {
  172. content: "*";
  173. color: @labelRedColor;
  174. }
  175. }