forms.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. /* Forms */
  2. fieldset {
  3. margin: 0;
  4. padding: 0;
  5. border: 0;
  6. }
  7. legend {
  8. font-size: 21px;
  9. line-height: inherit;
  10. display: block;
  11. width: 100%;
  12. margin-bottom: 20px;
  13. padding: 0;
  14. color: #333;
  15. border: 0;
  16. border-bottom: 1px solid #dfe8f1;
  17. }
  18. label {
  19. font-weight: bold;
  20. display: inline-block;
  21. }
  22. input[type='radio'],
  23. input[type='checkbox'] {
  24. line-height: normal;
  25. }
  26. input[type='file'] {
  27. display: block;
  28. }
  29. select[multiple],
  30. select[size] {
  31. height: auto;
  32. }
  33. select optgroup {
  34. font-family: inherit;
  35. font-size: inherit;
  36. font-style: inherit;
  37. }
  38. input[type='file']:focus,
  39. input[type='radio']:focus,
  40. input[type='checkbox']:focus {
  41. outline: thin dotted #333;
  42. outline: 5px auto -webkit-focus-ring-color;
  43. outline-offset: -2px;
  44. }
  45. input[type='number']::-webkit-outer-spin-button,
  46. input[type='number']::-webkit-inner-spin-button {
  47. height: auto;
  48. }
  49. output {
  50. font-size: 14px;
  51. line-height: 1.428571429;
  52. display: block;
  53. padding-top: 7px;
  54. vertical-align: middle;
  55. color: #555;
  56. }
  57. div.dataTables_filter input,
  58. .chosen-container-single .chosen-search input,
  59. .input,
  60. .form-control,
  61. .dataTables_length select,
  62. .chosen-container-multi,
  63. .bootstrap-timepicker-widget table td input,
  64. .ui-toolbar select,
  65. .ui-toolbar input {
  66. font-size: 13px;
  67. display: block;
  68. float: none;
  69. background: #fff;
  70. width: 100%;
  71. height: 34px;
  72. padding: 6px 12px;
  73. color: #2b2f33;
  74. border: #dfe8f1 solid 1px;
  75. -webkit-box-shadow: inset 1px 1px 3px #f6f6f6;
  76. -moz-box-shadow: inset 1px 1px 3px #f6f6f6;
  77. box-shadow: inset 1px 1px 3px #f6f6f6;
  78. }
  79. .chosen-container-multi.chosen-with-drop.chosen-container-active {
  80. border: #ddd solid 1px;
  81. border-bottom-right-radius: 0;
  82. border-bottom-left-radius: 0;
  83. box-shadow: 0 0 0 transparent;
  84. }
  85. div.dataTables_filter input:focus,
  86. .input:focus,
  87. .form-control:focus,
  88. .chosen-container-active,
  89. .chosen-container-multi.chosen-container-active,
  90. .selector.focus,
  91. .bootstrap-timepicker-widget table td input:focus,
  92. .ui-toolbar select:focus,
  93. .ui-toolbar input:focus {
  94. color: #333;
  95. border-color: #3da6ff;
  96. }
  97. .form-control:-moz-placeholder {
  98. color: #999;
  99. }
  100. .form-control::-moz-placeholder {
  101. color: #999;
  102. }
  103. .form-control:-ms-input-placeholder {
  104. color: #999;
  105. }
  106. .form-control::-webkit-input-placeholder {
  107. color: #999;
  108. }
  109. textarea.form-control {
  110. height: auto;
  111. }
  112. .form-group {
  113. margin-bottom: 15px;
  114. }
  115. .form-group label {
  116. margin-bottom: 5px;
  117. }
  118. .form-group .switch-toggle {
  119. margin-top: 6px;
  120. }
  121. .radio,
  122. .checkbox {
  123. display: block;
  124. min-height: 20px;
  125. /*padding-left: 20px;*/
  126. margin-top: 10px;
  127. margin-bottom: 10px;
  128. vertical-align: middle;
  129. }
  130. .radio label,
  131. .checkbox label {
  132. font-weight: normal;
  133. display: inline;
  134. margin-bottom: 0;
  135. cursor: pointer;
  136. }
  137. .radio input[type='radio'],
  138. .radio-inline input[type='radio'],
  139. .checkbox input[type='checkbox'],
  140. .checkbox-inline input[type='checkbox'] {
  141. float: left;
  142. }
  143. .radio + .radio,
  144. .checkbox + .checkbox {
  145. margin-top: -5px;
  146. }
  147. .radio-inline,
  148. .checkbox-inline {
  149. font-weight: normal;
  150. line-height: 19px;
  151. display: inline-block;
  152. height: 19px;
  153. margin-bottom: 0;
  154. cursor: pointer;
  155. vertical-align: middle;
  156. }
  157. .radio-inline label,
  158. .checkbox-inline label {
  159. font-weight: normal;
  160. line-height: 17px;
  161. }
  162. .radio-inline + .radio-inline,
  163. .checkbox-inline + .checkbox-inline {
  164. margin-top: 0;
  165. margin-left: 10px;
  166. }
  167. input[type='radio'][disabled],
  168. input[type='checkbox'][disabled],
  169. .radio[disabled],
  170. .radio-inline[disabled],
  171. .checkbox[disabled],
  172. .checkbox-inline[disabled],
  173. fieldset[disabled] input[type='radio'],
  174. fieldset[disabled] input[type='checkbox'],
  175. fieldset[disabled] .radio,
  176. fieldset[disabled] .radio-inline,
  177. fieldset[disabled] .checkbox,
  178. fieldset[disabled] .checkbox-inline {
  179. cursor: not-allowed;
  180. }
  181. .input-sm {
  182. font-size: 12px;
  183. line-height: 1.5;
  184. height: 30px;
  185. padding: 5px 10px;
  186. border-radius: 3px;
  187. }
  188. select.input-sm {
  189. line-height: 30px;
  190. height: 30px;
  191. }
  192. textarea.input-sm {
  193. height: auto;
  194. }
  195. .input-lg {
  196. font-size: 18px;
  197. line-height: 1.33;
  198. height: 45px;
  199. padding: 10px 16px;
  200. border-radius: 6px;
  201. }
  202. select.input-lg {
  203. line-height: 45px;
  204. height: 45px;
  205. }
  206. textarea.input-lg {
  207. height: auto;
  208. }
  209. .form-control-static {
  210. margin-bottom: 0;
  211. }
  212. .help-block {
  213. display: block;
  214. margin-top: 5px;
  215. margin-bottom: 0;
  216. color: #737373;
  217. }
  218. @media (min-width: 768px) {
  219. .form-inline .form-group {
  220. display: inline-block;
  221. margin-bottom: 0;
  222. vertical-align: middle;
  223. }
  224. .form-inline .form-control {
  225. display: inline-block;
  226. }
  227. .form-inline .radio,
  228. .form-inline .checkbox {
  229. display: inline-block;
  230. margin-top: 0;
  231. margin-bottom: 0;
  232. padding-left: 0;
  233. }
  234. .form-inline .radio input[type='radio'],
  235. .form-inline .checkbox input[type='checkbox'] {
  236. float: none;
  237. margin-left: 0;
  238. }
  239. }
  240. .form-horizontal .control-label,
  241. .form-horizontal .radio,
  242. .form-horizontal .checkbox,
  243. .form-horizontal .radio-inline,
  244. .form-horizontal .checkbox-inline {
  245. margin-top: 0;
  246. margin-bottom: 0;
  247. padding-top: 7px;
  248. }
  249. .form-horizontal > .form-group {
  250. margin-right: -15px;
  251. margin-left: -15px;
  252. }
  253. .form-horizontal .form-group:before,
  254. .form-horizontal .form-group:after {
  255. display: table;
  256. content: ' ';
  257. }
  258. .form-horizontal .form-group:after {
  259. clear: both;
  260. }
  261. .form-horizontal .form-group:before,
  262. .form-horizontal .form-group:after {
  263. display: table;
  264. content: ' ';
  265. }
  266. .form-horizontal .form-group:after {
  267. clear: both;
  268. }
  269. .form-horizontal .form-control-static {
  270. padding-top: 7px;
  271. }
  272. @media (min-width: 768px) {
  273. .form-horizontal .control-label {
  274. text-align: right;
  275. }
  276. }
  277. .input-group {
  278. position: relative;
  279. display: table;
  280. width: 100%;
  281. border-collapse: separate;
  282. }
  283. .input-group.col {
  284. float: none;
  285. padding-right: 0;
  286. padding-left: 0;
  287. }
  288. .input-group .form-control {
  289. width: 100%;
  290. margin-bottom: 0;
  291. }
  292. .input-group-lg > .form-control,
  293. .input-group-lg > .input-group-addon,
  294. .input-group-lg > .input-group-btn > .btn {
  295. font-size: 18px;
  296. line-height: 1.33;
  297. height: 45px;
  298. padding: 10px 16px;
  299. border-radius: 6px;
  300. }
  301. select.input-group-lg > .form-control,
  302. select.input-group-lg > .input-group-addon,
  303. select.input-group-lg > .input-group-btn > .btn {
  304. line-height: 45px;
  305. height: 45px;
  306. }
  307. textarea.input-group-lg > .form-control,
  308. textarea.input-group-lg > .input-group-addon,
  309. textarea.input-group-lg > .input-group-btn > .btn {
  310. height: auto;
  311. }
  312. .input-group-sm > .form-control,
  313. .input-group-sm > .input-group-addon,
  314. .input-group-sm > .input-group-btn > .btn {
  315. font-size: 12px;
  316. line-height: 1.5;
  317. height: 30px;
  318. padding: 5px 10px;
  319. border-radius: 3px;
  320. }
  321. select.input-group-sm > .form-control,
  322. select.input-group-sm > .input-group-addon,
  323. select.input-group-sm > .input-group-btn > .btn {
  324. line-height: 30px;
  325. height: 30px;
  326. }
  327. textarea.input-group-sm > .form-control,
  328. textarea.input-group-sm > .input-group-addon,
  329. textarea.input-group-sm > .input-group-btn > .btn {
  330. height: auto;
  331. }
  332. .input-group-addon,
  333. .input-group-btn,
  334. .input-group .form-control {
  335. display: table-cell;
  336. }
  337. .input-group-addon:not(:first-child):not(:last-child),
  338. .input-group-btn:not(:first-child):not(:last-child),
  339. .input-group .form-control:not(:first-child):not(:last-child) {
  340. border-radius: 0;
  341. }
  342. .input-group-addon div[id^='uniform-'] {
  343. margin: 0 -3px;
  344. }
  345. .input-group-addon,
  346. .input-group-btn {
  347. width: 1%;
  348. vertical-align: middle;
  349. white-space: nowrap;
  350. }
  351. .input-group-addon {
  352. font-size: 14px;
  353. font-weight: normal;
  354. line-height: 1;
  355. padding: 6px 12px;
  356. text-align: center;
  357. color: #2b2f33;
  358. background-color: rgba(239, 244, 246, 0.36);
  359. border: 1px solid #dfe8f1;
  360. border-radius: 4px;
  361. }
  362. .input-group-addon .glyph-icon {
  363. display: block;
  364. min-width: 20px;
  365. margin: 0 -4px;
  366. text-align: center;
  367. }
  368. .input-group-addon.addon-inside {
  369. line-height: 24px;
  370. position: absolute;
  371. top: 5px;
  372. left: 6px;
  373. display: block;
  374. width: 32px;
  375. height: 24px;
  376. padding: 0;
  377. border-width: 1px;
  378. border-style: solid;
  379. }
  380. .input-group-lg .input-group-addon.addon-inside {
  381. top: 10px;
  382. left: 10px;
  383. z-index:999;
  384. }
  385. .input-group-addon.addon-inside .glyph-icon {
  386. margin: 0;
  387. }
  388. .input-group-addon.addon-inside + input {
  389. padding-left: 48px;
  390. }
  391. .input-group-addon.input-sm {
  392. font-size: 12px;
  393. padding: 5px 10px;
  394. border-radius: 3px;
  395. }
  396. .input-group-addon.input-lg {
  397. font-size: 18px;
  398. padding: 10px 16px;
  399. border-radius: 6px;
  400. }
  401. .input-group-addon input[type='radio'],
  402. .input-group-addon input[type='checkbox'] {
  403. margin-top: 0;
  404. }
  405. .input-group .form-control:first-child,
  406. .input-group-addon:first-child,
  407. .input-group-btn:first-child > .btn,
  408. .input-group-btn:first-child > .dropdown-toggle,
  409. .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
  410. border-top-right-radius: 0;
  411. border-bottom-right-radius: 0;
  412. }
  413. .input-group-addon:first-child {
  414. border-right: 0;
  415. }
  416. .input-group-addon.addon-inside:first-child {
  417. border-right-width: 1px;
  418. border-right-style: solid;
  419. border-color: transparent;
  420. z-index:999;
  421. }
  422. .input-group-btn + .form-control,
  423. .input-group-addon + .form-control,
  424. .input-group-addon:last-child,
  425. .input-group-btn:last-child > .btn,
  426. .input-group-btn:last-child > .dropdown-toggle,
  427. .input-group-btn:first-child > .btn:not(:first-child) {
  428. border-top-left-radius: 0;
  429. border-bottom-left-radius: 0;
  430. }
  431. .input-group-addon:last-child {
  432. border-left: 0;
  433. }
  434. .input-group-btn {
  435. position: relative;
  436. white-space: nowrap;
  437. }
  438. .input-group-btn:first-child > .btn {
  439. margin-right: -1px;
  440. }
  441. .input-group-btn:last-child > .btn {
  442. margin-left: -1px;
  443. }
  444. .input-group-btn > .btn {
  445. position: relative;
  446. }
  447. .input-group-btn > .btn + .btn {
  448. margin-left: -4px;
  449. }
  450. .input-group-btn > .btn:hover,
  451. .input-group-btn > .btn:active {
  452. z-index: 2;
  453. }
  454. [data-toggle=buttons] > .btn > input[type=radio],
  455. [data-toggle=buttons] > .btn > input[type=checkbox] {
  456. display: none;
  457. }
  458. /* Textarea */
  459. textarea.textarea-no-resize,
  460. textarea.textarea-autoresize {
  461. resize: none;
  462. }
  463. .textarea-autosize {
  464. transition: height 0.3s;
  465. -webkit-transition: height 0.3s;
  466. -moz-transition: height 0.3s;
  467. }
  468. textarea.form-control {
  469. line-height: 1.6em;
  470. padding: 8px 12px;
  471. }
  472. textarea.textarea-xs {
  473. height: 50px;
  474. }
  475. textarea.textarea-sm {
  476. height: 125px;
  477. }
  478. textarea.textarea-md {
  479. height: 200px;
  480. }
  481. textarea.textarea-lg {
  482. height: 275px;
  483. }
  484. /* Spinner */
  485. .ui-spinner {
  486. position: relative;
  487. display: block;
  488. }
  489. .ui-spinner .ui-spinner-button {
  490. font-size: 9px;
  491. line-height: 17px;
  492. position: absolute;
  493. right: 0;
  494. width: 17px;
  495. height: 17px;
  496. cursor: pointer;
  497. text-align: center;
  498. border-width: 1px;
  499. border-style: solid;
  500. }
  501. .ui-spinner .ui-spinner-up {
  502. top: 0;
  503. }
  504. .ui-spinner .ui-spinner-down {
  505. bottom: 0;
  506. }
  507. .parsley-errors-list li {
  508. font-size: 12px;
  509. padding-top: 5px;
  510. }
  511. /* Row border */
  512. .bordered-row > .form-group {
  513. padding: 20px 0;
  514. margin-bottom: 0;
  515. border-top-width: 1px;
  516. border-top-style: dashed;
  517. }
  518. .bordered-row > .form-group:last-child {
  519. padding-bottom: 0;
  520. }
  521. .form-group .ui-slider {
  522. margin-top: 14px;
  523. }
  524. .form-group .ui-slider + .input-group {
  525. margin-top: 20px;
  526. }
  527. select.form-control.single { height:36px !important; }
  528. div.checkbox input { margin: 3px 10px 0 0; }
  529. div.radio input { margin: 3px 10px 0 0; }
  530. .checkbox-inline input { margin: 3px 10px 0 0; }
  531. .radio-inline input { margin: 3px 10px 0 0; }
  532. .form-inline.block { display:block; }