@madie/madie-design-system 1.2.39 → 1.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/components/TruncateText/TruncateText.stories.js +25 -0
  2. package/components/TruncateText/index.js +52 -0
  3. package/components/index.js +2 -0
  4. package/coverage/clover.xml +3 -646
  5. package/coverage/coverage-final.json +1 -39
  6. package/coverage/lcov-report/index.html +11 -431
  7. package/coverage/lcov.info +0 -1389
  8. package/dist/browser.js +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/react/index.js +1 -1
  11. package/dist/react/index.js.map +1 -1
  12. package/doctor-storybook.log +41 -0
  13. package/madie-madie-design-system-1.2.40.tgz +0 -0
  14. package/migration-storybook.log +329 -0
  15. package/package.json +3 -1
  16. package/storybook-static/149.65bbc904.iframe.bundle.js +2 -0
  17. package/storybook-static/149.65bbc904.iframe.bundle.js.LICENSE.txt +14 -0
  18. package/storybook-static/164.e319e208c2d3a626e1f5.manager.bundle.js +1 -0
  19. package/storybook-static/192.69f71338.iframe.bundle.js +1 -0
  20. package/storybook-static/198.80608638.iframe.bundle.js +2 -0
  21. package/storybook-static/198.80608638.iframe.bundle.js.LICENSE.txt +31 -0
  22. package/storybook-static/217.b9975326.iframe.bundle.js +2 -0
  23. package/storybook-static/217.b9975326.iframe.bundle.js.LICENSE.txt +12 -0
  24. package/storybook-static/261.70d64bef7770b201fb77.manager.bundle.js +1 -0
  25. package/storybook-static/303.0d9893ef.iframe.bundle.js +1 -0
  26. package/storybook-static/319.3e8dc6b4a7d2f3e67eb0.manager.bundle.js +2 -0
  27. package/storybook-static/319.3e8dc6b4a7d2f3e67eb0.manager.bundle.js.LICENSE.txt +8 -0
  28. package/storybook-static/322.8b797be6.iframe.bundle.js +103 -0
  29. package/storybook-static/322.8b797be6.iframe.bundle.js.LICENSE.txt +140 -0
  30. package/storybook-static/322.8b797be6.iframe.bundle.js.map +1 -0
  31. package/storybook-static/40.df6534995de03601f813.manager.bundle.js +2 -0
  32. package/storybook-static/40.df6534995de03601f813.manager.bundle.js.LICENSE.txt +31 -0
  33. package/storybook-static/45.b37f580f.iframe.bundle.js +2 -0
  34. package/storybook-static/45.b37f580f.iframe.bundle.js.LICENSE.txt +8 -0
  35. package/storybook-static/467.7fabc4cd8819eddb42f9.manager.bundle.js +2 -0
  36. package/storybook-static/467.7fabc4cd8819eddb42f9.manager.bundle.js.LICENSE.txt +12 -0
  37. package/storybook-static/582.ffbf0b74.iframe.bundle.js +1 -0
  38. package/storybook-static/609.e27a5f77.iframe.bundle.js +2 -0
  39. package/storybook-static/609.e27a5f77.iframe.bundle.js.LICENSE.txt +11 -0
  40. package/storybook-static/794.cbe100d1870b4d8a130a.manager.bundle.js +1 -0
  41. package/storybook-static/861.0b692bf7.iframe.bundle.js +1 -0
  42. package/storybook-static/931.51f69825a96d7bce33f5.manager.bundle.js +2 -0
  43. package/storybook-static/931.51f69825a96d7bce33f5.manager.bundle.js.LICENSE.txt +94 -0
  44. package/storybook-static/987.874321cb40e99203aabe.manager.bundle.js +1 -0
  45. package/storybook-static/favicon.ico +0 -0
  46. package/storybook-static/iframe.html +364 -0
  47. package/storybook-static/index.html +59 -0
  48. package/storybook-static/main.07b67595538d689438e4.manager.bundle.js +1 -0
  49. package/storybook-static/main.8ae59f4f.iframe.bundle.js +1 -0
  50. package/storybook-static/project.json +1 -0
  51. package/storybook-static/runtime~main.09b9b14c88359f235007.manager.bundle.js +1 -0
  52. package/storybook-static/runtime~main.c9dcb6d8.iframe.bundle.js +1 -0
  53. package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
  54. package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
  55. package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
  56. package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
  57. package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
  58. package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
  59. package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
  60. package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
  61. package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
  62. package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
  63. package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
  64. package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
  65. package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
  66. package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
  67. package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
  68. package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
  69. package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
  70. package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
  71. package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
  72. package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
  73. package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
  74. package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
  75. package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
  76. package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
  77. package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
  78. package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
  79. package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
  80. package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
  81. package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
  82. package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
  83. package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
  84. package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
  85. package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
  86. package/storybook-static/static/media/arrow-both.a0959e13.svg +3 -0
  87. package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
  88. package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
  89. package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
  90. package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +2671 -0
  91. package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
  92. package/storybook.log +26 -0
  93. package/styles/_global.scss +66 -66
  94. package/styles/_main.scss +7 -7
  95. package/styles/_paths.scss +1 -1
  96. package/styles/_qpp-style.scss +35 -35
  97. package/styles/components/_accordion.scss +254 -254
  98. package/styles/components/_breadcrumbs.scss +7 -7
  99. package/styles/components/_buttons.scss +535 -535
  100. package/styles/components/_error-page.scss +4 -4
  101. package/styles/components/_flash-notification.scss +4 -4
  102. package/styles/components/_fonts.scss +16 -16
  103. package/styles/components/_forms.scss +1 -1
  104. package/styles/components/_grid.scss +22 -22
  105. package/styles/components/_links.scss +5 -3
  106. package/styles/components/_madie-alert.scss +80 -71
  107. package/styles/components/_madie-confirm-dialog.scss +33 -33
  108. package/styles/components/_madie-delete-dialog.scss +33 -33
  109. package/styles/components/_madie-discard-dialog.scss +27 -27
  110. package/styles/components/_madie-tooltip.scss +59 -60
  111. package/styles/components/_modals.scss +9 -9
  112. package/styles/components/_score-chart.scss +3 -3
  113. package/styles/components/_tables.scss +74 -74
  114. package/styles/components/_tabs.scss +3 -3
  115. package/styles/components/_text-field-variable.scss +13 -13
  116. package/styles/components/_toast.scss +75 -75
  117. package/styles/components/_variables.scss +13 -13
  118. package/styles/qppds/base/_backgrounds.scss +3 -3
  119. package/styles/qppds/base/_fonts.scss +17 -17
  120. package/styles/qppds/base/_icon.scss +6 -6
  121. package/styles/qppds/base/_layout.scss +2 -2
  122. package/styles/qppds/base/_typography.scss +51 -51
  123. package/styles/qppds/base/index.scss +4 -4
  124. package/styles/qppds/components/_alert.scss +73 -73
  125. package/styles/qppds/components/_breadcrumbs.scss +54 -54
  126. package/styles/qppds/components/_button.scss +437 -437
  127. package/styles/qppds/components/_card.scss +172 -172
  128. package/styles/qppds/components/_dropdown.scss +40 -40
  129. package/styles/qppds/components/_footer.scss +604 -605
  130. package/styles/qppds/components/_header.scss +804 -804
  131. package/styles/qppds/components/_link.scss +35 -35
  132. package/styles/qppds/components/_madie-alert.scss +80 -71
  133. package/styles/qppds/components/_madie-confirm-dialog.scss +33 -34
  134. package/styles/qppds/components/_madie-delete-dialog.scss +33 -33
  135. package/styles/qppds/components/_madie-discard-dialog.scss +27 -27
  136. package/styles/qppds/components/_madie-tooltip.scss +59 -60
  137. package/styles/qppds/components/_modal.scss +109 -109
  138. package/styles/qppds/components/_page-header.scss +59 -55
  139. package/styles/qppds/components/_pagination.scss +154 -154
  140. package/styles/qppds/components/_search.scss +100 -100
  141. package/styles/qppds/components/_sidebar.scss +8 -8
  142. package/styles/qppds/components/_table.scss +129 -129
  143. package/styles/qppds/components/_tabs.scss +172 -172
  144. package/styles/qppds/components/_text-field-variable.scss +12 -12
  145. package/styles/qppds/components/_text-input.scss +57 -57
  146. package/styles/qppds/components/_toast.scss +75 -75
  147. package/styles/qppds/components/index.scss +23 -23
  148. package/styles/qppds/components/sidebar/_cms.scss +5 -5
  149. package/styles/qppds/components/sidebar/_details.scss +5 -5
  150. package/styles/qppds/components/sidebar/_links.scss +12 -11
  151. package/styles/qppds/components/sidebar/_sidebar-animation.scss +9 -9
  152. package/styles/qppds/components/sidebar/_sidebar-tooltip.scss +1 -1
  153. package/styles/qppds/components/sidebar/_sidebar.scss +140 -140
  154. package/styles/qppds/components/sidebar/project-specific/_wi.scss +3 -3
  155. package/styles/qppds/index.scss +4 -4
  156. package/styles/qppds/settings/_functions.scss +1 -1
  157. package/styles/qppds/settings/_index.scss +3 -3
  158. package/styles/qppds/settings/mixins/_borders.scss +3 -3
  159. package/styles/qppds/settings/mixins/_focus.scss +20 -20
  160. package/styles/qppds/settings/mixins/_icons.scss +19 -19
  161. package/styles/qppds/settings/mixins/_index.scss +8 -8
  162. package/styles/qppds/settings/mixins/_layout.scss +59 -59
  163. package/styles/qppds/settings/mixins/_lists.scss +8 -8
  164. package/styles/qppds/settings/mixins/_table.scss +75 -75
  165. package/styles/qppds/settings/mixins/_type.scss +43 -43
  166. package/styles/qppds/settings/mixins/_visually-hidden.scss +12 -12
  167. package/styles/qppds/settings/variables/_color.scss +41 -41
  168. package/styles/qppds/settings/variables/_index.scss +3 -3
  169. package/styles/qppds/settings/variables/_layout.scss +43 -43
  170. package/styles/qppds/settings/variables/_type.scss +90 -90
  171. package/styles/qppds/utilities/_background-color.scss +34 -34
  172. package/styles/qppds/utilities/_color.scss +8 -8
  173. package/styles/qppds/utilities/_display-visibility.scss +40 -40
  174. package/styles/qppds/utilities/_flexbox.scss +188 -188
  175. package/styles/qppds/utilities/_font-family.scss +2 -2
  176. package/styles/qppds/utilities/_font-size.scss +4 -4
  177. package/styles/qppds/utilities/_font-weight.scss +2 -2
  178. package/styles/qppds/utilities/_height.scss +24 -24
  179. package/styles/qppds/utilities/_margin.scss +108 -108
  180. package/styles/qppds/utilities/_padding.scss +69 -69
  181. package/styles/qppds/utilities/_position.scss +12 -12
  182. package/styles/qppds/utilities/_text-align.scss +20 -20
  183. package/styles/qppds/utilities/_text-transform.scss +2 -2
  184. package/styles/qppds/utilities/_truncate.scss +4 -4
  185. package/styles/qppds/utilities/_width.scss +53 -53
  186. package/styles/qppds/utilities/index.scss +15 -15
  187. package/styles/qppds.scss +2 -2
  188. package/styles/third-party/_legacy-bootstrap.scss +10 -10
  189. package/styles/third-party/legacy-bootstrap/_buttons.scss +91 -91
  190. package/styles/third-party/legacy-bootstrap/_dropdowns.scss +136 -136
  191. package/styles/third-party/legacy-bootstrap/_forms.scss +328 -324
  192. package/styles/third-party/legacy-bootstrap/_grid.scss +19 -19
  193. package/styles/third-party/legacy-bootstrap/_mixins.scss +19 -19
  194. package/styles/third-party/legacy-bootstrap/_navbar.scss +525 -525
  195. package/styles/third-party/legacy-bootstrap/_navs.scss +156 -156
  196. package/styles/third-party/legacy-bootstrap/_normalize.scss +70 -70
  197. package/styles/third-party/legacy-bootstrap/_scaffolding.scss +47 -47
  198. package/styles/third-party/legacy-bootstrap/_variables.scss +18 -18
  199. package/styles/third-party/legacy-bootstrap/mixins/_buttons.scss +52 -52
  200. package/styles/third-party/legacy-bootstrap/mixins/_clearfix.scss +8 -8
  201. package/styles/third-party/legacy-bootstrap/mixins/_forms.scss +70 -70
  202. package/styles/third-party/legacy-bootstrap/mixins/_grid-framework.scss +58 -58
  203. package/styles/third-party/legacy-bootstrap/mixins/_grid.scss +63 -63
  204. package/styles/third-party/legacy-bootstrap/mixins/_labels.scss +7 -7
  205. package/styles/third-party/legacy-bootstrap/mixins/_nav-divider.scss +4 -4
  206. package/styles/third-party/legacy-bootstrap/mixins/_nav-vertical-align.scss +2 -2
  207. package/styles/third-party/legacy-bootstrap/mixins/_opacity.scss +3 -3
  208. package/styles/third-party/legacy-bootstrap/mixins/_panels.scss +22 -22
  209. package/styles/third-party/legacy-bootstrap/mixins/_reset-filter.scss +1 -1
  210. package/styles/third-party/legacy-bootstrap/mixins/_reset-text.scss +16 -16
  211. package/styles/third-party/legacy-bootstrap/mixins/_resize.scss +2 -2
  212. package/styles/third-party/legacy-bootstrap/mixins/_responsive-visibility.scss +16 -16
  213. package/styles/third-party/legacy-bootstrap/mixins/_size.scss +3 -3
  214. package/styles/third-party/legacy-bootstrap/mixins/_tab-focus.scss +5 -5
  215. package/styles/third-party/legacy-bootstrap/mixins/_table-row.scss +23 -23
  216. package/styles/third-party/legacy-bootstrap/mixins/_text-emphasis.scss +7 -7
  217. package/styles/third-party/legacy-bootstrap/mixins/_text-overflow.scss +3 -3
  218. package/styles/third-party/legacy-bootstrap/mixins/_vendor-prefixes.scss +85 -85
  219. package/test/components/DateField.test.js +5 -10
  220. package/test/components/DateTimeField.test.js +3 -1
  221. package/test/components/Instant.test.js +37 -32
  222. package/test/components/MadieAlert.test.js +54 -11
  223. package/test/components/MadieConfirmDialog.test.js +1 -1
  224. package/coverage/lcov-report/react/components/Accordion/index.html +0 -116
  225. package/coverage/lcov-report/react/components/Accordion/index.jsx.html +0 -370
  226. package/coverage/lcov-report/react/components/Button/index.html +0 -116
  227. package/coverage/lcov-report/react/components/Button/index.js.html +0 -385
  228. package/coverage/lcov-report/react/components/DateField/DateField.jsx.html +0 -427
  229. package/coverage/lcov-report/react/components/DateField/index.html +0 -116
  230. package/coverage/lcov-report/react/components/DateTimeField/DateTimeField.jsx.html +0 -352
  231. package/coverage/lcov-report/react/components/DateTimeField/index.html +0 -116
  232. package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +0 -364
  233. package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +0 -178
  234. package/coverage/lcov-report/react/components/Error/error.js.html +0 -163
  235. package/coverage/lcov-report/react/components/Error/index.html +0 -146
  236. package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +0 -496
  237. package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +0 -697
  238. package/coverage/lcov-report/react/components/Footer/footer.js.html +0 -175
  239. package/coverage/lcov-report/react/components/Footer/index.html +0 -146
  240. package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +0 -310
  241. package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +0 -208
  242. package/coverage/lcov-report/react/components/Infotip/index.html +0 -146
  243. package/coverage/lcov-report/react/components/Infotip/index.js.html +0 -94
  244. package/coverage/lcov-report/react/components/InputLabel/index.html +0 -116
  245. package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +0 -244
  246. package/coverage/lcov-report/react/components/Instant/index.html +0 -116
  247. package/coverage/lcov-report/react/components/Instant/index.jsx.html +0 -886
  248. package/coverage/lcov-report/react/components/MadieAlert/index.html +0 -116
  249. package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +0 -565
  250. package/coverage/lcov-report/react/components/MadieConfirmDialog/index.html +0 -116
  251. package/coverage/lcov-report/react/components/MadieConfirmDialog/index.jsx.html +0 -277
  252. package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +0 -116
  253. package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +0 -247
  254. package/coverage/lcov-report/react/components/MadieDialog/index.html +0 -116
  255. package/coverage/lcov-report/react/components/MadieDialog/index.jsx.html +0 -1021
  256. package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +0 -116
  257. package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +0 -232
  258. package/coverage/lcov-report/react/components/MadieSpinner/index.html +0 -116
  259. package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +0 -190
  260. package/coverage/lcov-report/react/components/MadieTooltip/index.html +0 -116
  261. package/coverage/lcov-report/react/components/MadieTooltip/index.jsx.html +0 -232
  262. package/coverage/lcov-report/react/components/MadieTooltipIcon/index.html +0 -116
  263. package/coverage/lcov-report/react/components/MadieTooltipIcon/index.jsx.html +0 -178
  264. package/coverage/lcov-report/react/components/Pagination/index.html +0 -116
  265. package/coverage/lcov-report/react/components/Pagination/index.jsx.html +0 -736
  266. package/coverage/lcov-report/react/components/Popover/index.html +0 -116
  267. package/coverage/lcov-report/react/components/Popover/index.js.html +0 -478
  268. package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +0 -116
  269. package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +0 -514
  270. package/coverage/lcov-report/react/components/Select/index.html +0 -116
  271. package/coverage/lcov-report/react/components/Select/index.jsx.html +0 -646
  272. package/coverage/lcov-report/react/components/Tabs/Tab.js.html +0 -325
  273. package/coverage/lcov-report/react/components/Tabs/index.html +0 -131
  274. package/coverage/lcov-report/react/components/Tabs/index.js.html +0 -370
  275. package/coverage/lcov-report/react/components/TextArea/index.html +0 -116
  276. package/coverage/lcov-report/react/components/TextArea/index.jsx.html +0 -436
  277. package/coverage/lcov-report/react/components/TextField/index.html +0 -116
  278. package/coverage/lcov-report/react/components/TextField/index.jsx.html +0 -655
  279. package/coverage/lcov-report/react/components/Toast/index.html +0 -116
  280. package/coverage/lcov-report/react/components/Toast/index.jsx.html +0 -436
  281. package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +0 -349
  282. package/coverage/lcov-report/react/components/Tooltip/index.html +0 -146
  283. package/coverage/lcov-report/react/components/Tooltip/index.js.html +0 -94
  284. package/coverage/lcov-report/react/components/Tooltip/position.js.html +0 -313
  285. package/coverage/lcov-report/react/index.html +0 -116
  286. package/coverage/lcov-report/react/index.js.html +0 -133
  287. package/coverage/lcov-report/react/lib/Chevron.jsx.html +0 -181
  288. package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +0 -1777
  289. package/coverage/lcov-report/react/lib/index.html +0 -131
  290. package/package-lock.json +0 -22162
