@madie/madie-design-system 1.2.39 → 1.2.41
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.
- package/components/TruncateText/TruncateText.stories.js +25 -0
- package/components/TruncateText/index.js +52 -0
- package/components/index.js +2 -0
- package/coverage/clover.xml +3 -646
- package/coverage/coverage-final.json +1 -39
- package/coverage/lcov-report/index.html +11 -431
- package/coverage/lcov.info +0 -1389
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/doctor-storybook.log +41 -0
- package/migration-storybook.log +329 -0
- package/package.json +2 -1
- package/storybook-static/149.65bbc904.iframe.bundle.js +2 -0
- package/storybook-static/149.65bbc904.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook-static/164.e319e208c2d3a626e1f5.manager.bundle.js +1 -0
- package/storybook-static/192.69f71338.iframe.bundle.js +1 -0
- package/storybook-static/198.80608638.iframe.bundle.js +2 -0
- package/storybook-static/198.80608638.iframe.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/217.b9975326.iframe.bundle.js +2 -0
- package/storybook-static/217.b9975326.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/261.70d64bef7770b201fb77.manager.bundle.js +1 -0
- package/storybook-static/303.0d9893ef.iframe.bundle.js +1 -0
- package/storybook-static/319.3e8dc6b4a7d2f3e67eb0.manager.bundle.js +2 -0
- package/storybook-static/319.3e8dc6b4a7d2f3e67eb0.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/322.8b797be6.iframe.bundle.js +103 -0
- package/storybook-static/322.8b797be6.iframe.bundle.js.LICENSE.txt +140 -0
- package/storybook-static/322.8b797be6.iframe.bundle.js.map +1 -0
- package/storybook-static/40.df6534995de03601f813.manager.bundle.js +2 -0
- package/storybook-static/40.df6534995de03601f813.manager.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/45.b37f580f.iframe.bundle.js +2 -0
- package/storybook-static/45.b37f580f.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/467.7fabc4cd8819eddb42f9.manager.bundle.js +2 -0
- package/storybook-static/467.7fabc4cd8819eddb42f9.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/582.ffbf0b74.iframe.bundle.js +1 -0
- package/storybook-static/609.e27a5f77.iframe.bundle.js +2 -0
- package/storybook-static/609.e27a5f77.iframe.bundle.js.LICENSE.txt +11 -0
- package/storybook-static/794.cbe100d1870b4d8a130a.manager.bundle.js +1 -0
- package/storybook-static/861.0b692bf7.iframe.bundle.js +1 -0
- package/storybook-static/931.51f69825a96d7bce33f5.manager.bundle.js +2 -0
- package/storybook-static/931.51f69825a96d7bce33f5.manager.bundle.js.LICENSE.txt +94 -0
- package/storybook-static/987.874321cb40e99203aabe.manager.bundle.js +1 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +364 -0
- package/storybook-static/index.html +59 -0
- package/storybook-static/main.07b67595538d689438e4.manager.bundle.js +1 -0
- package/storybook-static/main.8ae59f4f.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.09b9b14c88359f235007.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.c9dcb6d8.iframe.bundle.js +1 -0
- package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
- package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
- package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
- package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
- package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
- package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
- package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
- package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
- package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
- package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
- package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
- package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
- package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
- package/storybook-static/static/media/arrow-both.a0959e13.svg +3 -0
- package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
- package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
- package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
- package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +2671 -0
- package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
- package/storybook.log +26 -0
- package/styles/_global.scss +66 -66
- package/styles/_main.scss +7 -7
- package/styles/_paths.scss +1 -1
- package/styles/_qpp-style.scss +35 -35
- package/styles/components/_accordion.scss +254 -254
- package/styles/components/_breadcrumbs.scss +7 -7
- package/styles/components/_buttons.scss +535 -535
- package/styles/components/_error-page.scss +4 -4
- package/styles/components/_flash-notification.scss +4 -4
- package/styles/components/_fonts.scss +16 -16
- package/styles/components/_forms.scss +1 -1
- package/styles/components/_grid.scss +22 -22
- package/styles/components/_links.scss +5 -3
- package/styles/components/_madie-alert.scss +80 -71
- package/styles/components/_madie-confirm-dialog.scss +33 -33
- package/styles/components/_madie-delete-dialog.scss +33 -33
- package/styles/components/_madie-discard-dialog.scss +27 -27
- package/styles/components/_madie-tooltip.scss +59 -60
- package/styles/components/_modals.scss +9 -9
- package/styles/components/_score-chart.scss +3 -3
- package/styles/components/_tables.scss +74 -74
- package/styles/components/_tabs.scss +3 -3
- package/styles/components/_text-field-variable.scss +13 -13
- package/styles/components/_toast.scss +75 -75
- package/styles/components/_variables.scss +13 -13
- package/styles/qppds/base/_backgrounds.scss +3 -3
- package/styles/qppds/base/_fonts.scss +17 -17
- package/styles/qppds/base/_icon.scss +6 -6
- package/styles/qppds/base/_layout.scss +2 -2
- package/styles/qppds/base/_typography.scss +51 -51
- package/styles/qppds/base/index.scss +4 -4
- package/styles/qppds/components/_alert.scss +73 -73
- package/styles/qppds/components/_breadcrumbs.scss +54 -54
- package/styles/qppds/components/_button.scss +437 -437
- package/styles/qppds/components/_card.scss +172 -172
- package/styles/qppds/components/_dropdown.scss +40 -40
- package/styles/qppds/components/_footer.scss +604 -605
- package/styles/qppds/components/_header.scss +804 -804
- package/styles/qppds/components/_link.scss +35 -35
- package/styles/qppds/components/_madie-alert.scss +80 -71
- package/styles/qppds/components/_madie-confirm-dialog.scss +33 -34
- package/styles/qppds/components/_madie-delete-dialog.scss +33 -33
- package/styles/qppds/components/_madie-discard-dialog.scss +27 -27
- package/styles/qppds/components/_madie-tooltip.scss +59 -60
- package/styles/qppds/components/_modal.scss +109 -109
- package/styles/qppds/components/_page-header.scss +59 -55
- package/styles/qppds/components/_pagination.scss +154 -154
- package/styles/qppds/components/_search.scss +100 -100
- package/styles/qppds/components/_sidebar.scss +8 -8
- package/styles/qppds/components/_table.scss +129 -129
- package/styles/qppds/components/_tabs.scss +172 -172
- package/styles/qppds/components/_text-field-variable.scss +12 -12
- package/styles/qppds/components/_text-input.scss +57 -57
- package/styles/qppds/components/_toast.scss +75 -75
- package/styles/qppds/components/index.scss +23 -23
- package/styles/qppds/components/sidebar/_cms.scss +5 -5
- package/styles/qppds/components/sidebar/_details.scss +5 -5
- package/styles/qppds/components/sidebar/_links.scss +12 -11
- package/styles/qppds/components/sidebar/_sidebar-animation.scss +9 -9
- package/styles/qppds/components/sidebar/_sidebar-tooltip.scss +1 -1
- package/styles/qppds/components/sidebar/_sidebar.scss +140 -140
- package/styles/qppds/components/sidebar/project-specific/_wi.scss +3 -3
- package/styles/qppds/index.scss +4 -4
- package/styles/qppds/settings/_functions.scss +1 -1
- package/styles/qppds/settings/_index.scss +3 -3
- package/styles/qppds/settings/mixins/_borders.scss +3 -3
- package/styles/qppds/settings/mixins/_focus.scss +20 -20
- package/styles/qppds/settings/mixins/_icons.scss +19 -19
- package/styles/qppds/settings/mixins/_index.scss +8 -8
- package/styles/qppds/settings/mixins/_layout.scss +59 -59
- package/styles/qppds/settings/mixins/_lists.scss +8 -8
- package/styles/qppds/settings/mixins/_table.scss +75 -75
- package/styles/qppds/settings/mixins/_type.scss +43 -43
- package/styles/qppds/settings/mixins/_visually-hidden.scss +12 -12
- package/styles/qppds/settings/variables/_color.scss +41 -41
- package/styles/qppds/settings/variables/_index.scss +3 -3
- package/styles/qppds/settings/variables/_layout.scss +43 -43
- package/styles/qppds/settings/variables/_type.scss +90 -90
- package/styles/qppds/utilities/_background-color.scss +34 -34
- package/styles/qppds/utilities/_color.scss +8 -8
- package/styles/qppds/utilities/_display-visibility.scss +40 -40
- package/styles/qppds/utilities/_flexbox.scss +188 -188
- package/styles/qppds/utilities/_font-family.scss +2 -2
- package/styles/qppds/utilities/_font-size.scss +4 -4
- package/styles/qppds/utilities/_font-weight.scss +2 -2
- package/styles/qppds/utilities/_height.scss +24 -24
- package/styles/qppds/utilities/_margin.scss +108 -108
- package/styles/qppds/utilities/_padding.scss +69 -69
- package/styles/qppds/utilities/_position.scss +12 -12
- package/styles/qppds/utilities/_text-align.scss +20 -20
- package/styles/qppds/utilities/_text-transform.scss +2 -2
- package/styles/qppds/utilities/_truncate.scss +4 -4
- package/styles/qppds/utilities/_width.scss +53 -53
- package/styles/qppds/utilities/index.scss +15 -15
- package/styles/qppds.scss +2 -2
- package/styles/third-party/_legacy-bootstrap.scss +10 -10
- package/styles/third-party/legacy-bootstrap/_buttons.scss +91 -91
- package/styles/third-party/legacy-bootstrap/_dropdowns.scss +136 -136
- package/styles/third-party/legacy-bootstrap/_forms.scss +328 -324
- package/styles/third-party/legacy-bootstrap/_grid.scss +19 -19
- package/styles/third-party/legacy-bootstrap/_mixins.scss +19 -19
- package/styles/third-party/legacy-bootstrap/_navbar.scss +525 -525
- package/styles/third-party/legacy-bootstrap/_navs.scss +156 -156
- package/styles/third-party/legacy-bootstrap/_normalize.scss +70 -70
- package/styles/third-party/legacy-bootstrap/_scaffolding.scss +47 -47
- package/styles/third-party/legacy-bootstrap/_variables.scss +18 -18
- package/styles/third-party/legacy-bootstrap/mixins/_buttons.scss +52 -52
- package/styles/third-party/legacy-bootstrap/mixins/_clearfix.scss +8 -8
- package/styles/third-party/legacy-bootstrap/mixins/_forms.scss +70 -70
- package/styles/third-party/legacy-bootstrap/mixins/_grid-framework.scss +58 -58
- package/styles/third-party/legacy-bootstrap/mixins/_grid.scss +63 -63
- package/styles/third-party/legacy-bootstrap/mixins/_labels.scss +7 -7
- package/styles/third-party/legacy-bootstrap/mixins/_nav-divider.scss +4 -4
- package/styles/third-party/legacy-bootstrap/mixins/_nav-vertical-align.scss +2 -2
- package/styles/third-party/legacy-bootstrap/mixins/_opacity.scss +3 -3
- package/styles/third-party/legacy-bootstrap/mixins/_panels.scss +22 -22
- package/styles/third-party/legacy-bootstrap/mixins/_reset-filter.scss +1 -1
- package/styles/third-party/legacy-bootstrap/mixins/_reset-text.scss +16 -16
- package/styles/third-party/legacy-bootstrap/mixins/_resize.scss +2 -2
- package/styles/third-party/legacy-bootstrap/mixins/_responsive-visibility.scss +16 -16
- package/styles/third-party/legacy-bootstrap/mixins/_size.scss +3 -3
- package/styles/third-party/legacy-bootstrap/mixins/_tab-focus.scss +5 -5
- package/styles/third-party/legacy-bootstrap/mixins/_table-row.scss +23 -23
- package/styles/third-party/legacy-bootstrap/mixins/_text-emphasis.scss +7 -7
- package/styles/third-party/legacy-bootstrap/mixins/_text-overflow.scss +3 -3
- package/styles/third-party/legacy-bootstrap/mixins/_vendor-prefixes.scss +85 -85
- package/test/components/DateField.test.js +5 -10
- package/test/components/DateTimeField.test.js +3 -1
- package/test/components/Instant.test.js +37 -32
- package/test/components/MadieAlert.test.js +54 -11
- package/test/components/MadieConfirmDialog.test.js +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.html +0 -116
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +0 -370
- package/coverage/lcov-report/react/components/Button/index.html +0 -116
- package/coverage/lcov-report/react/components/Button/index.js.html +0 -385
- package/coverage/lcov-report/react/components/DateField/DateField.jsx.html +0 -427
- package/coverage/lcov-report/react/components/DateField/index.html +0 -116
- package/coverage/lcov-report/react/components/DateTimeField/DateTimeField.jsx.html +0 -352
- package/coverage/lcov-report/react/components/DateTimeField/index.html +0 -116
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +0 -364
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +0 -178
- package/coverage/lcov-report/react/components/Error/error.js.html +0 -163
- package/coverage/lcov-report/react/components/Error/index.html +0 -146
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +0 -496
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +0 -697
- package/coverage/lcov-report/react/components/Footer/footer.js.html +0 -175
- package/coverage/lcov-report/react/components/Footer/index.html +0 -146
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +0 -310
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +0 -208
- package/coverage/lcov-report/react/components/Infotip/index.html +0 -146
- package/coverage/lcov-report/react/components/Infotip/index.js.html +0 -94
- package/coverage/lcov-report/react/components/InputLabel/index.html +0 -116
- package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +0 -244
- package/coverage/lcov-report/react/components/Instant/index.html +0 -116
- package/coverage/lcov-report/react/components/Instant/index.jsx.html +0 -886
- package/coverage/lcov-report/react/components/MadieAlert/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +0 -565
- package/coverage/lcov-report/react/components/MadieConfirmDialog/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieConfirmDialog/index.jsx.html +0 -277
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +0 -247
- package/coverage/lcov-report/react/components/MadieDialog/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieDialog/index.jsx.html +0 -1021
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +0 -232
- package/coverage/lcov-report/react/components/MadieSpinner/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +0 -190
- package/coverage/lcov-report/react/components/MadieTooltip/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieTooltip/index.jsx.html +0 -232
- package/coverage/lcov-report/react/components/MadieTooltipIcon/index.html +0 -116
- package/coverage/lcov-report/react/components/MadieTooltipIcon/index.jsx.html +0 -178
- package/coverage/lcov-report/react/components/Pagination/index.html +0 -116
- package/coverage/lcov-report/react/components/Pagination/index.jsx.html +0 -736
- package/coverage/lcov-report/react/components/Popover/index.html +0 -116
- package/coverage/lcov-report/react/components/Popover/index.js.html +0 -478
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +0 -116
- package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +0 -514
- package/coverage/lcov-report/react/components/Select/index.html +0 -116
- package/coverage/lcov-report/react/components/Select/index.jsx.html +0 -646
- package/coverage/lcov-report/react/components/Tabs/Tab.js.html +0 -325
- package/coverage/lcov-report/react/components/Tabs/index.html +0 -131
- package/coverage/lcov-report/react/components/Tabs/index.js.html +0 -370
- package/coverage/lcov-report/react/components/TextArea/index.html +0 -116
- package/coverage/lcov-report/react/components/TextArea/index.jsx.html +0 -436
- package/coverage/lcov-report/react/components/TextField/index.html +0 -116
- package/coverage/lcov-report/react/components/TextField/index.jsx.html +0 -655
- package/coverage/lcov-report/react/components/Toast/index.html +0 -116
- package/coverage/lcov-report/react/components/Toast/index.jsx.html +0 -436
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +0 -349
- package/coverage/lcov-report/react/components/Tooltip/index.html +0 -146
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +0 -94
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +0 -313
- package/coverage/lcov-report/react/index.html +0 -116
- package/coverage/lcov-report/react/index.js.html +0 -133
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +0 -181
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +0 -1777
- package/coverage/lcov-report/react/lib/index.html +0 -131
- 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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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=
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
input[type="search"] {
|
|
43
|
+
// Override content-box in Normalize (* isn't specific enough)
|
|
44
|
+
@include box-sizing(border-box);
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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=
|
|
58
|
-
input[type=
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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=
|
|
75
|
-
|
|
74
|
+
input[type="file"] {
|
|
75
|
+
display: block;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
// Make range inputs behave like textual form controls
|
|
79
|
-
input[type=
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
87
|
+
height: auto;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// Focus for file, radio, and checkbox
|
|
91
|
-
input[type=
|
|
92
|
-
input[type=
|
|
93
|
-
input[type=
|
|
94
|
-
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.radio input[type=
|
|
237
|
-
.radio-inline input[type=
|
|
238
|
-
.checkbox input[type=
|
|
239
|
-
.checkbox-inline input[type=
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
-
|
|
271
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
|
|
380
|
-
|
|
379
|
+
// Enable absolute positioning
|
|
380
|
+
position: relative;
|
|
381
381
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
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
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
|
|
413
|
-
|
|
414
|
-
|
|
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
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
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
|
-
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
& ~ .form-control-feedback {
|
|
445
|
+
top: (
|
|
446
|
+
$line-height-computed + 5
|
|
447
|
+
); // Height of the `label` and its margin
|
|
448
|
+
}
|
|
447
449
|
|
|
448
|
-
|
|
449
|
-
|
|
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
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
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
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
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
|
}
|