@madie/madie-design-system 1.0.0
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/.babelrc +10 -0
- package/.editorconfig +22 -0
- package/.eslintignore +5 -0
- package/.eslintrc.js +31 -0
- package/.storybook/.babelrc +4 -0
- package/.storybook/main.js +89 -0
- package/.storybook/preview-head.html +9 -0
- package/.storybook/preview.js +5 -0
- package/README.md +5 -0
- package/components/Accordion/Accordion.stories.js +20 -0
- package/components/Accordion/index.jsx +93 -0
- package/components/Alert/Alert.stories.js +61 -0
- package/components/Alert/index.js +46 -0
- package/components/Breadcrumb/Breadcrumb.md +28 -0
- package/components/Breadcrumb/Breadcrumb.stories.js +76 -0
- package/components/Breadcrumb/index.js +83 -0
- package/components/Button/Button.stories.js +121 -0
- package/components/Button/index.js +90 -0
- package/components/CalloutBox/CalloutBox.stories.js +94 -0
- package/components/CalloutBox/index.js +109 -0
- package/components/Card/Card.stories.js +163 -0
- package/components/Card/index.js +137 -0
- package/components/Dropdown/Dropdown.stories.js +94 -0
- package/components/Dropdown/index.js +85 -0
- package/components/Error/Collapsible.jsx +88 -0
- package/components/Error/ErrorUI.jsx +31 -0
- package/components/Error/error.js +26 -0
- package/components/FlashNotification/FlashNotificationUI.jsx +91 -0
- package/components/FlashNotification/index.js +30 -0
- package/components/Footer/Footer.stories.js +20 -0
- package/components/Footer/FooterUI.jsx +269 -0
- package/components/Footer/LegacyFooterUI.jsx +194 -0
- package/components/Footer/SocialLinks.jsx +60 -0
- package/components/Footer/Subscribe.jsx +34 -0
- package/components/Footer/footer.js +30 -0
- package/components/Header/Header.md +111 -0
- package/components/Header/Header.stories.js +32 -0
- package/components/Header/HeaderAccountMenu.jsx +169 -0
- package/components/Header/HeaderCancel.jsx +16 -0
- package/components/Header/HeaderContainer.jsx +63 -0
- package/components/Header/HeaderLogo.jsx +42 -0
- package/components/Header/HeaderMenuButton.js +50 -0
- package/components/Header/HeaderMenuItem.jsx +232 -0
- package/components/Header/HeaderMenuLink.js +50 -0
- package/components/Header/HeaderMenuSignOutButton.js +62 -0
- package/components/Header/HeaderMobileButton.js +37 -0
- package/components/Header/HeaderUI.jsx +167 -0
- package/components/Header/HelpIcon.jsx +32 -0
- package/components/Header/ImpersonatorBanner.jsx +57 -0
- package/components/Header/NavigationButtonIcon.jsx +27 -0
- package/components/Header/default-content.json +280 -0
- package/components/Header/header.js +40 -0
- package/components/Header/hooks.js +52 -0
- package/components/Header/utag-helpers.js +9 -0
- package/components/Infotip/Infotip.jsx +75 -0
- package/components/Infotip/Infotip.stories.js +50 -0
- package/components/Infotip/InfotipIcon.jsx +41 -0
- package/components/Infotip/index.js +3 -0
- package/components/Link/Link.stories.js +81 -0
- package/components/Link/index.js +61 -0
- package/components/Modal/LegacyModal.jsx +72 -0
- package/components/Modal/Modal.jsx +140 -0
- package/components/Modal/Modal.stories.js +159 -0
- package/components/Modal/index.jsx +22 -0
- package/components/NotificationBanner/NotificationBanner.stories.js +23 -0
- package/components/NotificationBanner/index.js +265 -0
- package/components/SanitizedContent/index.jsx +200 -0
- package/components/Search/Search.stories.js +21 -0
- package/components/Search/index.js +85 -0
- package/components/SessionDialog/sessionDialog.js +26 -0
- package/components/SessionDialogUI.jsx +261 -0
- package/components/SideNav/AnimationGroup/AnimationGroup.jsx +27 -0
- package/components/SideNav/Chart/ScoreChart.jsx +268 -0
- package/components/SideNav/Chart/__tests__/ScoreChart.test.js +22 -0
- package/components/SideNav/Chart/__tests__/__snapshots__/ScoreChart.test.js.snap +173 -0
- package/components/SideNav/Chart/index.js +3 -0
- package/components/SideNav/Content/LevelOneContent.jsx +208 -0
- package/components/SideNav/Content/LevelTwoContent.jsx +216 -0
- package/components/SideNav/Content/index.js +4 -0
- package/components/SideNav/Details/IndividualDetails.jsx +18 -0
- package/components/SideNav/Details/PracticeDetails.jsx +45 -0
- package/components/SideNav/Details/index.js +4 -0
- package/components/SideNav/Links/CmsSwitchLink.jsx +41 -0
- package/components/SideNav/Links/NavItemInline.jsx +54 -0
- package/components/SideNav/Links/NavLinkContainer.jsx +38 -0
- package/components/SideNav/Links/NavLinkDrawer.jsx +249 -0
- package/components/SideNav/Links/NavLinkInline.jsx +107 -0
- package/components/SideNav/Links/NavLinkToggle.jsx +34 -0
- package/components/SideNav/Links/index.js +13 -0
- package/components/SideNav/SideNav.md +50 -0
- package/components/SideNav/SideNav.stories.js +379 -0
- package/components/SideNav/UI/SideNavUI.jsx +333 -0
- package/components/SideNav/UI/default-content.json +99 -0
- package/components/SideNav/UI/index.js +3 -0
- package/components/SideNav/helpers.js +49 -0
- package/components/SideNav/index.js +53 -0
- package/components/Spinner/index.js +9 -0
- package/components/Tabs/Tab.js +26 -0
- package/components/Tabs/TabPanel.js +34 -0
- package/components/Tabs/Tabs.stories.js +120 -0
- package/components/Tabs/index.js +95 -0
- package/components/TextInput/TextInput.stories.js +118 -0
- package/components/TextInput/index.js +137 -0
- package/components/Tooltip/Tooltip.jsx +88 -0
- package/components/Tooltip/Tooltip.stories.js +80 -0
- package/components/Tooltip/index.js +3 -0
- package/components/Tooltip/position.js +68 -0
- package/components/UnwrappedSpinner/index.js +8 -0
- package/components/hooks/useGetConfig.js +74 -0
- package/components/index.js +126 -0
- package/dist/browser.js +3 -0
- package/dist/browser.js.LICENSE.txt +54 -0
- package/dist/browser.js.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +54 -0
- package/dist/index.js.map +1 -0
- package/dist/react/index.js +3 -0
- package/dist/react/index.js.LICENSE.txt +71 -0
- package/dist/react/index.js.map +1 -0
- package/fonts/FontAwesome.otf +0 -0
- package/fonts/OFL.txt +92 -0
- package/fonts/Rubik-Black.ttf +0 -0
- package/fonts/Rubik-BlackItalic.ttf +0 -0
- package/fonts/Rubik-Bold.ttf +0 -0
- package/fonts/Rubik-BoldItalic.ttf +0 -0
- package/fonts/Rubik-Italic.ttf +0 -0
- package/fonts/Rubik-Light.ttf +0 -0
- package/fonts/Rubik-LightItalic.ttf +0 -0
- package/fonts/Rubik-Medium.ttf +0 -0
- package/fonts/Rubik-MediumItalic.ttf +0 -0
- package/fonts/Rubik-Regular.ttf +0 -0
- package/fonts/fontawesome-webfont.eot +0 -0
- package/fonts/fontawesome-webfont.svg +2671 -0
- package/fonts/fontawesome-webfont.ttf +0 -0
- package/fonts/fontawesome-webfont.woff +0 -0
- package/fonts/fontawesome-webfont.woff2 +0 -0
- package/images/favicon/android-chrome-192x192.png +0 -0
- package/images/favicon/android-chrome-256x256.png +0 -0
- package/images/favicon/apple-touch-icon.png +0 -0
- package/images/favicon/browserconfig.xml +9 -0
- package/images/favicon/favicon-16x16.png +0 -0
- package/images/favicon/favicon-32x32.png +0 -0
- package/images/favicon/favicon.ico +0 -0
- package/images/favicon/manifest.json +18 -0
- package/images/favicon/mstile-150x150.png +0 -0
- package/images/favicon/safari-pinned-tab.svg +32 -0
- package/images/hhs-logo-black.svg +10 -0
- package/images/hhs-logo-white.svg +10 -0
- package/images/icons/close-x.svg +6 -0
- package/images/icons/help-headset.svg +21 -0
- package/images/icons/svg/arrow-down.svg +1 -0
- package/images/icons/svg/arrow-download.svg +1 -0
- package/images/icons/svg/arrow-right.svg +1 -0
- package/images/icons/svg/calendar.svg +1 -0
- package/images/icons/svg/close.svg +1 -0
- package/images/icons/svg/download.svg +1 -0
- package/images/icons/svg/external.svg +1 -0
- package/images/icons/svg/file-upload.svg +1 -0
- package/images/icons/svg/print.svg +1 -0
- package/images/icons/svg/search.svg +7 -0
- package/images/icons/svg/tooltip-question.svg +6 -0
- package/images/icons/svg/trash.svg +1 -0
- package/images/icons/svg/upload.svg +1 -0
- package/images/qpp_logo_reversed.png +0 -0
- package/images/qpp_logo_rgb_color.png +0 -0
- package/index.js +31 -0
- package/jest/mediaFileTransformer.js +9 -0
- package/jest.config.js +188 -0
- package/lib/Chevron.jsx +32 -0
- package/lib/SvgComponents.jsx +539 -0
- package/lib/svg-definitions.svg +125 -0
- package/package.json +125 -0
- package/session/index.js +5 -0
- package/session/logout.js +65 -0
- package/session/refresh.js +49 -0
- package/session/ttl.js +37 -0
- package/styles/_global.scss +106 -0
- package/styles/_main.scss +15 -0
- package/styles/_paths.scss +1 -0
- package/styles/_qpp-style.scss +31 -0
- package/styles/components/_accordion.scss +289 -0
- package/styles/components/_alerts.scss +54 -0
- package/styles/components/_autocomplete.scss +47 -0
- package/styles/components/_breadcrumbs.scss +64 -0
- package/styles/components/_buttons.scss +580 -0
- package/styles/components/_error-page.scss +56 -0
- package/styles/components/_flash-notification.scss +98 -0
- package/styles/components/_fonts.scss +42 -0
- package/styles/components/_forms.scss +277 -0
- package/styles/components/_grid.scss +37 -0
- package/styles/components/_info-modal.scss +139 -0
- package/styles/components/_links.scss +12 -0
- package/styles/components/_modals.scss +18 -0
- package/styles/components/_notification-banner.scss +165 -0
- package/styles/components/_panels.scss +61 -0
- package/styles/components/_pie-chart.scss +13 -0
- package/styles/components/_score-chart.scss +164 -0
- package/styles/components/_spinner.scss +7 -0
- package/styles/components/_tables.scss +111 -0
- package/styles/components/_tabs.scss +69 -0
- package/styles/components/_text.scss +150 -0
- package/styles/components/_toggles.scss +3 -0
- package/styles/components/_tooltip.scss +23 -0
- package/styles/components/_variables.scss +157 -0
- package/styles/components/_wells.scss +92 -0
- package/styles/qppds/README.md +0 -0
- package/styles/qppds/base/_backgrounds.scss +7 -0
- package/styles/qppds/base/_fonts.scss +26 -0
- package/styles/qppds/base/_icon.scss +23 -0
- package/styles/qppds/base/_layout.scss +5 -0
- package/styles/qppds/base/_typography.scss +85 -0
- package/styles/qppds/base/index.scss +8 -0
- package/styles/qppds/components/_alert.scss +95 -0
- package/styles/qppds/components/_breadcrumbs.scss +70 -0
- package/styles/qppds/components/_button.scss +292 -0
- package/styles/qppds/components/_card.scss +175 -0
- package/styles/qppds/components/_dropdown.scss +55 -0
- package/styles/qppds/components/_footer.scss +597 -0
- package/styles/qppds/components/_header.scss +892 -0
- package/styles/qppds/components/_link.scss +52 -0
- package/styles/qppds/components/_modal.scss +118 -0
- package/styles/qppds/components/_page-header.scss +67 -0
- package/styles/qppds/components/_pagination.scss +227 -0
- package/styles/qppds/components/_search.scss +112 -0
- package/styles/qppds/components/_sidebar.scss +9 -0
- package/styles/qppds/components/_table.scss +139 -0
- package/styles/qppds/components/_tabs.scss +197 -0
- package/styles/qppds/components/_text-input.scss +60 -0
- package/styles/qppds/components/index.scss +16 -0
- package/styles/qppds/components/sidebar/_animations.scss +38 -0
- package/styles/qppds/components/sidebar/_cms.scss +61 -0
- package/styles/qppds/components/sidebar/_details.scss +58 -0
- package/styles/qppds/components/sidebar/_links.scss +444 -0
- package/styles/qppds/components/sidebar/_sidebar-animation.scss +125 -0
- package/styles/qppds/components/sidebar/_sidebar-tooltip.scss +33 -0
- package/styles/qppds/components/sidebar/_sidebar.scss +146 -0
- package/styles/qppds/components/sidebar/project-specific/_wi.scss +42 -0
- package/styles/qppds/index.scss +4 -0
- package/styles/qppds/settings/_functions.scss +4 -0
- package/styles/qppds/settings/_index.scss +3 -0
- package/styles/qppds/settings/mixins/_borders.scss +6 -0
- package/styles/qppds/settings/mixins/_focus.scss +28 -0
- package/styles/qppds/settings/mixins/_icons.scss +33 -0
- package/styles/qppds/settings/mixins/_index.scss +8 -0
- package/styles/qppds/settings/mixins/_layout.scss +74 -0
- package/styles/qppds/settings/mixins/_lists.scss +12 -0
- package/styles/qppds/settings/mixins/_table.scss +91 -0
- package/styles/qppds/settings/mixins/_type.scss +65 -0
- package/styles/qppds/settings/mixins/_visually-hidden.scss +30 -0
- package/styles/qppds/settings/variables/_color.scss +86 -0
- package/styles/qppds/settings/variables/_index.scss +3 -0
- package/styles/qppds/settings/variables/_layout.scss +67 -0
- package/styles/qppds/settings/variables/_type.scss +132 -0
- package/styles/qppds/utilities/_background-color.scss +134 -0
- package/styles/qppds/utilities/_color.scss +32 -0
- package/styles/qppds/utilities/_display-visibility.scss +83 -0
- package/styles/qppds/utilities/_flexbox.scss +240 -0
- package/styles/qppds/utilities/_font-family.scss +9 -0
- package/styles/qppds/utilities/_font-size.scss +8 -0
- package/styles/qppds/utilities/_font-weight.scss +8 -0
- package/styles/qppds/utilities/_height.scss +38 -0
- package/styles/qppds/utilities/_margin.scss +136 -0
- package/styles/qppds/utilities/_padding.scss +76 -0
- package/styles/qppds/utilities/_position.scss +24 -0
- package/styles/qppds/utilities/_text-align.scss +40 -0
- package/styles/qppds/utilities/_text-transform.scss +7 -0
- package/styles/qppds/utilities/_truncate.scss +8 -0
- package/styles/qppds/utilities/_width.scss +79 -0
- package/styles/qppds/utilities/index.scss +15 -0
- package/styles/qppds.scss +2 -0
- package/styles/third-party/_legacy-bootstrap.scss +19 -0
- package/styles/third-party/legacy-bootstrap/_buttons.scss +126 -0
- package/styles/third-party/legacy-bootstrap/_dropdowns.scss +211 -0
- package/styles/third-party/legacy-bootstrap/_forms.scss +510 -0
- package/styles/third-party/legacy-bootstrap/_grid.scss +73 -0
- package/styles/third-party/legacy-bootstrap/_mixins.scss +27 -0
- package/styles/third-party/legacy-bootstrap/_navbar.scss +644 -0
- package/styles/third-party/legacy-bootstrap/_navs.scss +193 -0
- package/styles/third-party/legacy-bootstrap/_normalize.scss +385 -0
- package/styles/third-party/legacy-bootstrap/_scaffolding.scss +116 -0
- package/styles/third-party/legacy-bootstrap/_variables.scss +858 -0
- package/styles/third-party/legacy-bootstrap/mixins/_buttons.scss +70 -0
- package/styles/third-party/legacy-bootstrap/mixins/_clearfix.scss +22 -0
- package/styles/third-party/legacy-bootstrap/mixins/_forms.scss +108 -0
- package/styles/third-party/legacy-bootstrap/mixins/_grid-framework.scss +86 -0
- package/styles/third-party/legacy-bootstrap/mixins/_grid.scss +112 -0
- package/styles/third-party/legacy-bootstrap/mixins/_labels.scss +12 -0
- package/styles/third-party/legacy-bootstrap/mixins/_nav-divider.scss +10 -0
- package/styles/third-party/legacy-bootstrap/mixins/_nav-vertical-align.scss +9 -0
- package/styles/third-party/legacy-bootstrap/mixins/_opacity.scss +7 -0
- package/styles/third-party/legacy-bootstrap/mixins/_panels.scss +30 -0
- package/styles/third-party/legacy-bootstrap/mixins/_reset-filter.scss +7 -0
- package/styles/third-party/legacy-bootstrap/mixins/_reset-text.scss +18 -0
- package/styles/third-party/legacy-bootstrap/mixins/_resize.scss +6 -0
- package/styles/third-party/legacy-bootstrap/mixins/_responsive-visibility.scss +25 -0
- package/styles/third-party/legacy-bootstrap/mixins/_size.scss +10 -0
- package/styles/third-party/legacy-bootstrap/mixins/_tab-focus.scss +9 -0
- package/styles/third-party/legacy-bootstrap/mixins/_table-row.scss +28 -0
- package/styles/third-party/legacy-bootstrap/mixins/_text-emphasis.scss +12 -0
- package/styles/third-party/legacy-bootstrap/mixins/_text-overflow.scss +8 -0
- package/styles/third-party/legacy-bootstrap/mixins/_vendor-prefixes.scss +182 -0
- package/styles/utility/_mixins.scss +46 -0
- package/styles/utility/_utilities.scss +73 -0
- package/test/components/Accordion.test.js +12 -0
- package/test/components/ErrorUI.test.js +33 -0
- package/test/components/FooterUI.test.js +90 -0
- package/test/components/HeaderUI.test.js +45 -0
- package/test/components/Infotip.test.js +73 -0
- package/test/components/SessionDialogUI.test.js +339 -0
- package/test/components/SideNavUI.test.js +23 -0
- package/test/components/Tooltip.test.js +147 -0
- package/test/index.test.js +8 -0
- package/test/session/session.test.js +221 -0
- package/test-setup.js +9 -0
- package/webpack.config.js +147 -0
- package/webpack.config.react.js +86 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
$static-height-vals: (
|
|
2
|
+
10: 10px,
|
|
3
|
+
12: 12px,
|
|
4
|
+
15: 15px,
|
|
5
|
+
16: 16px,
|
|
6
|
+
20: 20px,
|
|
7
|
+
24: 24px,
|
|
8
|
+
30: 30px,
|
|
9
|
+
32: 32px,
|
|
10
|
+
40: 40px,
|
|
11
|
+
50: 50px
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
@each $name in map-keys($static-height-vals) {
|
|
15
|
+
$value: map-get($static-height-vals, $name);
|
|
16
|
+
|
|
17
|
+
.qpp-u-height--#{$name}px {
|
|
18
|
+
height: #{$value} !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
23
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
24
|
+
|
|
25
|
+
@media (min-height: $viewport) {
|
|
26
|
+
@each $name in map-keys($static-height-vals) {
|
|
27
|
+
$value: map-get($static-height-vals, $name);
|
|
28
|
+
|
|
29
|
+
.qpp-u-#{$breakpoint}-height--#{$name}px {
|
|
30
|
+
height: #{$value} !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.qpp-u-height--auto {
|
|
37
|
+
height: auto !important;
|
|
38
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
@import '../settings/variables/index';
|
|
3
|
+
|
|
4
|
+
@each $key, $value in $spacers {
|
|
5
|
+
.qpp-u-margin--#{$key} {
|
|
6
|
+
margin: #{$value} !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.qpp-u-margin-top--#{$key} {
|
|
10
|
+
margin-top: #{$value} !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.qpp-u-margin-right--#{$key} {
|
|
14
|
+
margin-right: #{$value} !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.qpp-u-margin-bottom--#{$key} {
|
|
18
|
+
margin-bottom: #{$value} !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.qpp-u-margin-left--#{$key} {
|
|
22
|
+
margin-left: #{$value} !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.qpp-u-margin-x--#{$key} {
|
|
26
|
+
margin-left: #{$value} !important;
|
|
27
|
+
margin-right: #{$value} !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.qpp-u-margin-y--#{$key} {
|
|
31
|
+
margin-top: #{$value} !important;
|
|
32
|
+
margin-bottom: #{$value} !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.qpp-u-margin--auto {
|
|
37
|
+
margin: auto !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.qpp-u-margin-top--auto {
|
|
41
|
+
margin-top: auto !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.qpp-u-margin-right--auto {
|
|
45
|
+
margin-right: auto !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.qpp-u-margin-bottom--auto {
|
|
49
|
+
margin-bottom: auto !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.qpp-u-margin-left--auto {
|
|
53
|
+
margin-left: auto !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.qpp-u-margin-x--auto {
|
|
57
|
+
margin-left: auto !important;
|
|
58
|
+
margin-right: auto !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.qpp-u-margin-y--auto {
|
|
62
|
+
margin-bottom: auto !important;
|
|
63
|
+
margin-top: auto !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
67
|
+
$value: map-get($breakpoints, $breakpoint);
|
|
68
|
+
|
|
69
|
+
@media (min-width: $value) {
|
|
70
|
+
@each $spacer in map-keys($spacers) {
|
|
71
|
+
$size: map-get($spacers, $spacer);
|
|
72
|
+
|
|
73
|
+
// Example: qpp-u-sm-margin--0
|
|
74
|
+
.qpp-u-#{$breakpoint}-margin--#{$spacer} {
|
|
75
|
+
// Example: margin: 0 !important;
|
|
76
|
+
margin: #{$size} !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.qpp-u-#{$breakpoint}-margin-top--#{$spacer} {
|
|
80
|
+
margin-top: #{$size} !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.qpp-u-#{$breakpoint}-margin-right--#{$spacer} {
|
|
84
|
+
margin-right: #{$size} !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.qpp-u-#{$breakpoint}-margin-bottom--#{$spacer} {
|
|
88
|
+
margin-bottom: #{$size} !important;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.qpp-u-#{$breakpoint}-margin-left--#{$spacer} {
|
|
92
|
+
margin-left: #{$size} !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.qpp-u-#{$breakpoint}-margin-x--#{$spacer} {
|
|
96
|
+
margin-left: #{$size} !important;
|
|
97
|
+
margin-right: #{$size} !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.qpp-u-#{$breakpoint}-margin-y--#{$spacer} {
|
|
101
|
+
margin-bottom: #{$size} !important;
|
|
102
|
+
margin-top: #{$size} !important;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.qpp-u-#{$breakpoint}-margin--auto {
|
|
107
|
+
margin: auto !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.qpp-u-#{$breakpoint}-margin-top--auto {
|
|
111
|
+
margin-top: auto !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.qpp-u-#{$breakpoint}-margin-right--auto {
|
|
115
|
+
margin-right: auto !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.qpp-u-#{$breakpoint}-margin-bottom--auto {
|
|
119
|
+
margin-bottom: auto !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.qpp-u-#{$breakpoint}-margin-left--auto {
|
|
123
|
+
margin-left: auto !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.qpp-u-#{$breakpoint}-margin-x--auto {
|
|
127
|
+
margin-left: auto !important;
|
|
128
|
+
margin-right: auto !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.qpp-u-#{$breakpoint}-margin-y--auto {
|
|
132
|
+
margin-bottom: auto !important;
|
|
133
|
+
margin-top: auto !important;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
@import '../settings/variables/index';
|
|
3
|
+
|
|
4
|
+
@each $key, $value in $spacers {
|
|
5
|
+
.qpp-u-padding--#{$key} {
|
|
6
|
+
padding: #{$value} !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.qpp-u-padding-top--#{$key} {
|
|
10
|
+
padding-top: #{$value} !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.qpp-u-padding-right--#{$key} {
|
|
14
|
+
padding-right: #{$value} !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.qpp-u-padding-bottom--#{$key} {
|
|
18
|
+
padding-bottom: #{$value} !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.qpp-u-padding-left--#{$key} {
|
|
22
|
+
padding-left: #{$value} !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.qpp-u-padding-x--#{$key} {
|
|
26
|
+
padding-left: #{$value} !important;
|
|
27
|
+
padding-right: #{$value} !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.qpp-u-padding-y--#{$key} {
|
|
31
|
+
padding-top: #{$value} !important;
|
|
32
|
+
padding-bottom: #{$value} !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
37
|
+
$value: map-get($breakpoints, $breakpoint);
|
|
38
|
+
|
|
39
|
+
@media (min-width: $value) {
|
|
40
|
+
@each $spacer in map-keys($spacers) {
|
|
41
|
+
$size: map-get($spacers, $spacer);
|
|
42
|
+
|
|
43
|
+
// Example: qpp-u-sm-padding--0
|
|
44
|
+
.qpp-u-#{$breakpoint}-padding--#{$spacer} {
|
|
45
|
+
// Example: padding: 0 !important;
|
|
46
|
+
padding: #{$size} !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.qpp-u-#{$breakpoint}-padding-top--#{$spacer} {
|
|
50
|
+
padding-top: #{$size} !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.qpp-u-#{$breakpoint}-padding-right--#{$spacer} {
|
|
54
|
+
padding-right: #{$size} !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.qpp-u-#{$breakpoint}-padding-bottom--#{$spacer} {
|
|
58
|
+
padding-bottom: #{$size} !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.qpp-u-#{$breakpoint}-padding-left--#{$spacer} {
|
|
62
|
+
padding-left: #{$size} !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.qpp-u-#{$breakpoint}-padding-x--#{$spacer} {
|
|
66
|
+
padding-left: #{$size} !important;
|
|
67
|
+
padding-right: #{$size} !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.qpp-u-#{$breakpoint}-padding-y--#{$spacer} {
|
|
71
|
+
padding-bottom: #{$size} !important;
|
|
72
|
+
padding-top: #{$size} !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
@import '../settings/index.scss';
|
|
3
|
+
|
|
4
|
+
.qpp-u-position--relative {
|
|
5
|
+
position: relative !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.qpp-u-position--absolute {
|
|
9
|
+
position: absolute !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
13
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
14
|
+
|
|
15
|
+
@media (min-width: $viewport) {
|
|
16
|
+
.qpp-u-#{$breakpoint}-position--relative {
|
|
17
|
+
position: relative !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.qpp-u-#{$breakpoint}-position--absolute {
|
|
21
|
+
position: absolute !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
@import '../settings/index.scss';
|
|
3
|
+
|
|
4
|
+
.qpp-u-text-align--center {
|
|
5
|
+
text-align: center !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.qpp-u-text-align--left {
|
|
9
|
+
text-align: left !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.qpp-u-text-align--right {
|
|
13
|
+
text-align: right !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.qpp-u-text-align--justify {
|
|
17
|
+
text-align: justify !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
21
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
22
|
+
|
|
23
|
+
@media (min-width: $viewport) {
|
|
24
|
+
.qpp-u-#{$breakpoint}-text-align--center {
|
|
25
|
+
text-align: center !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.qpp-u-#{$breakpoint}-text-align--left {
|
|
29
|
+
text-align: left !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.qpp-u-#{$breakpoint}-text-align--right {
|
|
33
|
+
text-align: right !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.qpp-u-#{$breakpoint}-text-align--justify {
|
|
37
|
+
text-align: justify !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* Inspired by Tachyons implementation: https://tachyons.io/docs/layout/widths/ */
|
|
2
|
+
// stylelint-disable declaration-no-important
|
|
3
|
+
|
|
4
|
+
$width-values: (
|
|
5
|
+
10: 10%,
|
|
6
|
+
20: 20%,
|
|
7
|
+
25: 25%,
|
|
8
|
+
30: 30%,
|
|
9
|
+
33: 33%,
|
|
10
|
+
34: 34%,
|
|
11
|
+
40: 40%,
|
|
12
|
+
50: 50%,
|
|
13
|
+
60: 60%,
|
|
14
|
+
70: 70%,
|
|
15
|
+
75: 75%,
|
|
16
|
+
80: 80%,
|
|
17
|
+
90: 90%,
|
|
18
|
+
100: 100%,
|
|
19
|
+
third: calc(100% / 3),
|
|
20
|
+
two-thirds: calc(100% / 1.5),
|
|
21
|
+
auto: auto
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
@each $name in map-keys($width-values) {
|
|
25
|
+
$value: map-get($width-values, $name);
|
|
26
|
+
|
|
27
|
+
.qpp-u-width--#{$name} {
|
|
28
|
+
width: #{$value} !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
33
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
34
|
+
|
|
35
|
+
@media (min-width: $viewport) {
|
|
36
|
+
@each $name in map-keys($width-values) {
|
|
37
|
+
$value: map-get($width-values, $name);
|
|
38
|
+
|
|
39
|
+
.qpp-u-#{$breakpoint}-width--#{$name} {
|
|
40
|
+
width: #{$value} !important;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
$static-width-vals: (
|
|
47
|
+
10: 10px,
|
|
48
|
+
12: 12px,
|
|
49
|
+
15: 15px,
|
|
50
|
+
16: 16px,
|
|
51
|
+
20: 20px,
|
|
52
|
+
24: 24px,
|
|
53
|
+
30: 30px,
|
|
54
|
+
32: 32px,
|
|
55
|
+
40: 40px,
|
|
56
|
+
50: 50px
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
@each $name in map-keys($static-width-vals) {
|
|
60
|
+
$value: map-get($static-width-vals, $name);
|
|
61
|
+
|
|
62
|
+
.qpp-u-width--#{$name}px {
|
|
63
|
+
width: #{$value} !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
68
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
69
|
+
|
|
70
|
+
@media (min-width: $viewport) {
|
|
71
|
+
@each $name in map-keys($static-width-vals) {
|
|
72
|
+
$value: map-get($static-width-vals, $name);
|
|
73
|
+
|
|
74
|
+
.qpp-u-#{$breakpoint}-width--#{$name}px {
|
|
75
|
+
width: #{$value} !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import './background-color';
|
|
2
|
+
@import './color';
|
|
3
|
+
@import './display-visibility';
|
|
4
|
+
@import './font-family';
|
|
5
|
+
@import './font-size';
|
|
6
|
+
@import './font-weight';
|
|
7
|
+
@import './margin';
|
|
8
|
+
@import './padding';
|
|
9
|
+
@import './flexbox';
|
|
10
|
+
@import './width';
|
|
11
|
+
@import './truncate';
|
|
12
|
+
@import './position';
|
|
13
|
+
@import './text-align';
|
|
14
|
+
@import './text-transform';
|
|
15
|
+
@import './height';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// CORE VARIABLES AND MIXINS
|
|
2
|
+
@import 'legacy-bootstrap/variables';
|
|
3
|
+
@import 'legacy-bootstrap/mixins';
|
|
4
|
+
|
|
5
|
+
// RESET BASE STYLES
|
|
6
|
+
@import 'legacy-bootstrap/normalize';
|
|
7
|
+
|
|
8
|
+
// CORE CSS USED ON LEGACY FOOTER AND HEADER QPP-STYLE COMPONENTS
|
|
9
|
+
// WILL BE ABLE TO DELETE ONCE WE FULLY MOVE TO THE NEW HEADER/FOOTER
|
|
10
|
+
@import 'legacy-bootstrap/scaffolding';
|
|
11
|
+
@import 'legacy-bootstrap/grid';
|
|
12
|
+
@import 'legacy-bootstrap/dropdowns';
|
|
13
|
+
@import 'legacy-bootstrap/navs';
|
|
14
|
+
@import 'legacy-bootstrap/navbar';
|
|
15
|
+
|
|
16
|
+
// .form-control is deeply embedded in our codebase so we may end up keeping this
|
|
17
|
+
@import 'legacy-bootstrap/forms';
|
|
18
|
+
// our buttons are currently dependent on the original bootstrap button styles
|
|
19
|
+
@import 'legacy-bootstrap/buttons';
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Buttons
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
// Base styles
|
|
6
|
+
// --------------------------------------------------
|
|
7
|
+
.btn {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
margin-bottom: 0; // For input.btn
|
|
10
|
+
font-weight: $btn-font-weight;
|
|
11
|
+
text-align: center;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
touch-action: manipulation;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
|
17
|
+
border: 1px solid transparent;
|
|
18
|
+
@include button-size(
|
|
19
|
+
$padding-base-vertical,
|
|
20
|
+
$padding-base-horizontal,
|
|
21
|
+
$font-size-base,
|
|
22
|
+
$line-height-base,
|
|
23
|
+
$btn-border-radius-base
|
|
24
|
+
);
|
|
25
|
+
@include user-select(none);
|
|
26
|
+
|
|
27
|
+
&,
|
|
28
|
+
&:active,
|
|
29
|
+
&.active {
|
|
30
|
+
&:focus,
|
|
31
|
+
&.focus {
|
|
32
|
+
@include tab-focus;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:hover,
|
|
37
|
+
&:focus,
|
|
38
|
+
&.focus {
|
|
39
|
+
color: $btn-default-color;
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:active,
|
|
44
|
+
&.active {
|
|
45
|
+
background-image: none;
|
|
46
|
+
outline: 0;
|
|
47
|
+
@include box-shadow(inset 0 3px 5px rgba(0, 0, 0, 0.125));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.disabled,
|
|
51
|
+
&[disabled],
|
|
52
|
+
fieldset[disabled] & {
|
|
53
|
+
cursor: $cursor-disabled;
|
|
54
|
+
@include opacity(0.65);
|
|
55
|
+
@include box-shadow(none);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// [converter] extracted a& to a.btn
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
a.btn {
|
|
62
|
+
&.disabled,
|
|
63
|
+
fieldset[disabled] & {
|
|
64
|
+
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Alternate buttons
|
|
69
|
+
// --------------------------------------------------
|
|
70
|
+
.btn-default {
|
|
71
|
+
@include button-variant(
|
|
72
|
+
$btn-default-color,
|
|
73
|
+
$btn-default-bg,
|
|
74
|
+
$btn-default-border
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.btn-primary {
|
|
79
|
+
@include button-variant(
|
|
80
|
+
$btn-primary-color,
|
|
81
|
+
$btn-primary-bg,
|
|
82
|
+
$btn-primary-border
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Link buttons
|
|
87
|
+
// -------------------------
|
|
88
|
+
|
|
89
|
+
// Make a button look and behave like a link
|
|
90
|
+
.btn-link {
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
color: $link-color;
|
|
93
|
+
border-radius: 0;
|
|
94
|
+
|
|
95
|
+
&,
|
|
96
|
+
&:active,
|
|
97
|
+
&.active,
|
|
98
|
+
&[disabled],
|
|
99
|
+
fieldset[disabled] & {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
@include box-shadow(none);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&,
|
|
105
|
+
&:hover,
|
|
106
|
+
&:focus,
|
|
107
|
+
&:active {
|
|
108
|
+
border-color: transparent;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:hover,
|
|
112
|
+
&:focus {
|
|
113
|
+
color: $link-hover-color;
|
|
114
|
+
text-decoration: $link-hover-decoration;
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&[disabled],
|
|
119
|
+
fieldset[disabled] & {
|
|
120
|
+
&:hover,
|
|
121
|
+
&:focus {
|
|
122
|
+
color: $btn-link-disabled-color;
|
|
123
|
+
text-decoration: none;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|