No Description

_input-group.scss 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. .form-group.has-danger .error,
  2. .input-group.has-danger .error {
  3. color: $danger-states;
  4. }
  5. .form-group.has-success .error,
  6. .input-group.has-success .error {
  7. color: $success;
  8. }
  9. @include form-control-lg-padding($padding-lg-vertical, $padding-input-horizontal);
  10. @include input-base-padding($padding-input-vertical, $padding-input-horizontal);
  11. .form-group.no-border,
  12. .input-group.no-border{
  13. .form-control,
  14. .form-control + .input-group-prepend .input-group-text,
  15. .form-control + .input-group-append .input-group-text{
  16. background-color: lighten($black,1%);
  17. border: medium none;
  18. &:focus,
  19. &:active,
  20. &:active{
  21. border: medium none;
  22. background-color: lighten($black,2%);
  23. }
  24. }
  25. .form-control{
  26. &:focus{
  27. & + .input-group-prepend .input-group-text,
  28. & + .input-group-append .input-group-text{
  29. background-color: lighten($black,2%);
  30. }
  31. }
  32. }
  33. .input-group-prepend .input-group-text,
  34. .input-group-append .input-group-text{
  35. background-color: lighten($black,1%);;
  36. border: none;
  37. }
  38. }
  39. .has-error{
  40. .form-control-feedback, .control-label{
  41. color: $danger-states;
  42. }
  43. }
  44. .has-success{
  45. .form-control-feedback, .control-label{
  46. color: $success;
  47. }
  48. }
  49. .input-group-append .input-group-text,
  50. .input-group-prepend .input-group-text {
  51. background-color: transparent;
  52. border: 1px solid lighten($black,5%);
  53. border-radius: $border-radius-lg;
  54. color: $white;
  55. & i{
  56. opacity: .5;
  57. }
  58. @include transition-input-focus-color();
  59. .has-danger.input-group-focus &{
  60. background-color: $transparent-bg;
  61. }
  62. .has-success &{
  63. background-color: $transparent-bg;
  64. }
  65. .has-danger .form-control:focus + &{
  66. color: $danger-states;
  67. }
  68. .has-success .form-control:focus + &{
  69. color: $success;
  70. }
  71. & + .form-control,
  72. & ~ .form-control{
  73. @include input-size($padding-base-vertical - 1, $padding-base-horizontal);
  74. padding-left: 18px;
  75. }
  76. i{
  77. width: 17px;
  78. }
  79. }
  80. .input-group-append,
  81. .input-group-prepend .input-group-text,
  82. .input-group-prepend .input-group-text {
  83. background-color: transparent;
  84. border: 1px solid lighten($black,5%);
  85. border-radius: $border-radius-lg;
  86. color: $white;
  87. margin: 0;
  88. }
  89. .input-group-append .input-group-text{
  90. border-left: none;
  91. }
  92. .input-group-prepend .input-group-text{
  93. border-right: none;
  94. }
  95. .input-group-focus{
  96. .input-group-prepend .input-group-text,
  97. .input-group-append .input-group-text{
  98. background-color: $white;
  99. border-color: $primary;
  100. background-color: $transparent-bg;
  101. border-color: $primary;
  102. }
  103. &.no-border{
  104. .input-group-prepend .input-group-text,
  105. .input-group-append .input-group-text{
  106. background-color: lighten($black,2%);
  107. }
  108. }
  109. }
  110. .input-group,
  111. .form-group{
  112. margin-bottom: 10px;
  113. position: relative;
  114. .form-control-static{
  115. margin-top: 9px;
  116. }
  117. }
  118. .input-group[disabled]{
  119. .input-group-prepend .input-group-text,
  120. .input-group-append .input-group-text{
  121. background-color: $light-gray;
  122. }
  123. }
  124. .input-group .form-control:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child){
  125. border-radius: $border-radius-lg;
  126. border-top-left-radius: 0;
  127. border-bottom-left-radius: 0;
  128. border-left: 0 none;
  129. }
  130. .input-group .form-control:first-child,
  131. .input-group-btn:first-child > .dropdown-toggle,
  132. .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
  133. border-right: 0 none;
  134. }
  135. .input-group .form-control:last-child,
  136. .input-group-btn:last-child > .dropdown-toggle,
  137. .input-group-btn:first-child > .btn:not(:first-child) {
  138. border-left: 0 none;
  139. }
  140. .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
  141. background-color: $black-states;
  142. color: $default;
  143. cursor: not-allowed;
  144. }
  145. .input-group-btn .btn{
  146. border-width: $border-thin;
  147. padding: $padding-btn-vertical $padding-base-horizontal;
  148. }
  149. .input-group-btn .btn-default:not(.btn-fill){
  150. border-color: $medium-gray;
  151. }
  152. .input-group-btn:last-child > .btn{
  153. margin-left: 0;
  154. }
  155. textarea.form-control{
  156. max-width: 100%;
  157. max-height: 80px;
  158. padding: 10px 10px 0 0;
  159. resize: none;
  160. border: none;
  161. border-bottom: 1px solid lighten($black,5%);
  162. border-radius: 0;
  163. line-height: 2;
  164. &:focus,
  165. &:active{
  166. border-left: none;
  167. border-top: none;
  168. border-right: none;
  169. }
  170. }
  171. .has-success,
  172. .has-danger{
  173. &.form-group .form-control,
  174. &.form-group.no-border .form-control{
  175. padding-right: $input-padding-horizontal + 21;
  176. }
  177. }
  178. .form.form-newsletter .form-group{
  179. float: left;
  180. width: 78%;
  181. margin-right: 2%;
  182. margin-top: 9px;
  183. }
  184. .input-group .input-group-btn{
  185. padding: 0 12px;
  186. }
  187. // Input files - hide actual input - requires specific markup in the sample.
  188. .form-group input[type=file] {
  189. opacity: 0;
  190. position: absolute;
  191. top: 0;
  192. right: 0;
  193. bottom: 0;
  194. left: 0;
  195. width: 100%;
  196. height: 100%;
  197. z-index: 100;
  198. }
  199. .form-text{
  200. font-size: $font-size-sm;
  201. color: rgba($white,0.8);
  202. }
  203. .form-control-lg{
  204. padding: 0;
  205. font-size: inherit;
  206. line-height: 0;
  207. border-radius: 0;
  208. .form-control {
  209. height: calc(2.875rem + 2px);
  210. }
  211. }
  212. .form-horizontal{
  213. .col-form-label,
  214. .label-on-right{
  215. padding: 10px 5px 0 15px;
  216. text-align: right;
  217. max-width: 180px;
  218. }
  219. .checkbox-radios{
  220. margin-bottom: 15px;
  221. .form-check:first-child{
  222. margin-top: 8px;
  223. }
  224. }
  225. .label-on-right{
  226. text-align: left;
  227. padding: 10px 15px 0 5px;
  228. }
  229. .form-check-inline{
  230. margin-top: 6px;
  231. .form-check-label{
  232. margin-right: 1.5rem;
  233. }
  234. }
  235. }
  236. .search-bar{
  237. margin-left: $margin-lg-vertical;
  238. .btn{
  239. margin: 0;
  240. }
  241. &.input-group{
  242. border-radius: 25px;
  243. z-index: 4;
  244. margin-bottom: 0;
  245. height: 43px;
  246. padding-right: 5px;
  247. .input-group-addon{
  248. padding: 10px;
  249. background: transparent;
  250. border: none;
  251. color: rgba(255, 255, 255, 0.7);
  252. }
  253. i{
  254. font-size: 20px;
  255. color: $white;
  256. margin-top: 0 !important;
  257. }
  258. input{
  259. background: transparent;
  260. border:none !important;
  261. border-radius: 0;
  262. padding: 12px !important;
  263. font-size: 12px;
  264. opacity: 0.5;
  265. &:focus{
  266. background: transparent;
  267. }
  268. }
  269. .form-control{
  270. opacity: 1;
  271. color: $white;
  272. &::placeholder{
  273. color: white;
  274. }
  275. }
  276. }
  277. }
  278. .modal-search .modal-dialog{
  279. max-width: 1000px;
  280. margin: 20px auto;
  281. .form-control{
  282. border: none;
  283. color: $black;
  284. &::placeholder{
  285. color: $black;
  286. }
  287. }
  288. }
  289. .input-group-prepend{
  290. margin-right: 0;
  291. }
  292. .input-group-prepend,
  293. .input-group-append {
  294. .tim-icons {
  295. font-size: $font-paragraph;
  296. }
  297. }