forms.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. //some extra form variables
  2. @input-border: @default-border-color;
  3. @input-bg: @white;
  4. @input-color: @baseFontcolor;
  5. @input-focus-border: @themeColor;
  6. @input-focus-bg: @white;
  7. @input-focus-color: @gray-lighter;
  8. form {
  9. .input-icon {
  10. position:relative;
  11. input {
  12. padding-left:33px !important;
  13. }
  14. [class*="fa-"], [class^="fa-"], [class*=" glyphicon-"], [class^="glyphicon-"] {
  15. display:block;
  16. position:absolute;
  17. margin:11px 2px 4px 10px;
  18. width:16px;
  19. min-width:16px;
  20. height:16px;
  21. font-size:16px;
  22. font-weight: 400;
  23. }
  24. }
  25. .input-icon.right input {
  26. padding-left:15px !important;
  27. padding-right:33px !important;
  28. }
  29. .input-icon.right [class*="fa-"], [class^="fa-"] {
  30. right:8px;
  31. float:right;
  32. }
  33. .labels {
  34. cursor:pointer;
  35. }
  36. .input-group-addon {
  37. border: 1px solid @default-border-color;
  38. [class*=" fa-"], [class^="fa-"], [class*=" glyphicon-"], [class^="glyphicon-"] {
  39. color: @baseFontcolor;
  40. }
  41. }
  42. .form-group {
  43. .help-block {
  44. font-size: @baseFontSize - 1;
  45. margin-bottom: 5px;
  46. }
  47. }
  48. select, select.form-control {
  49. background-repeat: no-repeat!important;
  50. background-size: 10px 10px!important;
  51. background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSI2cHgiIHZpZXdCb3g9IjAgMCAxMCA2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA0NC4xICg0MTQ1NSkgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+UGF0aCA0PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+PC9kZWZzPgogICAgPGcgaWQ9IlZlbmRvciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9ImRldmVsb3Blci1kYXNoYm9hcmQtc3VibWl0LXRoZW1lIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOTY1LjAwMDAwMCwgLTQ5NC4wMDAwMDApIiBmaWxsPSIjRDFEOEREIj4KICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ1MC4wMDAwMDAsIDQ1Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoLTQiIHBvaW50cz0iNTE1IDQyIDUyNSA0MiA1MjAgNDgiPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+')!important;
  52. background-position: right 10px center!important;
  53. -webkit-appearance: none!important;
  54. }
  55. }
  56. .form-control {
  57. background-color:@input-bg;
  58. border:1px solid @input-border;
  59. box-shadow:none !important;
  60. height: 43px;
  61. &:hover {
  62. border-color:darken(@input-border,10%);
  63. }
  64. &:focus {
  65. .box-shadow(none);
  66. color: @input-color;
  67. border-color:@input-focus-border;
  68. background-color:@input-focus-bg;
  69. outline:0 none;
  70. .transition-duration(0.1s);
  71. }
  72. &.disabled, &.readonly, &disabled, &readonly {
  73. background-color: darken(@gray-lighter, 2%);
  74. }
  75. }
  76. #inputCaptcha.form-control {
  77. height: 29px;
  78. }
  79. .input-lg {
  80. height: 46px;
  81. }
  82. .input-sm {
  83. height: 30px;
  84. }
  85. .input-group-append {
  86. .btn {
  87. padding: .375rem .75rem;
  88. }
  89. }
  90. .input-fw-200 {
  91. @media (min-width:541px) {
  92. max-width: 200px;
  93. }
  94. }
  95. .input-group-text, .input-group-append {
  96. [class*="fa-"], [class^="fa-"] {
  97. opacity: 0.50;
  98. }
  99. }
  100. @media (min-width: 768px) {
  101. .form-inline .form-control {
  102. min-width: 50px;
  103. }
  104. }
  105. .checkbox label, .radio label {
  106. margin-bottom: 0;
  107. }
  108. .tswicther[type=checkbox] {
  109. position: absolute;
  110. opacity: 0;
  111. width: 0;
  112. height: 0;
  113. + span {
  114. display: flex;
  115. justify-content: center;
  116. cursor: pointer;
  117. font-size: 125%;
  118. transition: all .4s ease .2s;
  119. .fad {
  120. font-family: "Font Awesome 5 Duotone";
  121. &:before {
  122. content: "\f185";
  123. }
  124. &:after {
  125. content: "\10f185";
  126. }
  127. }
  128. }
  129. &:checked {
  130. + span {
  131. transform: rotate(365deg);
  132. .fad {
  133. &:before {
  134. content: "\f186";
  135. }
  136. &:after {
  137. content: "\10f186";
  138. }
  139. }
  140. }
  141. }
  142. }
  143. .select2-container--default {
  144. .select2-selection--single {
  145. .select2-selection__arrow {
  146. right: 5px;
  147. }
  148. }
  149. }
  150. .select2-container {
  151. width: 100%!important;
  152. min-width: 70px;
  153. .select2-selection--single, .select2-container--default {
  154. border: 1px solid @default-border-color;
  155. height: 43px;
  156. .select2-selection__rendered {
  157. line-height: 40px;
  158. }
  159. .select2-selection__arrow {
  160. height: 40px;
  161. }
  162. }
  163. .select2-selection--single {
  164. .select2-selection__rendered {
  165. padding-left: 0.75rem;
  166. padding-right: 0.75rem;
  167. }
  168. }
  169. .select2-dropdown {
  170. border: 1px solid @default-border-color;
  171. }
  172. .select2-search--dropdown .select2-search__field {
  173. outline: none!important;
  174. border-color: @default-border-color;
  175. }
  176. &.select2-container--default {
  177. .select2-results__option[aria-selected=true] {
  178. background-color: @gray-lighter;
  179. }
  180. .select2-results__option--highlighted.select2-results__option--selectable,
  181. .select2-results__option--highlighted[aria-selected] {
  182. background-color: @themeColor!important;
  183. }
  184. }
  185. }