@@ -6,32 +6,32 @@
6
6
  //
7
7
  // Restyle and baseline non-control form elements.
8
8
  fieldset {
9
- // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
10
- // so we reset that to ensure it behaves more like a standard block element.
11
- // See https://github.com/twbs/bootstrap/issues/12359.
12
- min-width: 0;
13
- padding: 0;
14
- margin: 0;
15
- border: 0;
9
+ // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
10
+ // so we reset that to ensure it behaves more like a standard block element.
11
+ // See https://github.com/twbs/bootstrap/issues/12359.
12
+ min-width: 0;
13
+ padding: 0;
14
+ margin: 0;
15
+ border: 0;
16
16
  }
17
17
 
18
18
  legend {
19
- display: block;
20
- width: 100%;
21
- padding: 0;
22
- margin-bottom: $line-height-computed;
23
- font-size: ($font-size-base * 1.5);
24
- line-height: inherit;
25
- color: $legend-color;
26
- border: 0;
27
- border-bottom: 1px solid $legend-border-color;
19
+ display: block;
20
+ width: 100%;
21
+ padding: 0;
22
+ margin-bottom: $line-height-computed;
23
+ font-size: ($font-size-base * 1.5);
24
+ line-height: inherit;
25
+ color: $legend-color;
26
+ border: 0;
27
+ border-bottom: 1px solid $legend-border-color;
28
28
  }
