forms.less 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. // stylelint-disable selector-no-qualifying-type, property-no-vendor-prefix, media-feature-name-no-vendor-prefix
  2. // Form validation states
  3. //
  4. // Used in forms.less to generate the form validation CSS for warnings, errors,
  5. // and successes.
  6. .form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
  7. // Color the label and help text
  8. .help-block,
  9. .control-label,
  10. .radio,
  11. .checkbox,
  12. .radio-inline,
  13. .checkbox-inline,
  14. &.radio label,
  15. &.checkbox label,
  16. &.radio-inline label,
  17. &.checkbox-inline label {
  18. color: @text-color;
  19. }
  20. // Set the border and box shadow on specific inputs to match
  21. .form-control {
  22. border-color: @border-color;
  23. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); // Redeclare so transitions work
  24. &:focus {
  25. border-color: darken(@border-color, 10%);
  26. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
  27. 0 0 6px lighten(@border-color, 20%);
  28. }
  29. }
  30. // Optional feedback icon
  31. .form-control-feedback {
  32. color: @text-color;
  33. }
  34. }
  35. // Form control focus state
  36. //
  37. // Generate a customized focus state and for any input with the specified color,
  38. // which defaults to the `@input-border-focus` variable.
  39. //
  40. // We highly encourage you to not customize the default value, but instead use
  41. // this to tweak colors on an as-needed basis. This aesthetic change is based on
  42. // WebKit's default styles, but applicable to a wider range of browsers. Its
  43. // usability and accessibility should be taken into account with any change.
  44. //
  45. // Example usage: change the default blue border and shadow to white for better
  46. // contrast against a dark gray background.
  47. .form-control-focus(@color: @input-border-focus) {
  48. @color-rgba: rgba(red(@color), green(@color), blue(@color), 0.6);
  49. &:focus {
  50. border-color: @color;
  51. outline: 0;
  52. box-shadow: ~'inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px @{color-rgba}';
  53. }
  54. }
  55. // Form control sizing
  56. //
  57. // Relative text size, padding, and border-radii changes for form controls. For
  58. // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
  59. // element gets special love because it's special, and that's a fact!
  60. .input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
  61. height: @input-height;
  62. padding: @padding-vertical @padding-horizontal;
  63. font-size: @font-size;
  64. line-height: @line-height;
  65. border-radius: @border-radius;
  66. select& {
  67. height: @input-height;
  68. line-height: @input-height;
  69. }
  70. textarea&,
  71. select[multiple]& {
  72. height: auto;
  73. }
  74. }
  75. //
  76. // Forms
  77. // --------------------------------------------------
  78. // Normalize non-controls
  79. //
  80. // Restyle and baseline non-control form elements.
  81. fieldset {
  82. // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
  83. // so we reset that to ensure it behaves more like a standard block element.
  84. // See https://github.com/twbs/bootstrap/issues/12359.
  85. min-width: 0;
  86. padding: 0;
  87. margin: 0;
  88. border: 0;
  89. }
  90. legend {
  91. display: block;
  92. width: 100%;
  93. padding: 0;
  94. margin-bottom: @line-height-computed;
  95. font-size: (@font-size-base * 1.5);
  96. line-height: inherit;
  97. color: @legend-color;
  98. border: 0;
  99. border-bottom: 1px solid @legend-border-color;
  100. }
  101. label {
  102. display: inline-block;
  103. max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
  104. margin-bottom: 5px;
  105. font-weight: 700;
  106. }
  107. // Normalize form controls
  108. //
  109. // While most of our form styles require extra classes, some basic normalization
  110. // is required to ensure optimum display with or without those classes to better
  111. // address browser inconsistencies.
  112. input[type='search'] {
  113. // Override content-box in Normalize (* isn't specific enough)
  114. box-sizing: border-box;
  115. // Search inputs in iOS
  116. //
  117. // This overrides the extra rounded corners on search inputs in iOS so that our
  118. // `.form-control` class can properly style them. Note that this cannot simply
  119. // be added to `.form-control` as it's not specific enough. For details, see
  120. // https://github.com/twbs/bootstrap/issues/11586.
  121. -webkit-appearance: none;
  122. appearance: none;
  123. }
  124. // Position radios better
  125. input[type='radio'] {
  126. margin: 4px 0 0;
  127. margin-top: 1px \9; // IE8-9
  128. line-height: normal;
  129. // Apply same disabled cursor tweak as for inputs
  130. // Some special care is needed because <label>s don't inherit their parent's `cursor`.
  131. //
  132. // Note: Neither radios nor checkboxes can be readonly.
  133. &[disabled],
  134. &.disabled,
  135. fieldset[disabled] & {
  136. cursor: @cursor-disabled;
  137. }
  138. }
  139. input[type='file'] {
  140. display: block;
  141. }
  142. // Make range inputs behave like textual form controls
  143. input[type='range'] {
  144. display: block;
  145. width: 100%;
  146. }
  147. // Make multiple select elements height not fixed
  148. select[multiple],
  149. select[size] {
  150. height: auto;
  151. }
  152. // Adjust output element
  153. output {
  154. display: block;
  155. padding-top: (@padding-base-vertical + 1);
  156. font-size: @font-size-base;
  157. line-height: @line-height-base;
  158. color: @input-color;
  159. }
  160. // Common form controls
  161. //
  162. // Shared size and type resets for form controls. Apply `.form-control` to any
  163. // of the following form controls:
  164. //
  165. // select
  166. // textarea
  167. // input[type="text"]
  168. // input[type="password"]
  169. // input[type="datetime"]
  170. // input[type="datetime-local"]
  171. // input[type="date"]
  172. // input[type="month"]
  173. // input[type="time"]
  174. // input[type="week"]
  175. // input[type="number"]
  176. // input[type="email"]
  177. // input[type="url"]
  178. // input[type="search"]
  179. // input[type="tel"]
  180. // input[type="color"]
  181. .form-control {
  182. display: block;
  183. width: 100%;
  184. height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
  185. padding: @padding-base-vertical @padding-base-horizontal;
  186. font-size: @font-size-base;
  187. line-height: @line-height-base;
  188. color: @input-color;
  189. background-color: @input-bg;
  190. background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
  191. border: 1px solid @input-border;
  192. border-radius: @input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
  193. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  194. transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  195. // Customize the `:focus` state to imitate native WebKit styles.
  196. .form-control-focus();
  197. &::-moz-placeholder {
  198. color: @input-color-placeholder;
  199. opacity: 1;
  200. }
  201. &:-ms-input-placeholder {
  202. color: @input-color-placeholder;
  203. }
  204. &::-webkit-input-placeholder {
  205. color: @input-color-placeholder;
  206. }
  207. // Unstyle the caret on `<select>`s in IE10+.
  208. &::-ms-expand {
  209. background-color: transparent;
  210. border: 0;
  211. }
  212. // Disabled and read-only inputs
  213. //
  214. // HTML5 says that controls under a fieldset > legend:first-child won't be
  215. // disabled if the fieldset is disabled. Due to implementation difficulty, we
  216. // don't honor that edge case; we style them as disabled anyway.
  217. &[disabled],
  218. &[readonly],
  219. fieldset[disabled] & {
  220. background-color: @input-bg-disabled;
  221. opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
  222. }
  223. &[disabled],
  224. fieldset[disabled] & {
  225. cursor: @cursor-disabled;
  226. }
  227. // Reset height for `textarea`s
  228. textarea& {
  229. height: auto;
  230. }
  231. }
  232. // Special styles for iOS temporal inputs
  233. //
  234. // In Mobile Safari, setting `display: block` on temporal inputs causes the
  235. // text within the input to become vertically misaligned. As a workaround, we
  236. // set a pixel line-height that matches the given height of the input, but only
  237. // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
  238. //
  239. // Note that as of 9.3, iOS doesn't support `week`.
  240. @media screen and (-webkit-min-device-pixel-ratio: 0) {
  241. input[type='date'],
  242. input[type='time'],
  243. input[type='datetime-local'],
  244. input[type='month'] {
  245. &.form-control {
  246. line-height: @input-height-base;
  247. }
  248. &.input-sm {
  249. line-height: @input-height-small;
  250. }
  251. &.input-lg {
  252. line-height: @input-height-large;
  253. }
  254. }
  255. }
  256. // Form groups
  257. //
  258. // Designed to help with the organization and spacing of vertical forms. For
  259. // horizontal forms, use the predefined grid classes.
  260. .form-group {
  261. margin-bottom: @form-group-margin-bottom;
  262. }
  263. // Checkboxes and radios
  264. //
  265. // Indent the labels to position radios/checkboxes as hanging controls.
  266. .radio,
  267. .checkbox {
  268. position: relative;
  269. display: block;
  270. margin-top: 10px;
  271. margin-bottom: 10px;
  272. // These are used on elements with <label> descendants
  273. &.disabled,
  274. fieldset[disabled] & {
  275. label {
  276. cursor: @cursor-disabled;
  277. }
  278. }
  279. label {
  280. min-height: @line-height-computed; // Ensure the input doesn't jump when there is no text
  281. padding-left: 20px;
  282. margin-bottom: 0;
  283. font-weight: 400;
  284. cursor: pointer;
  285. }
  286. }
  287. .radio input[type='radio'],
  288. .radio-inline input[type='radio'],
  289. .checkbox input[type='checkbox'],
  290. .checkbox-inline input[type='checkbox'] {
  291. position: absolute;
  292. margin-top: 4px \9;
  293. margin-left: -20px;
  294. }
  295. .radio + .radio,
  296. .checkbox + .checkbox {
  297. margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
  298. }
  299. // Radios and checkboxes on same line
  300. .radio-inline,
  301. .checkbox-inline {
  302. position: relative;
  303. display: inline-block;
  304. padding-left: 20px;
  305. margin-bottom: 0;
  306. font-weight: 400;
  307. vertical-align: middle;
  308. cursor: pointer;
  309. // These are used directly on <label>s
  310. &.disabled,
  311. fieldset[disabled] & {
  312. cursor: @cursor-disabled;
  313. }
  314. }
  315. .radio-inline + .radio-inline,
  316. .checkbox-inline + .checkbox-inline {
  317. margin-top: 0;
  318. margin-left: 10px; // space out consecutive inline controls
  319. }
  320. // Static form control text
  321. //
  322. // Apply class to a `p` element to make any string of text align with labels in
  323. // a horizontal form layout.
  324. .form-control-static {
  325. min-height: (@line-height-computed + @font-size-base);
  326. // Size it appropriately next to real form controls
  327. padding-top: (@padding-base-vertical + 1);
  328. padding-bottom: (@padding-base-vertical + 1);
  329. // Remove default margin from `p`
  330. margin-bottom: 0;
  331. &.input-lg,
  332. &.input-sm {
  333. padding-right: 0;
  334. padding-left: 0;
  335. }
  336. }
  337. // Form control sizing
  338. //
  339. // Build on `.form-control` with modifier classes to decrease or increase the
  340. // height and font-size of form controls.
  341. //
  342. // The `.form-group-* form-control` variations are sadly duplicated to avoid the
  343. // issue documented in https://github.com/twbs/bootstrap/issues/15074.
  344. .input-sm {
  345. .input-size(
  346. @input-height-small; @padding-small-vertical; @padding-small-horizontal;
  347. @font-size-small; @line-height-small; @input-border-radius-small
  348. );
  349. }
  350. .form-group-sm {
  351. .form-control {
  352. height: @input-height-small;
  353. padding: @padding-small-vertical @padding-small-horizontal;
  354. font-size: @font-size-small;
  355. line-height: @line-height-small;
  356. border-radius: @input-border-radius-small;
  357. }
  358. select.form-control {
  359. height: @input-height-small;
  360. line-height: @input-height-small;
  361. }
  362. textarea.form-control,
  363. select[multiple].form-control {
  364. height: auto;
  365. }
  366. .form-control-static {
  367. height: @input-height-small;
  368. min-height: (@line-height-computed + @font-size-small);
  369. padding: (@padding-small-vertical + 1) @padding-small-horizontal;
  370. font-size: @font-size-small;
  371. line-height: @line-height-small;
  372. }
  373. }
  374. .input-lg {
  375. .input-size(
  376. @input-height-large; @padding-large-vertical; @padding-large-horizontal;
  377. @font-size-large; @line-height-large; @input-border-radius-large
  378. );
  379. }
  380. .form-group-lg {
  381. .form-control {
  382. height: @input-height-large;
  383. padding: @padding-large-vertical @padding-large-horizontal;
  384. font-size: @font-size-large;
  385. line-height: @line-height-large;
  386. border-radius: @input-border-radius-large;
  387. }
  388. select.form-control {
  389. height: @input-height-large;
  390. line-height: @input-height-large;
  391. }
  392. textarea.form-control,
  393. select[multiple].form-control {
  394. height: auto;
  395. }
  396. .form-control-static {
  397. height: @input-height-large;
  398. min-height: (@line-height-computed + @font-size-large);
  399. padding: (@padding-large-vertical + 1) @padding-large-horizontal;
  400. font-size: @font-size-large;
  401. line-height: @line-height-large;
  402. }
  403. }
  404. // Form control feedback states
  405. //
  406. // Apply contextual and semantic states to individual form controls.
  407. .has-feedback {
  408. // Enable absolute positioning
  409. position: relative;
  410. // Ensure icons don't overlap text
  411. .form-control {
  412. padding-right: (@input-height-base * 1.25);
  413. }
  414. }
  415. // Feedback icon (requires .glyphicon classes)
  416. .form-control-feedback {
  417. position: absolute;
  418. top: 0;
  419. right: 0;
  420. z-index: 2; // Ensure icon is above input groups
  421. display: block;
  422. width: @input-height-base;
  423. height: @input-height-base;
  424. line-height: @input-height-base;
  425. text-align: center;
  426. pointer-events: none;
  427. }
  428. .input-lg + .form-control-feedback,
  429. .form-group-lg .form-control + .form-control-feedback {
  430. width: @input-height-large;
  431. height: @input-height-large;
  432. line-height: @input-height-large;
  433. }
  434. .input-sm + .form-control-feedback,
  435. .form-group-sm .form-control + .form-control-feedback {
  436. width: @input-height-small;
  437. height: @input-height-small;
  438. line-height: @input-height-small;
  439. }
  440. // Feedback states
  441. .has-success {
  442. .form-control-validation(@state-success-text; @state-success-text; @state-success-bg);
  443. }
  444. .has-warning {
  445. .form-control-validation(@state-warning-text; @state-warning-text; @state-warning-bg);
  446. }
  447. .has-error {
  448. .form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
  449. }
  450. // Reposition feedback icon if input has visible label above
  451. .has-feedback label {
  452. & ~ .form-control-feedback {
  453. top: (@line-height-computed + 5); // Height of the `label` and its margin
  454. }
  455. &.sr-only ~ .form-control-feedback {
  456. top: 0;
  457. }
  458. }
  459. // Help text
  460. //
  461. // Apply to any element you wish to create light text for placement immediately
  462. // below a form control. Use for general help, formatting, or instructional text.
  463. .help-block {
  464. display: block; // account for any element using help-block
  465. margin-top: 5px;
  466. margin-bottom: 10px;
  467. color: lighten(@text-color, 25%); // lighten the text some for contrast
  468. }
  469. // Inline forms
  470. //
  471. // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
  472. // forms begin stacked on extra small (mobile) devices and then go inline when
  473. // viewports reach <768px.
  474. //
  475. // Requires wrapping inputs and labels with `.form-group` for proper display of
  476. // default HTML form controls and our custom form controls (e.g., input groups).
  477. //
  478. // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
  479. .form-inline {
  480. // Kick in the inline
  481. @media (min-width: @screen-sm-min) {
  482. // Inline-block all the things for "inline"
  483. .form-group {
  484. display: inline-block;
  485. margin-bottom: 0;
  486. vertical-align: middle;
  487. }
  488. // In navbar-form, allow folks to *not* use `.form-group`
  489. .form-control {
  490. display: inline-block;
  491. width: auto; // Prevent labels from stacking above inputs in `.form-group`
  492. vertical-align: middle;
  493. }
  494. // Make static controls behave like regular ones
  495. .form-control-static {
  496. display: inline-block;
  497. }
  498. .control-label {
  499. margin-bottom: 0;
  500. vertical-align: middle;
  501. }
  502. // Remove default margin on radios/checkboxes that were used for stacking, and
  503. // then undo the floating of radios and checkboxes to match.
  504. .radio,
  505. .checkbox {
  506. display: inline-block;
  507. margin-top: 0;
  508. margin-bottom: 0;
  509. vertical-align: middle;
  510. label {
  511. padding-left: 0;
  512. }
  513. }
  514. .radio input[type='radio'],
  515. .checkbox input[type='checkbox'] {
  516. position: relative;
  517. margin-left: 0;
  518. }
  519. // Re-override the feedback icon.
  520. .has-feedback .form-control-feedback {
  521. top: 0;
  522. }
  523. }
  524. }
  525. // Horizontal forms
  526. //
  527. // Horizontal forms are built on grid classes and allow you to create forms with
  528. // labels on the left and inputs on the right.
  529. .form-horizontal {
  530. // Consistent vertical alignment of radios and checkboxes
  531. //
  532. // Labels also get some reset styles, but that is scoped to a media query below.
  533. .radio,
  534. .checkbox,
  535. .radio-inline,
  536. .checkbox-inline {
  537. padding-top: (@padding-base-vertical + 1); // Default padding plus a border
  538. margin-top: 0;
  539. margin-bottom: 0;
  540. }
  541. // Account for padding we're adding to ensure the alignment and of help text
  542. // and other content below items
  543. .radio,
  544. .checkbox {
  545. min-height: (@line-height-computed + (@padding-base-vertical + 1));
  546. }
  547. // Make form groups behave like rows
  548. .form-group {
  549. .make-row();
  550. }
  551. // Reset spacing and right align labels, but scope to media queries so that
  552. // labels on narrow viewports stack the same as a default form example.
  553. @media (min-width: @screen-sm-min) {
  554. .control-label {
  555. padding-top: (@padding-base-vertical + 1); // Default padding plus a border
  556. margin-bottom: 0;
  557. text-align: right;
  558. }
  559. }
  560. // Validation states
  561. //
  562. // Reposition the icon because it's now within a grid column and columns have
  563. // `position: relative;` on them. Also accounts for the grid gutter padding.
  564. .has-feedback .form-control-feedback {
  565. right: floor((@grid-gutter-width / 2));
  566. }
  567. // Form group sizes
  568. //
  569. // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
  570. // inputs and labels within a `.form-group`.
  571. .form-group-lg {
  572. @media (min-width: @screen-sm-min) {
  573. .control-label {
  574. padding-top: (@padding-large-vertical + 1);
  575. font-size: @font-size-large;
  576. }
  577. }
  578. }
  579. .form-group-sm {
  580. @media (min-width: @screen-sm-min) {
  581. .control-label {
  582. padding-top: (@padding-small-vertical + 1);
  583. font-size: @font-size-small;
  584. }
  585. }
  586. }
  587. }
  588. /**
  589. * Forms
  590. * ============================================================================
  591. */
  592. .form-control {
  593. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.04);
  594. height: auto;
  595. border: 1px solid lighten(@gray-lighter, 10);
  596. padding: 8px 12px 7px;
  597. position: relative;
  598. border-radius: 3px;
  599. color: @gray-dark;
  600. &.disabled {
  601. border: 1px solid @trim;
  602. background: #f7f8f9;
  603. color: @gray-dark;
  604. }
  605. &::-moz-placeholder {
  606. color: @gray-light;
  607. opacity: 1;
  608. }
  609. &:-ms-input-placeholder {
  610. color: @gray-light;
  611. }
  612. &::-webkit-input-placeholder {
  613. color: @gray-light;
  614. }
  615. &:focus {
  616. border-color: darken(@gray-lighter, 4);
  617. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.04), 0 0 6px rgba(177, 171, 225, 0.3);
  618. outline: none;
  619. }
  620. object {
  621. position: absolute;
  622. top: 10px;
  623. right: 9px;
  624. }
  625. }
  626. .control-label.requiredField,
  627. .form-stacked .required .controls label {
  628. &:after {
  629. margin-left: 10px;
  630. vertical-align: bottom;
  631. content: '[required]';
  632. font-size: 12px;
  633. color: #999;
  634. text-transform: uppercase;
  635. }
  636. // Hide the crispy-forms required asterisk
  637. .asteriskField {
  638. display: none;
  639. }
  640. }
  641. .form-stacked .required .controls .radio label {
  642. // it should only appear on the first label (e.g. multi inputs)
  643. &:after {
  644. content: '';
  645. }
  646. }
  647. .form-group,
  648. .control-group {
  649. margin-bottom: 15px;
  650. }
  651. .form-actions {
  652. border-top: 1px solid #e9ebec;
  653. background: none;
  654. padding: 20px 0 0;
  655. margin-bottom: 20px;
  656. p {
  657. padding: 0;
  658. line-height: 15px;
  659. }
  660. .note {
  661. color: @gray;
  662. line-height: 30px;
  663. }
  664. }
  665. .help-block {
  666. font-weight: normal;
  667. color: @gray;
  668. font-size: 90%;
  669. margin-bottom: 0;
  670. }
  671. textarea.form-control {
  672. height: 150px;
  673. min-height: 150px;
  674. min-width: 100%;
  675. max-width: 100%;
  676. }
  677. legend {
  678. margin: 20px 0;
  679. border-bottom: 1px solid #e9ebec;
  680. padding-bottom: 10px;
  681. }
  682. .inputs-list label {
  683. padding-left: 18px;
  684. }
  685. .inputs-list label input[type='radio'],
  686. .inputs-list label input[type='checkbox'] {
  687. float: left;
  688. margin-left: -18px;
  689. }
  690. label {
  691. font-weight: 600;
  692. &.checkbox,
  693. &.radio {
  694. padding-left: 25px;
  695. position: relative;
  696. input[type='checkbox'] {
  697. top: 1px;
  698. left: 0;
  699. margin-left: 0 !important;
  700. }
  701. }
  702. }
  703. .boolean-radio-select .inputs-list ul {
  704. list-style: none;
  705. margin-bottom: 0;
  706. padding-left: 0;
  707. li {
  708. margin-bottom: 5px;
  709. &:last-child {
  710. margin-bottom: 0;
  711. }
  712. label {
  713. font-weight: normal;
  714. }
  715. }
  716. }
  717. .radio,
  718. .checkbox {
  719. label {
  720. font-weight: 600;
  721. }
  722. }
  723. .has-error .form-control {
  724. border-color: #c9c0d1;
  725. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.04);
  726. }
  727. .has-error .form-control:focus {
  728. border-color: #a598b2;
  729. box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.04), 0 0 6px rgba(177, 171, 225, 0.3);
  730. outline: none;
  731. }
  732. .error,
  733. .has-error .help-block,
  734. .has-error .control-label,
  735. .has-error .radio,
  736. .has-error .checkbox,
  737. .has-error .radio-inline,
  738. .has-error .checkbox-inline,
  739. .has-error.radio label,
  740. .has-error.checkbox label,
  741. .has-error.radio-inline label,
  742. .has-error.checkbox-inline label {
  743. color: @red;
  744. }
  745. input.form-control[disabled],
  746. textarea.form-control[disabled] {
  747. background: #f9f9f9;
  748. color: #999;
  749. }
  750. .disabled-indicator {
  751. margin-left: 5px;
  752. font-size: 80%;
  753. }
  754. .form-password {
  755. &.editing {
  756. div:first-child {
  757. width: 85%;
  758. display: inline-block;
  759. }
  760. div:last-child {
  761. line-height: 37px;
  762. margin-left: 10px;
  763. display: inline-block;
  764. }
  765. }
  766. &.saved {
  767. a {
  768. margin-left: 10px;
  769. }
  770. }
  771. }
  772. .deploy-form {
  773. display: flex;
  774. align-items: baseline;
  775. justify-content: space-between;
  776. .controls {
  777. display: flex;
  778. align-items: baseline;
  779. justify-content: space-around;
  780. }
  781. }