@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
|
@@ -4,67 +4,67 @@
|
|
|
4
4
|
// and disabled options for all buttons
|
|
5
5
|
|
|
6
6
|
@mixin button-variant($color, $background, $border) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
color: $color;
|
|
8
|
+
background-color: $background;
|
|
9
|
+
border-color: $border;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
&:focus,
|
|
12
|
+
&.focus {
|
|
13
|
+
color: $color;
|
|
14
|
+
background-color: darken($background, 10%);
|
|
15
|
+
border-color: darken($border, 25%);
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
&:hover {
|
|
19
|
+
color: $color;
|
|
20
|
+
background-color: darken($background, 10%);
|
|
21
|
+
border-color: darken($border, 12%);
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
&:active,
|
|
25
|
+
&.active,
|
|
26
|
+
.open > &.dropdown-toggle {
|
|
27
|
+
color: $color;
|
|
28
|
+
background-color: darken($background, 10%);
|
|
29
|
+
background-image: none;
|
|
30
|
+
border-color: darken($border, 12%);
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
&:hover,
|
|
33
|
+
&:focus,
|
|
34
|
+
&.focus {
|
|
35
|
+
color: $color;
|
|
36
|
+
background-color: darken($background, 17%);
|
|
37
|
+
border-color: darken($border, 25%);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
&.disabled,
|
|
42
|
+
&[disabled],
|
|
43
|
+
fieldset[disabled] & {
|
|
44
|
+
&:hover,
|
|
45
|
+
&:focus,
|
|
46
|
+
&.focus {
|
|
47
|
+
background-color: $background;
|
|
48
|
+
border-color: $border;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
.badge {
|
|
53
|
+
color: $background;
|
|
54
|
+
background-color: $color;
|
|
55
|
+
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Button sizes
|
|
59
59
|
@mixin button-size(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
$padding-vertical,
|
|
61
|
+
$padding-horizontal,
|
|
62
|
+
$font-size,
|
|
63
|
+
$line-height,
|
|
64
|
+
$border-radius
|
|
65
65
|
) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
padding: $padding-vertical $padding-horizontal;
|
|
67
|
+
font-size: $font-size;
|
|
68
|
+
line-height: $line-height;
|
|
69
|
+
border-radius: $border-radius;
|
|
70
70
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
//
|
|
11
11
|
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
|
12
12
|
@mixin clearfix() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
&::before,
|
|
14
|
+
&::after {
|
|
15
|
+
display: table; // 2
|
|
16
|
+
content: " "; // 1
|
|
17
|
+
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
&::after {
|
|
20
|
+
clear: both;
|
|
21
|
+
}
|
|
22
22
|
}
|
|
@@ -4,48 +4,48 @@
|
|
|
4
4
|
// and successes.
|
|
5
5
|
|
|
6
6
|
@mixin form-control-validation(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
$text-color: #555,
|
|
8
|
+
$border-color: #ccc,
|
|
9
|
+
$background-color: #f5f5f5
|
|
10
10
|
) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
// Color the label and help text
|
|
12
|
+
.help-block,
|
|
13
|
+
.control-label,
|
|
14
|
+
.radio,
|
|
15
|
+
.checkbox,
|
|
16
|
+
.radio-inline,
|
|
17
|
+
.checkbox-inline,
|
|
18
|
+
&.radio label,
|
|
19
|
+
&.checkbox label,
|
|
20
|
+
&.radio-inline label,
|
|
21
|
+
&.checkbox-inline label {
|
|
22
|
+
color: $text-color;
|
|
23
|
+
}
|
|
24
|
+
// Set the border and box shadow on specific inputs to match
|
|
25
|
+
.form-control {
|
|
26
|
+
border-color: $border-color;
|
|
27
|
+
@include box-shadow(
|
|
28
|
+
inset 0 1px 1px rgba(0, 0, 0, 0.075)
|
|
29
|
+
); // Redeclare so transitions work
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
&:focus {
|
|
32
|
+
border-color: darken($border-color, 10%);
|
|
33
|
+
$shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
|
|
34
|
+
0 0 6px lighten($border-color, 20%);
|
|
35
|
+
@include box-shadow($shadow);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// Set validation states also for addons
|
|
39
|
+
.input-group-addon {
|
|
40
|
+
color: $text-color;
|
|
41
|
+
background-color: $background-color;
|
|
42
|
+
border-color: $border-color;
|
|
43
|
+
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
// Optional feedback icon
|
|
46
|
+
.form-control-feedback {
|
|
47
|
+
color: $text-color;
|
|
48
|
+
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// Form control focus state
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
// Example usage: change the default blue border and shadow to white for better
|
|
62
62
|
// contrast against a dark gray background.
|
|
63
63
|
@mixin form-control-focus($color: $input-border-focus) {
|
|
64
|
-
|
|
64
|
+
$color-rgba: rgba(red($color), green($color), blue($color), 0.6);
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
&:focus {
|
|
67
|
+
border-color: $color;
|
|
68
|
+
outline: 0;
|
|
69
|
+
@include box-shadow(
|
|
70
|
+
inset 0 1px 1px rgba(0, 0, 0, 0.075),
|
|
71
|
+
0 0 8px $color-rgba
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
// Form control sizing
|
|
@@ -80,29 +80,29 @@
|
|
|
80
80
|
// element gets special love because it's special, and that's a fact!
|
|
81
81
|
// [converter] $parent hack
|
|
82
82
|
@mixin input-size(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
$parent,
|
|
84
|
+
$input-height,
|
|
85
|
+
$padding-vertical,
|
|
86
|
+
$padding-horizontal,
|
|
87
|
+
$font-size,
|
|
88
|
+
$line-height,
|
|
89
|
+
$border-radius
|
|
90
90
|
) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
#{$parent} {
|
|
92
|
+
height: $input-height;
|
|
93
|
+
padding: $padding-vertical $padding-horizontal;
|
|
94
|
+
font-size: $font-size;
|
|
95
|
+
line-height: $line-height;
|
|
96
|
+
border-radius: $border-radius;
|
|
97
|
+
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
select#{$parent} {
|
|
100
|
+
height: $input-height;
|
|
101
|
+
line-height: $input-height;
|
|
102
|
+
}
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
textarea#{$parent},
|
|
105
|
+
select[multiple]#{$parent} {
|
|
106
|
+
height: auto;
|
|
107
|
+
}
|
|
108
108
|
}
|
|
@@ -5,82 +5,82 @@
|
|
|
5
5
|
|
|
6
6
|
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
|
7
7
|
@mixin make-grid-columns(
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
$i: 1,
|
|
9
|
+
$list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}"
|
|
10
10
|
) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
@for $i from (1 + 1) through $grid-columns {
|
|
12
|
+
$list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
|
|
13
|
+
}
|
|
14
|
+
#{$list} {
|
|
15
|
+
position: relative;
|
|
16
|
+
// Prevent columns from collapsing when empty
|
|
17
|
+
min-height: 1px;
|
|
18
|
+
// Inner gutter via padding
|
|
19
|
+
padding-left: ceil(($grid-gutter-width / 2));
|
|
20
|
+
padding-right: floor(($grid-gutter-width / 2));
|
|
21
|
+
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
|
25
|
-
@mixin float-grid-columns($class, $i: 1, $list:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
@mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
|
|
26
|
+
@for $i from (1 + 1) through $grid-columns {
|
|
27
|
+
$list: "#{$list}, .col-#{$class}-#{$i}";
|
|
28
|
+
}
|
|
29
|
+
#{$list} {
|
|
30
|
+
float: left;
|
|
31
|
+
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@mixin calc-grid-column($index, $class, $type) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
@if ($type == width) and ($index > 0) {
|
|
36
|
+
.col-#{$class}-#{$index} {
|
|
37
|
+
width: percentage(($index / $grid-columns));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
@if ($type == push) and ($index > 0) {
|
|
42
|
+
.col-#{$class}-push-#{$index} {
|
|
43
|
+
left: percentage(($index / $grid-columns));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
@if ($type == push) and ($index == 0) {
|
|
48
|
+
.col-#{$class}-push-0 {
|
|
49
|
+
left: auto;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
@if ($type == pull) and ($index > 0) {
|
|
54
|
+
.col-#{$class}-pull-#{$index} {
|
|
55
|
+
right: percentage(($index / $grid-columns));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
@if ($type == pull) and ($index == 0) {
|
|
60
|
+
.col-#{$class}-pull-0 {
|
|
61
|
+
right: auto;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
@if ($type == offset) {
|
|
66
|
+
.col-#{$class}-offset-#{$index} {
|
|
67
|
+
margin-left: percentage(($index / $grid-columns));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
|
73
73
|
@mixin loop-grid-columns($columns, $class, $type) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
@for $i from 0 through $columns {
|
|
75
|
+
@include calc-grid-column($i, $class, $type);
|
|
76
|
+
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// Create grid for specific class
|
|
80
80
|
@mixin make-grid($class) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
@include float-grid-columns($class);
|
|
82
|
+
@include loop-grid-columns($grid-columns, $class, width);
|
|
83
|
+
@include loop-grid-columns($grid-columns, $class, pull);
|
|
84
|
+
@include loop-grid-columns($grid-columns, $class, push);
|
|
85
|
+
@include loop-grid-columns($grid-columns, $class, offset);
|
|
86
86
|
}
|
|
@@ -3,110 +3,110 @@
|
|
|
3
3
|
// Generate semantic grid columns with these mixins.
|
|
4
4
|
// Creates a wrapper for a series of columns
|
|
5
5
|
@mixin make-row($gutter: $grid-gutter-width) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
margin-right: floor(($gutter / -2));
|
|
7
|
+
margin-left: ceil(($gutter / -2));
|
|
8
|
+
@include clearfix;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
// Generate the extra small columns
|
|
12
12
|
@mixin make-xs-column($columns, $gutter: $grid-gutter-width) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
position: relative;
|
|
14
|
+
float: left;
|
|
15
|
+
width: percentage(($columns / $grid-columns));
|
|
16
|
+
min-height: 1px;
|
|
17
|
+
padding-right: ($gutter / 2);
|
|
18
|
+
padding-left: ($gutter / 2);
|
|
19
19
|
}
|
|
20
20
|
@mixin make-xs-column-offset($columns) {
|
|
21
|
-
|
|
21
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
22
22
|
}
|
|
23
23
|
@mixin make-xs-column-push($columns) {
|
|
24
|
-
|
|
24
|
+
left: percentage(($columns / $grid-columns));
|
|
25
25
|
}
|
|
26
26
|
@mixin make-xs-column-pull($columns) {
|
|
27
|
-
|
|
27
|
+
right: percentage(($columns / $grid-columns));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// Generate the small columns
|
|
31
31
|
@mixin make-sm-column($columns, $gutter: $grid-gutter-width) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
position: relative;
|
|
33
|
+
min-height: 1px;
|
|
34
|
+
padding-right: ($gutter / 2);
|
|
35
|
+
padding-left: ($gutter / 2);
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
@media (min-width: $screen-sm-min) {
|
|
38
|
+
float: left;
|
|
39
|
+
width: percentage(($columns / $grid-columns));
|
|
40
|
+
}
|
|
41
41
|
}
|
|
42
42
|
@mixin make-sm-column-offset($columns) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
@media (min-width: $screen-sm-min) {
|
|
44
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
45
|
+
}
|
|
46
46
|
}
|
|
47
47
|
@mixin make-sm-column-push($columns) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
@media (min-width: $screen-sm-min) {
|
|
49
|
+
left: percentage(($columns / $grid-columns));
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
52
|
@mixin make-sm-column-pull($columns) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
@media (min-width: $screen-sm-min) {
|
|
54
|
+
right: percentage(($columns / $grid-columns));
|
|
55
|
+
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Generate the medium columns
|
|
59
59
|
@mixin make-md-column($columns, $gutter: $grid-gutter-width) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
position: relative;
|
|
61
|
+
min-height: 1px;
|
|
62
|
+
padding-right: ($gutter / 2);
|
|
63
|
+
padding-left: ($gutter / 2);
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
@media (min-width: $screen-md-min) {
|
|
66
|
+
float: left;
|
|
67
|
+
width: percentage(($columns / $grid-columns));
|
|
68
|
+
}
|
|
69
69
|
}
|
|
70
70
|
@mixin make-md-column-offset($columns) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
@media (min-width: $screen-md-min) {
|
|
72
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
73
|
+
}
|
|
74
74
|
}
|
|
75
75
|
@mixin make-md-column-push($columns) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
@media (min-width: $screen-md-min) {
|
|
77
|
+
left: percentage(($columns / $grid-columns));
|
|
78
|
+
}
|
|
79
79
|
}
|
|
80
80
|
@mixin make-md-column-pull($columns) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
@media (min-width: $screen-md-min) {
|
|
82
|
+
right: percentage(($columns / $grid-columns));
|
|
83
|
+
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// Generate the large columns
|
|
87
87
|
@mixin make-lg-column($columns, $gutter: $grid-gutter-width) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
position: relative;
|
|
89
|
+
min-height: 1px;
|
|
90
|
+
padding-right: ($gutter / 2);
|
|
91
|
+
padding-left: ($gutter / 2);
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
@media (min-width: $screen-lg-min) {
|
|
94
|
+
float: left;
|
|
95
|
+
width: percentage(($columns / $grid-columns));
|
|
96
|
+
}
|
|
97
97
|
}
|
|
98
98
|
@mixin make-lg-column-offset($columns) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
@media (min-width: $screen-lg-min) {
|
|
100
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
101
|
+
}
|
|
102
102
|
}
|
|
103
103
|
@mixin make-lg-column-push($columns) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
@media (min-width: $screen-lg-min) {
|
|
105
|
+
left: percentage(($columns / $grid-columns));
|
|
106
|
+
}
|
|
107
107
|
}
|
|
108
108
|
@mixin make-lg-column-pull($columns) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
@media (min-width: $screen-lg-min) {
|
|
110
|
+
right: percentage(($columns / $grid-columns));
|
|
111
|
+
}
|
|
112
112
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Labels
|
|
2
2
|
|
|
3
3
|
@mixin label-variant($color) {
|
|
4
|
-
|
|
4
|
+
background-color: $color;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
&[href] {
|
|
7
|
+
&:hover,
|
|
8
|
+
&:focus {
|
|
9
|
+
background-color: darken($color, 10%);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Dividers (basically an hr) within dropdowns and nav lists
|
|
4
4
|
|
|
5
5
|
@mixin nav-divider($color: #e5e5e5) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
height: 1px;
|
|
7
|
+
margin: (($line-height-computed / 2) - 1) 0;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: $color;
|
|
10
10
|
}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
|
|
5
5
|
|
|
6
6
|
@mixin navbar-vertical-align($element-height) {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
margin-top: (($navbar-height - $element-height) / 2);
|
|
8
|
+
margin-bottom: (($navbar-height - $element-height) / 2);
|
|
9
9
|
}
|