29
29
 
30
30
  label {
31
- display: inline-block;
32
- max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
33
- margin-bottom: 5px;
34
- font-weight: 700;
31
+ display: inline-block;
32
+ max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
33
+ margin-bottom: 5px;
34
+ font-weight: 700;
35
35
  }
36
36
 
37
37
  // Normalize form controls
@@ -39,68 +39,68 @@ label {
39
39
  // While most of our form styles require extra classes, some basic normalization
40
40
  // is required to ensure optimum display with or without those classes to better
41
41
  // address browser inconsistencies.
42
- input[type='search'] {
43
- // Override content-box in Normalize (* isn't specific enough)
44
- @include box-sizing(border-box);
42
+ input[type="search"] {
43
+ // Override content-box in Normalize (* isn't specific enough)
44
+ @include box-sizing(border-box);
45
45
 
46
- // Search inputs in iOS
47
- //
48
- // This overrides the extra rounded corners on search inputs in iOS so that our
49
- // `.form-control` class can properly style them. Note that this cannot simply
50
- // be added to `.form-control` as it's not specific enough. For details, see
51
- // https://github.com/twbs/bootstrap/issues/11586.
52
- -webkit-appearance: none;
53
- appearance: none;
46
+ // Search inputs in iOS
47
+ //
48
+ // This overrides the extra rounded corners on search inputs in iOS so that our
49
+ // `.form-control` class can properly style them. Note that this cannot simply
50
+ // be added to `.form-control` as it's not specific enough. For details, see
51
+ // https://github.com/twbs/bootstrap/issues/11586.
52
+ -webkit-appearance: none;
53
+ appearance: none;
54
54
  }
55
55
 
56
56
  // Position radios and checkboxes better
57
- input[type='radio'],
58
- input[type='checkbox'] {
59
- margin: 4px 0 0;
60
- margin-top: 1px \9; // IE8-9
61
- line-height: normal;
57
+ input[type="radio"],
58
+ input[type="checkbox"] {
59
+ margin: 4px 0 0;
60
+ margin-top: 1px \9; // IE8-9
61
+ line-height: normal;
62
62
 
63
- // Apply same disabled cursor tweak as for inputs
64
- // Some special care is needed because <label>s don't inherit their parent's `cursor`.
65
- //
66
- // Note: Neither radios nor checkboxes can be readonly.
67
- &[disabled],
68
- &.disabled,
69
- fieldset[disabled] & {
70
- cursor: $cursor-disabled;
71
- }
63
+ // Apply same disabled cursor tweak as for inputs
64
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
65
+ //
66
+ // Note: Neither radios nor checkboxes can be readonly.
67
+ &[disabled],
68
+ &.disabled,
69
+ fieldset[disabled] & {
70
+ cursor: $cursor-disabled;
71
+ }
72
72
  }
73
73
 
74
- input[type='file'] {
75
- display: block;
74
+ input[type="file"] {
75
+ display: block;
76
76
  }
77
77
 
78
78
  // Make range inputs behave like textual form controls
79
- input[type='range'] {
80
- display: block;
81
- width: 100%;
79
+ input[type="range"] {
80
+ display: block;
81
+ width: 100%;
82
82
  }
83
83
 
84
84
  // Make multiple select elements height not fixed
85
85
  select[multiple],
86
86
  select[size] {
87
- height: auto;
87
+ height: auto;
88
88
  }
89
89
 
90
90
  // Focus for file, radio, and checkbox
91
- input[type='file']:focus,
92
- input[type='radio']:focus,
93
- input[type='checkbox']:focus {
94
- @include tab-focus;
91
+ input[type="file"]:focus,
92
+ input[type="radio"]:focus,
93
+ input[type="checkbox"]:focus {
94
+ @include tab-focus;
95
95
  }
96
96
 
97
97
  // Adjust output element
98
98
  output {
99
- display: block;
100
- padding-top: ($padding-base-vertical + 1);
101
- font-size: $font-size-base;
102
- line-height: $line-height-base;
103
- color: $input-color;
99
+ display: block;
100
+ padding-top: ($padding-base-vertical + 1);
101
+ font-size: $font-size-base;
102
+ line-height: $line-height-base;
103
+ color: $input-color;
104
104
  }
105
105
 
106
106
  // Common form controls
@@ -125,58 +125,58 @@ output {
125
125
  // input[type="tel"]
126
126
  // input[type="color"]
127
127
  .form-control {
128
- display: block;
129
- width: 100%;
130
- height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
131
- padding: $padding-base-vertical $padding-base-horizontal;
132
- font-size: $font-size-base;
133
- line-height: $line-height-base;
134
- color: $input-color;
135
- background-color: $input-bg;
136
- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
137
- border: 1px solid $input-border;
138
- 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.
139
- @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
140
- @include transition(
141
- border-color ease-in-out 0.15s,
142
- box-shadow ease-in-out 0.15s
143
- );
144
-
145
- // Customize the `:focus` state to imitate native WebKit styles.
146
- @include form-control-focus;
147
-
148
- // Placeholder
149
- @include placeholder;
150
-
151
- // Unstyle the caret on `<select>`s in IE10+.
152
- &::-ms-expand {
153
- background-color: transparent;
154
- border: 0;
155
- }
156
-
157
- // Disabled and read-only inputs
158
- //
159
- // HTML5 says that controls under a fieldset > legend:first-child won't be
160
- // disabled if the fieldset is disabled. Due to implementation difficulty, we
161
- // don't honor that edge case; we style them as disabled anyway.
162
- &[disabled],
163
- &[readonly],
164
- fieldset[disabled] & {
165
- background-color: $input-bg-disabled;
166
- opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
167
- }
168
-
169
- &[disabled],
170
- fieldset[disabled] & {
171
- cursor: $cursor-disabled;
172
- }
173
-
174
- // [converter] extracted textarea& to textarea.form-control
128
+ display: block;
129
+ width: 100%;
130
+ height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
131
+ padding: $padding-base-vertical $padding-base-horizontal;
132
+ font-size: $font-size-base;
133
+ line-height: $line-height-base;
134
+ color: $input-color;
135
+ background-color: $input-bg;
136
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
137
+ border: 1px solid $input-border;
138
+ 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.
139
+ @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
140
+ @include transition(
141
+ border-color ease-in-out 0.15s,
142
+ box-shadow ease-in-out 0.15s
143
+ );
144
+
145
+ // Customize the `:focus` state to imitate native WebKit styles.
146
+ @include form-control-focus;
147
+
148
+ // Placeholder
149
+ @include placeholder;
150
+
151
+ // Unstyle the caret on `<select>`s in IE10+.
152
+ &::-ms-expand {
153
+ background-color: transparent;
154
+ border: 0;
155
+ }
156
+
157
+ // Disabled and read-only inputs
158
+ //
159
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
160
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
161
+ // don't honor that edge case; we style them as disabled anyway.
162
+ &[disabled],
163
+ &[readonly],
164
+ fieldset[disabled] & {
165
+ background-color: $input-bg-disabled;
166
+ opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
167
+ }
168
+
169
+ &[disabled],
170
+ fieldset[disabled] & {
171
+ cursor: $cursor-disabled;
172
+ }
173
+
174
+ // [converter] extracted textarea& to textarea.form-control
175
175
  }
176
176
 
177
177
  // Reset height for `textarea`s
178
178
  textarea.form-control {
179
- height: auto;
179
+ height: auto;
180
180
  }
181
181
 
182
182
  // Special styles for iOS temporal inputs
@@ -188,14 +188,14 @@ textarea.form-control {
188
188
  //
189
189
  // Note that as of 9.3, iOS doesn't support `week`.
190
190
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
191
- input[type='date'],
192
- input[type='time'],
193
- input[type='datetime-local'],
194
- input[type='month'] {
195
- &.form-control {
196
- line-height: $input-height-base;
197
- }
198
- }
191
+ input[type="date"],
192
+ input[type="time"],
193
+ input[type="datetime-local"],
194
+ input[type="month"] {
195
+ &.form-control {
196
+ line-height: $input-height-base;
197
+ }
198
+ }
199
199
  }
200
200
 
201
201
  // Form groups
@@ -203,7 +203,7 @@ textarea.form-control {
203
203
  // Designed to help with the organization and spacing of vertical forms. For
204
204
  // horizontal forms, use the predefined grid classes.
205
205
  .form-group {
206
- margin-bottom: $form-group-margin-bottom;
206
+ margin-bottom: $form-group-margin-bottom;
207
207
  }
208
208
 
209
209
  // Checkboxes and radios
@@ -211,64 +211,64 @@ textarea.form-control {
211
211
  // Indent the labels to position radios/checkboxes as hanging controls.
212
212
  .radio,
213
213
  .checkbox {
214
- position: relative;
215
- display: block;
216
- margin-top: 10px;
217
- margin-bottom: 10px;
218
-
219
- // These are used on elements with <label> descendants
220
- &.disabled,
221
- fieldset[disabled] & {
222
- label {
223
- cursor: $cursor-disabled;
224
- }
225
- }
226
-
227
- label {
228
- min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
229
- padding-left: 20px;
230
- margin-bottom: 0;
231
- font-weight: 400;
232
- cursor: pointer;
233
- }
234
- }
235
-
236
- .radio input[type='radio'],
237
- .radio-inline input[type='radio'],
238
- .checkbox input[type='checkbox'],
239
- .checkbox-inline input[type='checkbox'] {
240
- position: absolute;
241
- margin-top: 4px \9;
242
- margin-left: -20px;
214
+ position: relative;
215
+ display: block;
216
+ margin-top: 10px;
217
+ margin-bottom: 10px;
218
+
219
+ // These are used on elements with <label> descendants
220
+ &.disabled,
221
+ fieldset[disabled] & {
222
+ label {
223
+ cursor: $cursor-disabled;
224
+ }
225
+ }
226
+
227
+ label {
228
+ min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
229
+ padding-left: 20px;
230
+ margin-bottom: 0;
231
+ font-weight: 400;
232
+ cursor: pointer;
233
+ }
234
+ }
235
+
236
+ .radio input[type="radio"],
237
+ .radio-inline input[type="radio"],
238
+ .checkbox input[type="checkbox"],
239
+ .checkbox-inline input[type="checkbox"] {
240
+ position: absolute;
241
+ margin-top: 4px \9;
242
+ margin-left: -20px;
243
243
  }
244
244
 
245
245
  .radio + .radio,
246
246
  .checkbox + .checkbox {
247
- margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
247
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
248
248
  }
249
249
 
250
250
  // Radios and checkboxes on same line
251
251
  .radio-inline,
252
252
  .checkbox-inline {
253
- position: relative;
254
- display: inline-block;
255
- padding-left: 20px;
256
- margin-bottom: 0;
257
- font-weight: 400;
258
- vertical-align: middle;
259
- cursor: pointer;
253
+ position: relative;
254
+ display: inline-block;
255
+ padding-left: 20px;
256
+ margin-bottom: 0;
257
+ font-weight: 400;
258
+ vertical-align: middle;
259
+ cursor: pointer;
260
260
 
261
- // These are used directly on <label>s
262
- &.disabled,
263
- fieldset[disabled] & {
264
- cursor: $cursor-disabled;
265
- }
261
+ // These are used directly on <label>s
262
+ &.disabled,
263
+ fieldset[disabled] & {
264
+ cursor: $cursor-disabled;
265
+ }
266
266
  }
267
267
 
268
268
  .radio-inline + .radio-inline,
269
269
  .checkbox-inline + .checkbox-inline {
270
- margin-top: 0;
271
- margin-left: 10px; // space out consecutive inline controls
270
+ margin-top: 0;
271
+ margin-left: 10px; // space out consecutive inline controls
272
272
  }
273
273
 
274
274
  // Static form control text
@@ -276,18 +276,18 @@ textarea.form-control {
276
276
  // Apply class to a `p` element to make any string of text align with labels in
277
277
  // a horizontal form layout.
278
278
  .form-control-static {
279
- min-height: ($line-height-computed + $font-size-base);
280
- // Size it appropriately next to real form controls
281
- padding-top: ($padding-base-vertical + 1);
282
- padding-bottom: ($padding-base-vertical + 1);
283
- // Remove default margin from `p`
284
- margin-bottom: 0;
279
+ min-height: ($line-height-computed + $font-size-base);
280
+ // Size it appropriately next to real form controls
281
+ padding-top: ($padding-base-vertical + 1);
282
+ padding-bottom: ($padding-base-vertical + 1);
283
+ // Remove default margin from `p`
284
+ margin-bottom: 0;
285
285
 
286
- &.input-lg,
287
- &.input-sm {
288
- padding-right: 0;
289
- padding-left: 0;
290
- }
286
+ &.input-lg,
287
+ &.input-sm {
288
+ padding-right: 0;
289
+ padding-left: 0;
290
+ }
291
291
  }
292
292
 
293
293
  // Form control sizing
@@ -298,156 +298,158 @@ textarea.form-control {
298
298
  // The `.form-group-* form-control` variations are sadly duplicated to avoid the
299
299
  // issue documented in https://github.com/twbs/bootstrap/issues/15074.
300
300
  @include input-size(
301
- '.input-sm',
302
- $input-height-small,
303
- $padding-small-vert,
304
- $padding-small-horizontal,
305
- $font-size-small,
306
- $line-height-small,
307
- $input-border-radius-small
301
+ ".input-sm",
302
+ $input-height-small,
303
+ $padding-small-vert,
304
+ $padding-small-horizontal,
305
+ $font-size-small,
306
+ $line-height-small,
307
+ $input-border-radius-small
308
308
  );
309
309
 
310
310
  .form-group-sm {
311
- .form-control {
312
- height: $input-height-small;
313
- padding: $padding-small-vert $padding-small-horizontal;
314
- font-size: $font-size-small;
315
- line-height: $line-height-small;
316
- border-radius: $input-border-radius-small;
317
- }
318
-
319
- select.form-control {
320
- height: $input-height-small;
321
- line-height: $input-height-small;
322
- }
323
-
324
- textarea.form-control,
325
- select[multiple].form-control {
326
- height: auto;
327
- }
328
-
329
- .form-control-static {
330
- height: $input-height-small;
331
- min-height: ($line-height-computed + $font-size-small);
332
- padding: ($padding-small-vert + 1) $padding-small-horizontal;
333
- font-size: $font-size-small;
334
- line-height: $line-height-small;
335
- }
311
+ .form-control {
312
+ height: $input-height-small;
313
+ padding: $padding-small-vert $padding-small-horizontal;
314
+ font-size: $font-size-small;
315
+ line-height: $line-height-small;
316
+ border-radius: $input-border-radius-small;
317
+ }
318
+
319
+ select.form-control {
320
+ height: $input-height-small;
321
+ line-height: $input-height-small;
322
+ }
323
+
324
+ textarea.form-control,
325
+ select[multiple].form-control {
326
+ height: auto;
327
+ }
328
+
329
+ .form-control-static {
330
+ height: $input-height-small;
331
+ min-height: ($line-height-computed + $font-size-small);
332
+ padding: ($padding-small-vert + 1) $padding-small-horizontal;
333
+ font-size: $font-size-small;
334
+ line-height: $line-height-small;
335
+ }
336
336
  }
337
337
 
338
338
  @include input-size(
339
- '.input-lg',
340
- $input-height-large,
341
- $padding-large-vert,
342
- $padding-large-horizontal,
343
- $font-size-large,
344
- $line-height-large,
345
- $input-border-radius-large
339
+ ".input-lg",
340
+ $input-height-large,
341
+ $padding-large-vert,
342
+ $padding-large-horizontal,
343
+ $font-size-large,
344
+ $line-height-large,
345
+ $input-border-radius-large
346
346
  );
347
347
 
348
348
  .form-group-lg {
349
- .form-control {
350
- height: $input-height-large;
351
- padding: $padding-large-vert $padding-large-horizontal;
352
- font-size: $font-size-large;
353
- line-height: $line-height-large;
354
- border-radius: $input-border-radius-large;
355
- }
356
-
357
- select.form-control {
358
- height: $input-height-large;
359
- line-height: $input-height-large;
360
- }
361
-
362
- textarea.form-control,
363
- select[multiple].form-control {
364
- height: auto;
365
- }
366
-
367
- .form-control-static {
368
- height: $input-height-large;
369
- min-height: ($line-height-computed + $font-size-large);
370
- padding: ($padding-large-vert + 1) $padding-large-horizontal;
371
- font-size: $font-size-large;
372
- line-height: $line-height-large;
373
- }
349
+ .form-control {
350
+ height: $input-height-large;
351
+ padding: $padding-large-vert $padding-large-horizontal;
352
+ font-size: $font-size-large;
353
+ line-height: $line-height-large;
354
+ border-radius: $input-border-radius-large;
355
+ }
356
+
357
+ select.form-control {
358
+ height: $input-height-large;
359
+ line-height: $input-height-large;
360
+ }
361
+
362
+ textarea.form-control,
363
+ select[multiple].form-control {
364
+ height: auto;
365
+ }
366
+
367
+ .form-control-static {
368
+ height: $input-height-large;
369
+ min-height: ($line-height-computed + $font-size-large);
370
+ padding: ($padding-large-vert + 1) $padding-large-horizontal;
371
+ font-size: $font-size-large;
372
+ line-height: $line-height-large;
373
+ }
374
374
  }
375
375
  // Form control feedback states
376
376
  //
377
377
  // Apply contextual and semantic states to individual form controls.
378
378
  .has-feedback {
379
- // Enable absolute positioning
380
- position: relative;
379
+ // Enable absolute positioning
380
+ position: relative;
381
381
 
382
- // Ensure icons don't overlap text
383
- .form-control {
384
- padding-right: ($input-height-base * 1.25);
385
- }
382
+ // Ensure icons don't overlap text
383
+ .form-control {
384
+ padding-right: ($input-height-base * 1.25);
385
+ }
386
386
  }
387
387
  // Feedback icon (requires .glyphicon classes)
388
388
  .form-control-feedback {
389
- position: absolute;
390
- top: 0;
391
- right: 0;
392
- z-index: 2; // Ensure icon is above input groups
393
- display: block;
394
- width: $input-height-base;
395
- height: $input-height-base;
396
- line-height: $input-height-base;
397
- text-align: center;
398
- pointer-events: none;
389
+ position: absolute;
390
+ top: 0;
391
+ right: 0;
392
+ z-index: 2; // Ensure icon is above input groups
393
+ display: block;
394
+ width: $input-height-base;
395
+ height: $input-height-base;
396
+ line-height: $input-height-base;
397
+ text-align: center;
398
+ pointer-events: none;
399
399
  }
400
400
 
401
401
  .input-lg + .form-control-feedback,
402
402
  .input-group-lg + .form-control-feedback,
403
403
  .form-group-lg .form-control + .form-control-feedback {
404
- width: $input-height-large;
405
- height: $input-height-large;
406
- line-height: $input-height-large;
404
+ width: $input-height-large;
405
+ height: $input-height-large;
406
+ line-height: $input-height-large;
407
407
  }
408
408
 
409
409
  .input-sm + .form-control-feedback,
410
410
  .input-group-sm + .form-control-feedback,
411
411
  .form-group-sm .form-control + .form-control-feedback {
412
- width: $input-height-small;
413
- height: $input-height-small;
414
- line-height: $input-height-small;
412
+ width: $input-height-small;
413
+ height: $input-height-small;
414
+ line-height: $input-height-small;
415
415
  }
416
416
 
417
417
  // Feedback states
418
418
  .has-success {
419
- @include form-control-validation(
420
- $state-success-text,
421
- $state-success-text,
422
- $state-success-bg
423
- );
419
+ @include form-control-validation(
420
+ $state-success-text,
421
+ $state-success-text,
422
+ $state-success-bg
423
+ );
424
424
  }
425
425
 
426
426
  .has-warning {
427
- @include form-control-validation(
428
- $state-warning-text,
429
- $state-warning-text,
430
- $state-warning-bg
431
- );
427
+ @include form-control-validation(
428
+ $state-warning-text,
429
+ $state-warning-text,
430
+ $state-warning-bg
431
+ );
432
432
  }
433
433
 
434
434
  .has-error {
435
- @include form-control-validation(
436
- $state-danger-text,
437
- $state-danger-text,
438
- $state-danger-bg
439
- );
435
+ @include form-control-validation(
436
+ $state-danger-text,
437
+ $state-danger-text,
438
+ $state-danger-bg
439
+ );
440
440
  }
441
441
 
442
442
  // Reposition feedback icon if input has visible label above
443
443
  .has-feedback label {
444
- & ~ .form-control-feedback {
445
- top: ($line-height-computed + 5); // Height of the `label` and its margin
446
- }
444
+ & ~ .form-control-feedback {
445
+ top: (
446
+ $line-height-computed + 5
447
+ ); // Height of the `label` and its margin
448
+ }
447
449
 
448
- &.sr-only ~ .form-control-feedback {
449
- top: 0;
450
- }
450
+ &.sr-only ~ .form-control-feedback {
451
+ top: 0;
452
+ }
451
453
  }
452
454
 
453
455
  // Help text
@@ -455,10 +457,10 @@ textarea.form-control {
455
457
  // Apply to any element you wish to create light text for placement immediately
456
458
  // below a form control. Use for general help, formatting, or instructional text.
457
459
  .help-block {
458
- display: block; // account for any element using help-block
459
- margin-top: 5px;
460
- margin-bottom: 10px;
461
- color: lighten($text-color, 25%); // lighten the text some for contrast
460
+ display: block; // account for any element using help-block
461
+ margin-top: 5px;
462
+ margin-bottom: 10px;
463
+ color: lighten($text-color, 25%); // lighten the text some for contrast
462
464
  }
463
465
 
464
466
  // Horizontal forms
@@ -466,45 +468,47 @@ textarea.form-control {
466
468
  // Horizontal forms are built on grid classes and allow you to create forms with
467
469
  // labels on the left and inputs on the right.
468
470
  .form-horizontal {
469
- // Consistent vertical alignment of radios and checkboxes
470
- //
471
- // Labels also get some reset styles, but that is scoped to a media query below.
472
- .radio,
473
- .checkbox,
474
- .radio-inline,
475
- .checkbox-inline {
476
- padding-top: ($padding-base-vertical + 1); // Default padding plus a border
477
- margin-top: 0;
478
- margin-bottom: 0;
479
- }
480
- // Account for padding we're adding to ensure the alignment and of help text
481
- // and other content below items
482
- .radio,
483
- .checkbox {
484
- min-height: ($line-height-computed + ($padding-base-vertical + 1));
485
- }
486
-
487
- // Make form groups behave like rows
488
- .form-group {
489
- @include make-row;
490
- }
491
-
492
- // Reset spacing and right align labels, but scope to media queries so that
493
- // labels on narrow viewports stack the same as a default form example.
494
- @media (min-width: $screen-sm-min) {
495
- .control-label {
496
- padding-top: ($padding-base-vertical + 1);
497
- // Default padding plus a border
498
- margin-bottom: 0;
499
- text-align: right;
500
- }
501
- }
502
-
503
- // Validation states
504
- //
505
- // Reposition the icon because it's now within a grid column and columns have
506
- // `position: relative;` on them. Also accounts for the grid gutter padding.
507
- .has-feedback .form-control-feedback {
508
- right: floor(($grid-gutter-width / 2));
509
- }
471
+ // Consistent vertical alignment of radios and checkboxes
472
+ //
473
+ // Labels also get some reset styles, but that is scoped to a media query below.
474
+ .radio,
475
+ .checkbox,
476
+ .radio-inline,
477
+ .checkbox-inline {
478
+ padding-top: (
479
+ $padding-base-vertical + 1
480
+ ); // Default padding plus a border
481
+ margin-top: 0;
482
+ margin-bottom: 0;
483
+ }
484
+ // Account for padding we're adding to ensure the alignment and of help text
485
+ // and other content below items
486
+ .radio,
487
+ .checkbox {
488
+ min-height: ($line-height-computed + ($padding-base-vertical + 1));
489
+ }
490
+
491
+ // Make form groups behave like rows
492
+ .form-group {
493
+ @include make-row;
494
+ }
495
+
496
+ // Reset spacing and right align labels, but scope to media queries so that
497
+ // labels on narrow viewports stack the same as a default form example.
498
+ @media (min-width: $screen-sm-min) {
499
+ .control-label {
500
+ padding-top: ($padding-base-vertical + 1);
501
+ // Default padding plus a border
502
+ margin-bottom: 0;
503
+ text-align: right;
504
+ }
505
+ }
506
+
507
+ // Validation states
508
+ //
509
+ // Reposition the icon because it's now within a grid column and columns have
510
+ // `position: relative;` on them. Also accounts for the grid gutter padding.
511
+ .has-feedback .form-control-feedback {
512
+ right: floor(($grid-gutter-width / 2));
513
+ }
510
514
  }