@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,444 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Inline and back links
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.sidebar {
|
|
6
|
+
.disabled {
|
|
7
|
+
color: $color-gray-medium !important;
|
|
8
|
+
fill: $color-gray-medium !important;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.link-inline,
|
|
13
|
+
.link-collapsed {
|
|
14
|
+
border-left: 3px solid transparent;
|
|
15
|
+
|
|
16
|
+
&.stroke-based-icon {
|
|
17
|
+
stroke: $color-teal-light;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.stroke-based-icon.active {
|
|
21
|
+
stroke: $color-white;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.link-inline,
|
|
26
|
+
.link-back,
|
|
27
|
+
.account-home-link {
|
|
28
|
+
@include typography('Rubik', 16px, 22px, $color-teal-light);
|
|
29
|
+
@include hover($color-white);
|
|
30
|
+
align-items: center;
|
|
31
|
+
display: flex;
|
|
32
|
+
fill: $color-teal-light;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.account-home-link {
|
|
36
|
+
padding: 25px $side-nav-horizontal-padding 0;
|
|
37
|
+
width: $side-nav-expanded-width;
|
|
38
|
+
|
|
39
|
+
.left-icon {
|
|
40
|
+
height: 25px;
|
|
41
|
+
margin-right: 15px;
|
|
42
|
+
width: 25px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.link-back {
|
|
47
|
+
padding: 25px $side-nav-horizontal-padding 0;
|
|
48
|
+
|
|
49
|
+
.left-icon {
|
|
50
|
+
height: 12px;
|
|
51
|
+
margin-right: 15px;
|
|
52
|
+
width: 12px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
& > svg {
|
|
57
|
+
animation: left-bounce 0.6s;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.link-inline {
|
|
63
|
+
padding: 10px $side-nav-horizontal-padding;
|
|
64
|
+
width: $side-nav-expanded-width;
|
|
65
|
+
|
|
66
|
+
&.highlight {
|
|
67
|
+
color: $color-white;
|
|
68
|
+
border-left: solid 3px $color-teal-light;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.left-icon {
|
|
72
|
+
height: 25px;
|
|
73
|
+
margin-right: 15px;
|
|
74
|
+
min-height: 25px;
|
|
75
|
+
min-width: 25px;
|
|
76
|
+
width: 25px;
|
|
77
|
+
|
|
78
|
+
&.fill-white {
|
|
79
|
+
fill: $color-white;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.stroke-based-icon {
|
|
84
|
+
@include stroke-hover($color-white);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.link-collapse,
|
|
89
|
+
.link-expand {
|
|
90
|
+
align-items: center;
|
|
91
|
+
background: $color-slate;
|
|
92
|
+
border: none;
|
|
93
|
+
border-top: 1px solid $color-gray-medium;
|
|
94
|
+
display: flex;
|
|
95
|
+
fill: $color-gray-medium;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
text-transform: uppercase;
|
|
98
|
+
|
|
99
|
+
.left-icon {
|
|
100
|
+
height: 40px;
|
|
101
|
+
width: 40px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.link-collapse {
|
|
106
|
+
@include typography('Rubik', 14px, 0, $color-gray-medium);
|
|
107
|
+
padding: 20px 0;
|
|
108
|
+
|
|
109
|
+
.left-icon {
|
|
110
|
+
margin-right: 15px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.alt-style {
|
|
114
|
+
background: $color-slate-dark;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.link-expand {
|
|
119
|
+
@include typography('Rubik', 14px, 14px, $color-gray-medium);
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
padding: 6px 0 20px;
|
|
122
|
+
|
|
123
|
+
.left-icon {
|
|
124
|
+
margin-right: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.alt-style {
|
|
128
|
+
background: $color-slate-dark;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.link-icon {
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Active link */
|
|
137
|
+
|
|
138
|
+
.active {
|
|
139
|
+
background: $color-slate-dark;
|
|
140
|
+
border-color: $color-teal-light;
|
|
141
|
+
color: $color-white;
|
|
142
|
+
fill: $color-white;
|
|
143
|
+
|
|
144
|
+
&.link-collapsed {
|
|
145
|
+
fill: $color-white;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.light {
|
|
149
|
+
background: $color-slate;
|
|
150
|
+
border-left: solid 3px $color-teal-light;
|
|
151
|
+
color: $color-white;
|
|
152
|
+
fill: $color-white;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&[disabled] {
|
|
156
|
+
background: none;
|
|
157
|
+
border-left: 0;
|
|
158
|
+
color: $color-gray-dark;
|
|
159
|
+
fill: $color-gray-dark;
|
|
160
|
+
padding-left: 30px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.sidebar-content {
|
|
166
|
+
/* Override colors for static drawer */
|
|
167
|
+
|
|
168
|
+
.static-drawer {
|
|
169
|
+
> .currentPage {
|
|
170
|
+
background-color: $color-slate !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.left-icon {
|
|
174
|
+
fill: $color-white !important;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Collapsed links (when the sidebar is collapsed) */
|
|
179
|
+
|
|
180
|
+
.link-collapsed {
|
|
181
|
+
@include typography('Rubik', 16px, 22px, $color-teal-light);
|
|
182
|
+
align-items: center;
|
|
183
|
+
display: flex;
|
|
184
|
+
fill: $color-teal-light;
|
|
185
|
+
padding: 10px $side-nav-horizontal-padding;
|
|
186
|
+
width: $side-nav-expanded-width; // this only works because .sidebar has overflow hidden
|
|
187
|
+
|
|
188
|
+
.left-icon {
|
|
189
|
+
height: 25px;
|
|
190
|
+
margin-right: 15px;
|
|
191
|
+
min-height: 25px;
|
|
192
|
+
min-width: 25px;
|
|
193
|
+
width: 25px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&[disabled] {
|
|
197
|
+
@include typography('Rubik', 16px, 22px, $color-gray-dark);
|
|
198
|
+
|
|
199
|
+
.left-icon {
|
|
200
|
+
fill: $color-white;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.link-drawer .drawer a {
|
|
206
|
+
@include typography('Rubik', 14px, 22px, $color-teal-light);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.link-slide-out .switcher-content li a {
|
|
210
|
+
@include typography('Rubik', 16px, 22px, $color-teal-light);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.link-drawer .drawer .active-link > a,
|
|
214
|
+
.link-drawer .drawer a:hover {
|
|
215
|
+
color: $color-white;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* Drawer links */
|
|
219
|
+
|
|
220
|
+
.link-drawer {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
width: $side-nav-expanded-width;
|
|
224
|
+
|
|
225
|
+
button {
|
|
226
|
+
background: transparent;
|
|
227
|
+
border: none;
|
|
228
|
+
border-left: 3px solid transparent;
|
|
229
|
+
border-radius: 0;
|
|
230
|
+
text-align: left;
|
|
231
|
+
|
|
232
|
+
&.expanded {
|
|
233
|
+
background-color: $color-slate-dark;
|
|
234
|
+
border-left: solid 3px $color-teal-light;
|
|
235
|
+
color: $color-white;
|
|
236
|
+
fill: $color-white;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&.left-border-disabled {
|
|
240
|
+
border-left: 0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
> .currentPage {
|
|
245
|
+
background-color: $color-slate-dark;
|
|
246
|
+
color: $color-white;
|
|
247
|
+
fill: $color-white;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.link-inline.currentPage,
|
|
251
|
+
.link-collapsed.currentPage {
|
|
252
|
+
border-color: $color-teal-light;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.link-body {
|
|
256
|
+
align-items: center;
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-grow: 1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.hidden-nav-link-item {
|
|
262
|
+
display: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.right-icon {
|
|
266
|
+
height: 12px;
|
|
267
|
+
transition: transform 0.6s;
|
|
268
|
+
width: 12px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.rotated {
|
|
272
|
+
transform: rotate(180deg);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.drawer {
|
|
276
|
+
height: 0;
|
|
277
|
+
opacity: 0;
|
|
278
|
+
overflow: hidden;
|
|
279
|
+
padding: 0;
|
|
280
|
+
transition: opacity 0.25s;
|
|
281
|
+
|
|
282
|
+
li {
|
|
283
|
+
margin-left: 30px;
|
|
284
|
+
padding: 2px 0;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.active-link {
|
|
288
|
+
color: $color-white;
|
|
289
|
+
list-style: disc;
|
|
290
|
+
margin-left: 18px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.parent-link {
|
|
294
|
+
line-height: 1.3;
|
|
295
|
+
margin-left: 35px;
|
|
296
|
+
|
|
297
|
+
&.larger-item-spacing:not(:last-child) {
|
|
298
|
+
padding-bottom: 12px;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.child-link {
|
|
303
|
+
margin-left: 18px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&.open {
|
|
307
|
+
height: auto;
|
|
308
|
+
opacity: 1;
|
|
309
|
+
padding: 0 30px 10px 30px;
|
|
310
|
+
transition: opacity 0.25s;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&.currentPage {
|
|
314
|
+
background: $color-slate-dark;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&.background-highlight {
|
|
318
|
+
background-color: $color-slate-dark;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.larger-drawer-bottom-padding {
|
|
322
|
+
padding: 0 30px 24px 30px;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* Slide-out links */
|
|
328
|
+
|
|
329
|
+
.link-slide-out {
|
|
330
|
+
.switcher {
|
|
331
|
+
@include typography('Rubik', 14px, 16px, $color-gray-medium);
|
|
332
|
+
align-items: center;
|
|
333
|
+
display: flex;
|
|
334
|
+
fill: $color-gray-medium;
|
|
335
|
+
flex-direction: row;
|
|
336
|
+
|
|
337
|
+
svg {
|
|
338
|
+
height: 12px;
|
|
339
|
+
width: 12px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.link-body {
|
|
343
|
+
flex-grow: 1;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.left-icon {
|
|
347
|
+
margin-right: 10px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.right-icon {
|
|
351
|
+
transition: transform 0.6s;
|
|
352
|
+
|
|
353
|
+
&.rotated {
|
|
354
|
+
transform: rotate(180deg);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.switcher-content {
|
|
360
|
+
@include typography('Rubik', 16px, 22px, $color-teal-light);
|
|
361
|
+
background: $color-slate-dark;
|
|
362
|
+
height: 100%;
|
|
363
|
+
left: 0;
|
|
364
|
+
opacity: 0;
|
|
365
|
+
padding: 0 25px;
|
|
366
|
+
position: absolute;
|
|
367
|
+
top: 0;
|
|
368
|
+
transition: z-index 0.6s step-start, opacity 0.6s step-end, left 0.6s;
|
|
369
|
+
width: $side-nav-expanded-width;
|
|
370
|
+
z-index: -1;
|
|
371
|
+
|
|
372
|
+
li {
|
|
373
|
+
padding-bottom: 15px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.practices-title {
|
|
377
|
+
@include typography('Rubik', 18px, 26px, $color-white);
|
|
378
|
+
font-weight: 500;
|
|
379
|
+
padding: 23px 0;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&.open {
|
|
383
|
+
left: $side-nav-expanded-width;
|
|
384
|
+
opacity: 1;
|
|
385
|
+
transition: z-index 0.6s step-end, left 0.6s;
|
|
386
|
+
z-index: 1;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* Switch Clinician/Practice */
|
|
392
|
+
|
|
393
|
+
.switch-container {
|
|
394
|
+
margin: 20px 0 0 25px;
|
|
395
|
+
width: calc(
|
|
396
|
+
#{$side-nav-expanded-width} - (#{$side-nav-horizontal-padding} * 2)
|
|
397
|
+
);
|
|
398
|
+
|
|
399
|
+
.switch-link,
|
|
400
|
+
.button-partition {
|
|
401
|
+
align-items: center;
|
|
402
|
+
color: $color-teal-light;
|
|
403
|
+
display: flex;
|
|
404
|
+
justify-content: space-between;
|
|
405
|
+
|
|
406
|
+
.icon {
|
|
407
|
+
fill: $color-teal-light;
|
|
408
|
+
margin-right: 10px;
|
|
409
|
+
width: 15px;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.right-icon {
|
|
413
|
+
margin-right: 0;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.switch-link:hover {
|
|
418
|
+
span {
|
|
419
|
+
color: $color-white;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.icon {
|
|
423
|
+
fill: $color-white;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.sidebar .link-inline[disabled] {
|
|
430
|
+
color: $color-gray-dark;
|
|
431
|
+
|
|
432
|
+
.left-icon,
|
|
433
|
+
.right-icon {
|
|
434
|
+
fill: $color-gray-dark;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.left-icon.always-open {
|
|
438
|
+
fill: $color-white;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.sidebar-content .link-slide-out .switcher:hover > .right-icon {
|
|
443
|
+
animation: right-bounce 0.6s;
|
|
444
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
$drawerMaxHeight: 225px;
|
|
2
|
+
$simpleMaxHeight: 105px;
|
|
3
|
+
$chartMaxHeight: 306px;
|
|
4
|
+
$detailsMaxHeight: 130px;
|
|
5
|
+
|
|
6
|
+
@mixin delayKeyframes($name, $maxHeight) {
|
|
7
|
+
@keyframes delayRemove#{$name} {
|
|
8
|
+
0% {
|
|
9
|
+
max-height: $maxHeight;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
100% {
|
|
13
|
+
max-height: 0;
|
|
14
|
+
padding-top: 0;
|
|
15
|
+
padding-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes delayAdd#{$name} {
|
|
20
|
+
0% {
|
|
21
|
+
max-height: 0;
|
|
22
|
+
padding-top: 0;
|
|
23
|
+
padding-bottom: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
100% {
|
|
27
|
+
max-height: $maxHeight;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@include delayKeyframes('Drawer', $drawerMaxHeight);
|
|
32
|
+
@include delayKeyframes('Simple', $simpleMaxHeight);
|
|
33
|
+
@include delayKeyframes('Chart', $chartMaxHeight);
|
|
34
|
+
@include delayKeyframes('Details', $detailsMaxHeight);
|
|
35
|
+
|
|
36
|
+
.animation-group {
|
|
37
|
+
transition: opacity 0.5s ease-in-out;
|
|
38
|
+
opacity: 0;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
|
|
41
|
+
&.background-highlight {
|
|
42
|
+
background-color: $color-slate-dark;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.animation-group-enter {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transition-delay: 0.5s;
|
|
49
|
+
|
|
50
|
+
animation-delay: 0s;
|
|
51
|
+
animation-duration: 0.6s;
|
|
52
|
+
animation-fill-mode: forwards;
|
|
53
|
+
animation-name: delayAddSimple;
|
|
54
|
+
animation-timing-function: ease-in-out;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.animation-group-exit {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
|
|
60
|
+
animation-delay: 0.3s;
|
|
61
|
+
animation-duration: 0.6s;
|
|
62
|
+
animation-fill-mode: forwards;
|
|
63
|
+
animation-name: delayRemoveSimple;
|
|
64
|
+
animation-timing-function: ease-in-out;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// custom max heights
|
|
68
|
+
.animation-group-details.animation-group-enter {
|
|
69
|
+
animation-name: delayAddDetails;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.animation-group-details.animation-group-exit {
|
|
73
|
+
animation-name: delayRemoveDetails;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.animation-group-chart.animation-group-enter {
|
|
77
|
+
animation-name: delayAddChart;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.animation-group-chart.animation-group-exit {
|
|
81
|
+
animation-name: delayRemoveChart;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.link-drawer {
|
|
85
|
+
.animation-group-enter {
|
|
86
|
+
animation-name: delayAddDrawer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.animation-group-exit {
|
|
90
|
+
animation-name: delayRemoveDrawer;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sidebar {
|
|
95
|
+
.animation-flat {
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.closed {
|
|
100
|
+
transition-delay: 0.5s;
|
|
101
|
+
|
|
102
|
+
.animation-flat > nav > ul > li {
|
|
103
|
+
> a,
|
|
104
|
+
> .link-drawer > button {
|
|
105
|
+
transition: padding 0.7s ease-out 0.3s;
|
|
106
|
+
padding-left: 30px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:not(.closed) {
|
|
112
|
+
transition-delay: 0s;
|
|
113
|
+
|
|
114
|
+
.animation-flat {
|
|
115
|
+
transition-delay: 0s;
|
|
116
|
+
|
|
117
|
+
nav > ul > li {
|
|
118
|
+
> a,
|
|
119
|
+
> .link-drawer > button {
|
|
120
|
+
transition: padding 0.7s ease-out 0s;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.sidebar-tooltip {
|
|
2
|
+
display: none;
|
|
3
|
+
position: fixed;
|
|
4
|
+
left: 71px;
|
|
5
|
+
top: 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sidebar-tooltip-text {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: block;
|
|
11
|
+
padding: 7px 10px;
|
|
12
|
+
background: $color-teal-light;
|
|
13
|
+
border-radius: 3px;
|
|
14
|
+
color: $color-slate-dark;
|
|
15
|
+
font-size: 13px;
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
letter-spacing: 0px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sidebar-tooltip-text:after {
|
|
21
|
+
content: ' ';
|
|
22
|
+
height: 0;
|
|
23
|
+
width: 0;
|
|
24
|
+
position: absolute;
|
|
25
|
+
right: 100%;
|
|
26
|
+
top: 50%;
|
|
27
|
+
border: solid transparent;
|
|
28
|
+
border-color: transparent;
|
|
29
|
+
border-right-color: $color-teal-light;
|
|
30
|
+
border-width: 6px;
|
|
31
|
+
margin-top: -6px;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|