@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.
Files changed (316) hide show
  1. package/.babelrc +10 -0
  2. package/.editorconfig +22 -0
  3. package/.eslintignore +5 -0
  4. package/.eslintrc.js +31 -0
  5. package/.storybook/.babelrc +4 -0
  6. package/.storybook/main.js +89 -0
  7. package/.storybook/preview-head.html +9 -0
  8. package/.storybook/preview.js +5 -0
  9. package/README.md +5 -0
  10. package/components/Accordion/Accordion.stories.js +20 -0
  11. package/components/Accordion/index.jsx +93 -0
  12. package/components/Alert/Alert.stories.js +61 -0
  13. package/components/Alert/index.js +46 -0
  14. package/components/Breadcrumb/Breadcrumb.md +28 -0
  15. package/components/Breadcrumb/Breadcrumb.stories.js +76 -0
  16. package/components/Breadcrumb/index.js +83 -0
  17. package/components/Button/Button.stories.js +121 -0
  18. package/components/Button/index.js +90 -0
  19. package/components/CalloutBox/CalloutBox.stories.js +94 -0
  20. package/components/CalloutBox/index.js +109 -0
  21. package/components/Card/Card.stories.js +163 -0
  22. package/components/Card/index.js +137 -0
  23. package/components/Dropdown/Dropdown.stories.js +94 -0
  24. package/components/Dropdown/index.js +85 -0
  25. package/components/Error/Collapsible.jsx +88 -0
  26. package/components/Error/ErrorUI.jsx +31 -0
  27. package/components/Error/error.js +26 -0
  28. package/components/FlashNotification/FlashNotificationUI.jsx +91 -0
  29. package/components/FlashNotification/index.js +30 -0
  30. package/components/Footer/Footer.stories.js +20 -0
  31. package/components/Footer/FooterUI.jsx +269 -0
  32. package/components/Footer/LegacyFooterUI.jsx +194 -0
  33. package/components/Footer/SocialLinks.jsx +60 -0
  34. package/components/Footer/Subscribe.jsx +34 -0
  35. package/components/Footer/footer.js +30 -0
  36. package/components/Header/Header.md +111 -0
  37. package/components/Header/Header.stories.js +32 -0
  38. package/components/Header/HeaderAccountMenu.jsx +169 -0
  39. package/components/Header/HeaderCancel.jsx +16 -0
  40. package/components/Header/HeaderContainer.jsx +63 -0
  41. package/components/Header/HeaderLogo.jsx +42 -0
  42. package/components/Header/HeaderMenuButton.js +50 -0
  43. package/components/Header/HeaderMenuItem.jsx +232 -0
  44. package/components/Header/HeaderMenuLink.js +50 -0
  45. package/components/Header/HeaderMenuSignOutButton.js +62 -0
  46. package/components/Header/HeaderMobileButton.js +37 -0
  47. package/components/Header/HeaderUI.jsx +167 -0
  48. package/components/Header/HelpIcon.jsx +32 -0
  49. package/components/Header/ImpersonatorBanner.jsx +57 -0
  50. package/components/Header/NavigationButtonIcon.jsx +27 -0
  51. package/components/Header/default-content.json +280 -0
  52. package/components/Header/header.js +40 -0
  53. package/components/Header/hooks.js +52 -0
  54. package/components/Header/utag-helpers.js +9 -0
  55. package/components/Infotip/Infotip.jsx +75 -0
  56. package/components/Infotip/Infotip.stories.js +50 -0
  57. package/components/Infotip/InfotipIcon.jsx +41 -0
  58. package/components/Infotip/index.js +3 -0
  59. package/components/Link/Link.stories.js +81 -0
  60. package/components/Link/index.js +61 -0
  61. package/components/Modal/LegacyModal.jsx +72 -0
  62. package/components/Modal/Modal.jsx +140 -0
  63. package/components/Modal/Modal.stories.js +159 -0
  64. package/components/Modal/index.jsx +22 -0
  65. package/components/NotificationBanner/NotificationBanner.stories.js +23 -0
  66. package/components/NotificationBanner/index.js +265 -0
  67. package/components/SanitizedContent/index.jsx +200 -0
  68. package/components/Search/Search.stories.js +21 -0
  69. package/components/Search/index.js +85 -0
  70. package/components/SessionDialog/sessionDialog.js +26 -0
  71. package/components/SessionDialogUI.jsx +261 -0
  72. package/components/SideNav/AnimationGroup/AnimationGroup.jsx +27 -0
  73. package/components/SideNav/Chart/ScoreChart.jsx +268 -0
  74. package/components/SideNav/Chart/__tests__/ScoreChart.test.js +22 -0
  75. package/components/SideNav/Chart/__tests__/__snapshots__/ScoreChart.test.js.snap +173 -0
  76. package/components/SideNav/Chart/index.js +3 -0
  77. package/components/SideNav/Content/LevelOneContent.jsx +208 -0
  78. package/components/SideNav/Content/LevelTwoContent.jsx +216 -0
  79. package/components/SideNav/Content/index.js +4 -0
  80. package/components/SideNav/Details/IndividualDetails.jsx +18 -0
  81. package/components/SideNav/Details/PracticeDetails.jsx +45 -0
  82. package/components/SideNav/Details/index.js +4 -0
  83. package/components/SideNav/Links/CmsSwitchLink.jsx +41 -0
  84. package/components/SideNav/Links/NavItemInline.jsx +54 -0
  85. package/components/SideNav/Links/NavLinkContainer.jsx +38 -0
  86. package/components/SideNav/Links/NavLinkDrawer.jsx +249 -0
  87. package/components/SideNav/Links/NavLinkInline.jsx +107 -0
  88. package/components/SideNav/Links/NavLinkToggle.jsx +34 -0
  89. package/components/SideNav/Links/index.js +13 -0
  90. package/components/SideNav/SideNav.md +50 -0
  91. package/components/SideNav/SideNav.stories.js +379 -0
  92. package/components/SideNav/UI/SideNavUI.jsx +333 -0
  93. package/components/SideNav/UI/default-content.json +99 -0
  94. package/components/SideNav/UI/index.js +3 -0
  95. package/components/SideNav/helpers.js +49 -0
  96. package/components/SideNav/index.js +53 -0
  97. package/components/Spinner/index.js +9 -0
  98. package/components/Tabs/Tab.js +26 -0
  99. package/components/Tabs/TabPanel.js +34 -0
  100. package/components/Tabs/Tabs.stories.js +120 -0
  101. package/components/Tabs/index.js +95 -0
  102. package/components/TextInput/TextInput.stories.js +118 -0
  103. package/components/TextInput/index.js +137 -0
  104. package/components/Tooltip/Tooltip.jsx +88 -0
  105. package/components/Tooltip/Tooltip.stories.js +80 -0
  106. package/components/Tooltip/index.js +3 -0
  107. package/components/Tooltip/position.js +68 -0
  108. package/components/UnwrappedSpinner/index.js +8 -0
  109. package/components/hooks/useGetConfig.js +74 -0
  110. package/components/index.js +126 -0
  111. package/dist/browser.js +3 -0
  112. package/dist/browser.js.LICENSE.txt +54 -0
  113. package/dist/browser.js.map +1 -0
  114. package/dist/index.js +3 -0
  115. package/dist/index.js.LICENSE.txt +54 -0
  116. package/dist/index.js.map +1 -0
  117. package/dist/react/index.js +3 -0
  118. package/dist/react/index.js.LICENSE.txt +71 -0
  119. package/dist/react/index.js.map +1 -0
  120. package/fonts/FontAwesome.otf +0 -0
  121. package/fonts/OFL.txt +92 -0
  122. package/fonts/Rubik-Black.ttf +0 -0
  123. package/fonts/Rubik-BlackItalic.ttf +0 -0
  124. package/fonts/Rubik-Bold.ttf +0 -0
  125. package/fonts/Rubik-BoldItalic.ttf +0 -0
  126. package/fonts/Rubik-Italic.ttf +0 -0
  127. package/fonts/Rubik-Light.ttf +0 -0
  128. package/fonts/Rubik-LightItalic.ttf +0 -0
  129. package/fonts/Rubik-Medium.ttf +0 -0
  130. package/fonts/Rubik-MediumItalic.ttf +0 -0
  131. package/fonts/Rubik-Regular.ttf +0 -0
  132. package/fonts/fontawesome-webfont.eot +0 -0
  133. package/fonts/fontawesome-webfont.svg +2671 -0
  134. package/fonts/fontawesome-webfont.ttf +0 -0
  135. package/fonts/fontawesome-webfont.woff +0 -0
  136. package/fonts/fontawesome-webfont.woff2 +0 -0
  137. package/images/favicon/android-chrome-192x192.png +0 -0
  138. package/images/favicon/android-chrome-256x256.png +0 -0
  139. package/images/favicon/apple-touch-icon.png +0 -0
  140. package/images/favicon/browserconfig.xml +9 -0
  141. package/images/favicon/favicon-16x16.png +0 -0
  142. package/images/favicon/favicon-32x32.png +0 -0
  143. package/images/favicon/favicon.ico +0 -0
  144. package/images/favicon/manifest.json +18 -0
  145. package/images/favicon/mstile-150x150.png +0 -0
  146. package/images/favicon/safari-pinned-tab.svg +32 -0
  147. package/images/hhs-logo-black.svg +10 -0
  148. package/images/hhs-logo-white.svg +10 -0
  149. package/images/icons/close-x.svg +6 -0
  150. package/images/icons/help-headset.svg +21 -0
  151. package/images/icons/svg/arrow-down.svg +1 -0
  152. package/images/icons/svg/arrow-download.svg +1 -0
  153. package/images/icons/svg/arrow-right.svg +1 -0
  154. package/images/icons/svg/calendar.svg +1 -0
  155. package/images/icons/svg/close.svg +1 -0
  156. package/images/icons/svg/download.svg +1 -0
  157. package/images/icons/svg/external.svg +1 -0
  158. package/images/icons/svg/file-upload.svg +1 -0
  159. package/images/icons/svg/print.svg +1 -0
  160. package/images/icons/svg/search.svg +7 -0
  161. package/images/icons/svg/tooltip-question.svg +6 -0
  162. package/images/icons/svg/trash.svg +1 -0
  163. package/images/icons/svg/upload.svg +1 -0
  164. package/images/qpp_logo_reversed.png +0 -0
  165. package/images/qpp_logo_rgb_color.png +0 -0
  166. package/index.js +31 -0
  167. package/jest/mediaFileTransformer.js +9 -0
  168. package/jest.config.js +188 -0
  169. package/lib/Chevron.jsx +32 -0
  170. package/lib/SvgComponents.jsx +539 -0
  171. package/lib/svg-definitions.svg +125 -0
  172. package/package.json +125 -0
  173. package/session/index.js +5 -0
  174. package/session/logout.js +65 -0
  175. package/session/refresh.js +49 -0
  176. package/session/ttl.js +37 -0
  177. package/styles/_global.scss +106 -0
  178. package/styles/_main.scss +15 -0
  179. package/styles/_paths.scss +1 -0
  180. package/styles/_qpp-style.scss +31 -0
  181. package/styles/components/_accordion.scss +289 -0
  182. package/styles/components/_alerts.scss +54 -0
  183. package/styles/components/_autocomplete.scss +47 -0
  184. package/styles/components/_breadcrumbs.scss +64 -0
  185. package/styles/components/_buttons.scss +580 -0
  186. package/styles/components/_error-page.scss +56 -0
  187. package/styles/components/_flash-notification.scss +98 -0
  188. package/styles/components/_fonts.scss +42 -0
  189. package/styles/components/_forms.scss +277 -0
  190. package/styles/components/_grid.scss +37 -0
  191. package/styles/components/_info-modal.scss +139 -0
  192. package/styles/components/_links.scss +12 -0
  193. package/styles/components/_modals.scss +18 -0
  194. package/styles/components/_notification-banner.scss +165 -0
  195. package/styles/components/_panels.scss +61 -0
  196. package/styles/components/_pie-chart.scss +13 -0
  197. package/styles/components/_score-chart.scss +164 -0
  198. package/styles/components/_spinner.scss +7 -0
  199. package/styles/components/_tables.scss +111 -0
  200. package/styles/components/_tabs.scss +69 -0
  201. package/styles/components/_text.scss +150 -0
  202. package/styles/components/_toggles.scss +3 -0
  203. package/styles/components/_tooltip.scss +23 -0
  204. package/styles/components/_variables.scss +157 -0
  205. package/styles/components/_wells.scss +92 -0
  206. package/styles/qppds/README.md +0 -0
  207. package/styles/qppds/base/_backgrounds.scss +7 -0
  208. package/styles/qppds/base/_fonts.scss +26 -0
  209. package/styles/qppds/base/_icon.scss +23 -0
  210. package/styles/qppds/base/_layout.scss +5 -0
  211. package/styles/qppds/base/_typography.scss +85 -0
  212. package/styles/qppds/base/index.scss +8 -0
  213. package/styles/qppds/components/_alert.scss +95 -0
  214. package/styles/qppds/components/_breadcrumbs.scss +70 -0
  215. package/styles/qppds/components/_button.scss +292 -0
  216. package/styles/qppds/components/_card.scss +175 -0
  217. package/styles/qppds/components/_dropdown.scss +55 -0
  218. package/styles/qppds/components/_footer.scss +597 -0
  219. package/styles/qppds/components/_header.scss +892 -0
  220. package/styles/qppds/components/_link.scss +52 -0
  221. package/styles/qppds/components/_modal.scss +118 -0
  222. package/styles/qppds/components/_page-header.scss +67 -0
  223. package/styles/qppds/components/_pagination.scss +227 -0
  224. package/styles/qppds/components/_search.scss +112 -0
  225. package/styles/qppds/components/_sidebar.scss +9 -0
  226. package/styles/qppds/components/_table.scss +139 -0
  227. package/styles/qppds/components/_tabs.scss +197 -0
  228. package/styles/qppds/components/_text-input.scss +60 -0
  229. package/styles/qppds/components/index.scss +16 -0
  230. package/styles/qppds/components/sidebar/_animations.scss +38 -0
  231. package/styles/qppds/components/sidebar/_cms.scss +61 -0
  232. package/styles/qppds/components/sidebar/_details.scss +58 -0
  233. package/styles/qppds/components/sidebar/_links.scss +444 -0
  234. package/styles/qppds/components/sidebar/_sidebar-animation.scss +125 -0
  235. package/styles/qppds/components/sidebar/_sidebar-tooltip.scss +33 -0
  236. package/styles/qppds/components/sidebar/_sidebar.scss +146 -0
  237. package/styles/qppds/components/sidebar/project-specific/_wi.scss +42 -0
  238. package/styles/qppds/index.scss +4 -0
  239. package/styles/qppds/settings/_functions.scss +4 -0
  240. package/styles/qppds/settings/_index.scss +3 -0
  241. package/styles/qppds/settings/mixins/_borders.scss +6 -0
  242. package/styles/qppds/settings/mixins/_focus.scss +28 -0
  243. package/styles/qppds/settings/mixins/_icons.scss +33 -0
  244. package/styles/qppds/settings/mixins/_index.scss +8 -0
  245. package/styles/qppds/settings/mixins/_layout.scss +74 -0
  246. package/styles/qppds/settings/mixins/_lists.scss +12 -0
  247. package/styles/qppds/settings/mixins/_table.scss +91 -0
  248. package/styles/qppds/settings/mixins/_type.scss +65 -0
  249. package/styles/qppds/settings/mixins/_visually-hidden.scss +30 -0
  250. package/styles/qppds/settings/variables/_color.scss +86 -0
  251. package/styles/qppds/settings/variables/_index.scss +3 -0
  252. package/styles/qppds/settings/variables/_layout.scss +67 -0
  253. package/styles/qppds/settings/variables/_type.scss +132 -0
  254. package/styles/qppds/utilities/_background-color.scss +134 -0
  255. package/styles/qppds/utilities/_color.scss +32 -0
  256. package/styles/qppds/utilities/_display-visibility.scss +83 -0
  257. package/styles/qppds/utilities/_flexbox.scss +240 -0
  258. package/styles/qppds/utilities/_font-family.scss +9 -0
  259. package/styles/qppds/utilities/_font-size.scss +8 -0
  260. package/styles/qppds/utilities/_font-weight.scss +8 -0
  261. package/styles/qppds/utilities/_height.scss +38 -0
  262. package/styles/qppds/utilities/_margin.scss +136 -0
  263. package/styles/qppds/utilities/_padding.scss +76 -0
  264. package/styles/qppds/utilities/_position.scss +24 -0
  265. package/styles/qppds/utilities/_text-align.scss +40 -0
  266. package/styles/qppds/utilities/_text-transform.scss +7 -0
  267. package/styles/qppds/utilities/_truncate.scss +8 -0
  268. package/styles/qppds/utilities/_width.scss +79 -0
  269. package/styles/qppds/utilities/index.scss +15 -0
  270. package/styles/qppds.scss +2 -0
  271. package/styles/third-party/_legacy-bootstrap.scss +19 -0
  272. package/styles/third-party/legacy-bootstrap/_buttons.scss +126 -0
  273. package/styles/third-party/legacy-bootstrap/_dropdowns.scss +211 -0
  274. package/styles/third-party/legacy-bootstrap/_forms.scss +510 -0
  275. package/styles/third-party/legacy-bootstrap/_grid.scss +73 -0
  276. package/styles/third-party/legacy-bootstrap/_mixins.scss +27 -0
  277. package/styles/third-party/legacy-bootstrap/_navbar.scss +644 -0
  278. package/styles/third-party/legacy-bootstrap/_navs.scss +193 -0
  279. package/styles/third-party/legacy-bootstrap/_normalize.scss +385 -0
  280. package/styles/third-party/legacy-bootstrap/_scaffolding.scss +116 -0
  281. package/styles/third-party/legacy-bootstrap/_variables.scss +858 -0
  282. package/styles/third-party/legacy-bootstrap/mixins/_buttons.scss +70 -0
  283. package/styles/third-party/legacy-bootstrap/mixins/_clearfix.scss +22 -0
  284. package/styles/third-party/legacy-bootstrap/mixins/_forms.scss +108 -0
  285. package/styles/third-party/legacy-bootstrap/mixins/_grid-framework.scss +86 -0
  286. package/styles/third-party/legacy-bootstrap/mixins/_grid.scss +112 -0
  287. package/styles/third-party/legacy-bootstrap/mixins/_labels.scss +12 -0
  288. package/styles/third-party/legacy-bootstrap/mixins/_nav-divider.scss +10 -0
  289. package/styles/third-party/legacy-bootstrap/mixins/_nav-vertical-align.scss +9 -0
  290. package/styles/third-party/legacy-bootstrap/mixins/_opacity.scss +7 -0
  291. package/styles/third-party/legacy-bootstrap/mixins/_panels.scss +30 -0
  292. package/styles/third-party/legacy-bootstrap/mixins/_reset-filter.scss +7 -0
  293. package/styles/third-party/legacy-bootstrap/mixins/_reset-text.scss +18 -0
  294. package/styles/third-party/legacy-bootstrap/mixins/_resize.scss +6 -0
  295. package/styles/third-party/legacy-bootstrap/mixins/_responsive-visibility.scss +25 -0
  296. package/styles/third-party/legacy-bootstrap/mixins/_size.scss +10 -0
  297. package/styles/third-party/legacy-bootstrap/mixins/_tab-focus.scss +9 -0
  298. package/styles/third-party/legacy-bootstrap/mixins/_table-row.scss +28 -0
  299. package/styles/third-party/legacy-bootstrap/mixins/_text-emphasis.scss +12 -0
  300. package/styles/third-party/legacy-bootstrap/mixins/_text-overflow.scss +8 -0
  301. package/styles/third-party/legacy-bootstrap/mixins/_vendor-prefixes.scss +182 -0
  302. package/styles/utility/_mixins.scss +46 -0
  303. package/styles/utility/_utilities.scss +73 -0
  304. package/test/components/Accordion.test.js +12 -0
  305. package/test/components/ErrorUI.test.js +33 -0
  306. package/test/components/FooterUI.test.js +90 -0
  307. package/test/components/HeaderUI.test.js +45 -0
  308. package/test/components/Infotip.test.js +73 -0
  309. package/test/components/SessionDialogUI.test.js +339 -0
  310. package/test/components/SideNavUI.test.js +23 -0
  311. package/test/components/Tooltip.test.js +147 -0
  312. package/test/index.test.js +8 -0
  313. package/test/session/session.test.js +221 -0
  314. package/test-setup.js +9 -0
  315. package/webpack.config.js +147 -0
  316. package/webpack.config.react.js +86 -0
@@ -0,0 +1,61 @@
1
+ .panel-group {
2
+ margin-bottom: 20px;
3
+ }
4
+
5
+ .panel-title {
6
+ align-content: center;
7
+ align-items: center;
8
+ display: flex;
9
+
10
+ a {
11
+ color: $color-blue-light;
12
+
13
+ &:first-child {
14
+ width: 85%;
15
+ }
16
+ }
17
+
18
+ svg {
19
+ height: 15px;
20
+ width: 15px;
21
+ }
22
+ }
23
+
24
+ .panel-default {
25
+ & > .panel-heading {
26
+ background-color: transparent;
27
+
28
+ h3 {
29
+ margin: 0.5em 0;
30
+ }
31
+
32
+ a {
33
+ line-height: 1.4;
34
+ }
35
+ }
36
+ }
37
+
38
+ .panel-body {
39
+ font-size: 1rem;
40
+ }
41
+
42
+ .panel-default > .panel-heading + .panel-collapse > .panel-body {
43
+ border-top-color: #fff;
44
+ }
45
+
46
+ .panel-info {
47
+ & > .panel-heading {
48
+ background-color: $color-teal-light;
49
+ }
50
+
51
+ &.selected-measures {
52
+ border-color: $color-teal-light;
53
+
54
+ p.panel-title {
55
+ color: #000;
56
+ font-size: 14px;
57
+ font-weight: 700;
58
+ text-align: center;
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,13 @@
1
+ .pie-chart {
2
+ margin: 0 auto;
3
+ max-width: 300px;
4
+ padding-bottom: 2em;
5
+ text-align: center;
6
+ @include breakpoint(md) {
7
+ max-width: none;
8
+ }
9
+
10
+ h3 {
11
+ margin: 0 0 1em;
12
+ }
13
+ }
@@ -0,0 +1,164 @@
1
+ .chart {
2
+ align-items: center;
3
+ display: flex;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ margin-bottom: 20px;
7
+ text-align: center;
8
+
9
+ button {
10
+ background: none;
11
+ border: none;
12
+ padding: 0;
13
+ }
14
+
15
+ .score-chart {
16
+ .arc {
17
+ fill: none;
18
+ stroke-width: 1.5;
19
+
20
+ &.empty {
21
+ fill: transparent;
22
+ stroke: $color-slate-light;
23
+ }
24
+
25
+ &.filled {
26
+ &.quality {
27
+ fill: $color-quality;
28
+ stroke: $color-quality;
29
+ }
30
+
31
+ &.aci,
32
+ &.pi {
33
+ fill: $color-aci;
34
+ stroke: $color-aci;
35
+ }
36
+
37
+ &.ia {
38
+ fill: $color-ia;
39
+ stroke: $color-ia;
40
+ }
41
+ }
42
+
43
+ &.filled,
44
+ &.empty {
45
+ cursor: pointer;
46
+ }
47
+ }
48
+
49
+ text {
50
+ fill: $color-white;
51
+
52
+ &.label {
53
+ font-weight: normal;
54
+ }
55
+
56
+ &.chart-title {
57
+ font-size: 40px;
58
+ font-weight: 300;
59
+ }
60
+
61
+ &.chart-subtitle {
62
+ fill: $color-gray-medium;
63
+ font-size: 12px;
64
+ font-weight: bold;
65
+ letter-spacing: 0.1em;
66
+ }
67
+ }
68
+ }
69
+
70
+ .chart-tooltip {
71
+ @include typography('Rubik', 14px, 20px, $color-text-main);
72
+ background-color: rgba(255, 255, 255, 0.85);
73
+ border-radius: 10px;
74
+ box-shadow: 4px 4px 10px rbga(0, 0, 0, 0.4);
75
+ color: black;
76
+ height: 40px;
77
+ padding: 10px;
78
+ pointer-events: none;
79
+ position: absolute;
80
+ width: 250px;
81
+
82
+ &.off {
83
+ opacity: 0;
84
+ }
85
+ }
86
+
87
+ .chart-legend-toggler {
88
+ cursor: pointer;
89
+ display: flex;
90
+ flex-direction: row;
91
+
92
+ & button {
93
+ @include typography('Rubik', 14px, 20px, $color-teal-light);
94
+ cursor: pointer;
95
+ fill: $color-teal-light;
96
+ margin: 20px 0;
97
+ padding: 5px;
98
+
99
+ &.open {
100
+ color: $color-white;
101
+ fill: $color-white;
102
+ }
103
+
104
+ & .right-icon {
105
+ height: 11px;
106
+ margin-left: 5px;
107
+ transition: transform 0.6s;
108
+ width: 11px;
109
+ }
110
+
111
+ & .rotated {
112
+ transform: rotate(180deg);
113
+ }
114
+ }
115
+ }
116
+
117
+ .chart-legend {
118
+ list-style: none;
119
+ text-align: left;
120
+
121
+ & button {
122
+ @include typography('Rubik', 14px, 20px, $color-white);
123
+ margin-bottom: 7px;
124
+ }
125
+
126
+ .legend-axis {
127
+ color: white;
128
+ font-size: 14px;
129
+
130
+ .legend-axis-color {
131
+ border-radius: 10px;
132
+ float: left;
133
+ height: 15px;
134
+ margin: 2px;
135
+ margin-right: 10px;
136
+ margin-top: 3px;
137
+ width: 15px;
138
+
139
+ &.quality {
140
+ background-color: $color-quality;
141
+ }
142
+
143
+ &.aci,
144
+ &.pi {
145
+ background-color: $color-aci;
146
+ }
147
+
148
+ &.ia {
149
+ background-color: $color-ia;
150
+ }
151
+
152
+ &.cost {
153
+ background-color: $color-cost;
154
+ }
155
+ }
156
+
157
+ .legend-axis-title {
158
+ display: inline-block;
159
+ text-align: left;
160
+ width: 165px;
161
+ }
162
+ }
163
+ }
164
+ }
@@ -0,0 +1,7 @@
1
+ .ds-c-spinner::after {
2
+ color: $color-teal;
3
+ }
4
+
5
+ .ds-c-spinner::before {
6
+ color: $color-gray-very-light;
7
+ }
@@ -0,0 +1,111 @@
1
+ /* Tables */
2
+
3
+ .thead-inverse th {
4
+ background-color: $table-primary-color;
5
+ color: $color-white; // Bootstrap 3
6
+ }
7
+
8
+ .table {
9
+ font-size: 1.1rem;
10
+
11
+ th {
12
+ border-top: none;
13
+ font-weight: 500;
14
+ }
15
+
16
+ th,
17
+ td {
18
+ border-color: $table-border-color !important; // Impotant Bootstrap 3
19
+ padding: 1.2rem 1.4rem !important; // Impotant Bootstrap 3
20
+ }
21
+ }
22
+
23
+ .table-bordered {
24
+ border: none;
25
+
26
+ thead {
27
+ th {
28
+ border-bottom: none !important; // Impotant Bootstrap 3
29
+ }
30
+ }
31
+ }
32
+
33
+ .table thead {
34
+ tr {
35
+ th {
36
+ border-bottom: none;
37
+ vertical-align: middle;
38
+ }
39
+ }
40
+ }
41
+
42
+ .table-bordered thead th:first-of-type {
43
+ border-left: none;
44
+ }
45
+
46
+ .table-bordered thead th:last-of-type {
47
+ border-right-color: $table-primary-color;
48
+ }
49
+
50
+ .table tbody {
51
+ tr {
52
+ &:first-of-type {
53
+ td {
54
+ border-top: 0;
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ .table-striped tbody tr:nth-of-type(odd) {
61
+ background-color: transparent;
62
+ }
63
+
64
+ .table-striped tbody tr:nth-of-type(even) {
65
+ background-color: $table-stripe-color;
66
+ }
67
+
68
+ // Mobile table fixes
69
+
70
+ .table-container {
71
+ margin: 0 0 1em;
72
+ overflow-y: auto;
73
+ width: 100%;
74
+
75
+ &::-webkit-scrollbar {
76
+ -webkit-appearance: none;
77
+ height: 14px;
78
+ width: 14px;
79
+ }
80
+
81
+ &::-webkit-scrollbar-thumb {
82
+ background-color: rgba(0, 0, 0, 0.3);
83
+ border: 3px solid $color-white;
84
+ border-radius: 8px;
85
+ }
86
+
87
+ .table {
88
+ @include breakpoint(xs) {
89
+ margin-bottom: 2rem;
90
+ position: relative;
91
+
92
+ &::after {
93
+ bottom: -32px;
94
+ content: 'Scroll to view table \2192';
95
+ font-size: 0.9rem;
96
+ font-weight: 100;
97
+ position: absolute;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ .no-scroll-table-container {
104
+ overflow-y: inherit !important;
105
+ overflow: inherit !important;
106
+ .table {
107
+ &::after {
108
+ content: '' !important;
109
+ }
110
+ }
111
+ }
@@ -0,0 +1,69 @@
1
+ .react-tabs {
2
+ position: relative;
3
+
4
+ .ds-c-tabs {
5
+ border-bottom: 1px solid $color-gray-very-light;
6
+ display: flex;
7
+ list-style-type: none;
8
+ margin-bottom: 0;
9
+ padding-left: 0;
10
+ }
11
+
12
+ .react-tabs__tab-rule {
13
+ background: $color-gray-very-light;
14
+ height: 1px;
15
+ margin-top: -1px;
16
+ position: absolute;
17
+ z-index: -1;
18
+ }
19
+
20
+ .ds-c-tabs__item {
21
+ border-color: $color-gray-very-light;
22
+ border-style: solid;
23
+ border-top-left-radius: 3px;
24
+ border-top-right-radius: 3px;
25
+ border-width: 1px;
26
+ color: $link-color;
27
+ cursor: pointer;
28
+ display: inline-block;
29
+ margin-left: 0.625rem;
30
+ padding: 1.25rem;
31
+ padding-bottom: 0.9375rem;
32
+ text-decoration: none;
33
+ text-transform: uppercase;
34
+
35
+ &[aria-selected='true'] {
36
+ border-bottom-color: $color-white;
37
+ color: $color-text-main;
38
+ font-weight: $rubik-medium;
39
+ }
40
+
41
+ &[aria-disabled='true'] {
42
+ background: $color-gray-very-light;
43
+ color: $color-gray-darker-medium;
44
+ cursor: not-allowed;
45
+ }
46
+ }
47
+
48
+ .ds-c-tabs__panel {
49
+ margin-top: 2.5rem;
50
+
51
+ &:empty {
52
+ display: none;
53
+ }
54
+
55
+ &[aria-hidden='true'] {
56
+ display: none;
57
+ }
58
+ }
59
+
60
+ .react-tabs__full-width {
61
+ .ds-c-tabs {
62
+ border-bottom: 0 none;
63
+ }
64
+
65
+ .ds-c-tabs__item:first-child {
66
+ margin-left: 0;
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,150 @@
1
+ /* Base Styles */
2
+
3
+ html {
4
+ font-size: $font-size-base;
5
+ }
6
+
7
+ body {
8
+ color: $text-color;
9
+ font-family: $font-family-base;
10
+ font-size: $font-size-base * 1.125;
11
+ font-weight: 400;
12
+ line-height: 1.7;
13
+ }
14
+
15
+ ::-moz-selection {
16
+ background: $text-selection-color;
17
+ }
18
+
19
+ ::selection {
20
+ background: $text-selection-color;
21
+ }
22
+
23
+ p {
24
+ margin-bottom: 30px;
25
+
26
+ &.lead {
27
+ color: $lead-color;
28
+ font-size: 1.5rem;
29
+ font-weight: 400;
30
+ }
31
+
32
+ & ~ ul,
33
+ & ~ ol {
34
+ margin-bottom: 30px;
35
+ margin-top: -25px;
36
+ }
37
+ }
38
+
39
+ a {
40
+ color: $link-color;
41
+ text-decoration: $link-decoration;
42
+
43
+ &:hover {
44
+ color: $link-hover-color;
45
+ text-decoration: $link-hover-decoration;
46
+ }
47
+ }
48
+
49
+ strong {
50
+ font-weight: 500;
51
+ }
52
+
53
+ small {
54
+ font-size: 1rem;
55
+ line-height: 1.5;
56
+ }
57
+
58
+ hr {
59
+ margin-bottom: 35px;
60
+ }
61
+
62
+ #panel {
63
+ section:first-of-type {
64
+ margin-top: 2rem;
65
+ }
66
+ }
67
+
68
+ /* Header Styles */
69
+
70
+ $default-font-size: 16;
71
+
72
+ h1 {
73
+ .subtitle {
74
+ font-size: 18px; // Fallback in pixels
75
+ font-size: (18 / $default-font-size) + rem;
76
+ font-weight: $rubik-regular;
77
+
78
+ @include breakpoint(xs) {
79
+ font-size: 16px; // Fallback in pixels
80
+ font-size: (16 / $default-font-size) + rem;
81
+ }
82
+ }
83
+ }
84
+
85
+ @for $i from 1 through length($headings) {
86
+ $heading: nth($headings, $i);
87
+
88
+ h#{$i},
89
+ .h#{$i} {
90
+ color: $headings-color;
91
+ font-weight: nth($heading, 5);
92
+ margin-bottom: 10px;
93
+
94
+ @include breakpoint(xs) {
95
+ font-size: nth($heading, 2) + px; // Fallback in pixels
96
+ font-size: (nth($heading, 2) / $default-font-size) + rem;
97
+ line-height: nth($heading, 4) + px;
98
+ }
99
+ @include breakpoint(sm) {
100
+ font-size: nth($heading, 2) + px; // Fallback in pixels
101
+ font-size: (nth($heading, 2) / $default-font-size) + rem;
102
+ line-height: nth($heading, 4) + px;
103
+ }
104
+ @include breakpoint(md) {
105
+ font-size: nth($heading, 1) + px; // Fallback in pixels
106
+ font-size: (nth($heading, 1) / $default-font-size) + rem;
107
+ line-height: nth($heading, 3) + px;
108
+ }
109
+ }
110
+ }
111
+
112
+ .content-page h1 {
113
+ .subtitle {
114
+ font-size: 24px; // Fallback in pixels
115
+ font-size: (24 / $default-font-size) + rem;
116
+ font-weight: $rubik-light;
117
+
118
+ @include breakpoint(xs) {
119
+ font-size: 20px; // Fallback in pixels
120
+ font-size: (20 / $default-font-size) + rem;
121
+ }
122
+ }
123
+ }
124
+
125
+ @for $i from 1 through length($content-headings) {
126
+ $heading: nth($content-headings, $i);
127
+
128
+ .content-page h#{$i},
129
+ .content-page .h#{$i} {
130
+ color: $headings-color-content;
131
+ font-size: nth($heading, 1) + px; // Fallback in pixels
132
+ font-size: (nth($heading, 1) / $default-font-size) + rem;
133
+ font-weight: nth($heading, 4);
134
+ line-height: 1.2;
135
+ margin-bottom: 10px;
136
+ text-transform: nth($heading, 5);
137
+ @include breakpoint(xs) {
138
+ font-size: nth($heading, 3) + px; // Fallback in pixels
139
+ font-size: (nth($heading, 3) / $default-font-size) + rem;
140
+ }
141
+ @include breakpoint(sm) {
142
+ font-size: nth($heading, 2) + px; // Fallback in pixels
143
+ font-size: (nth($heading, 2) / $default-font-size) + rem;
144
+ }
145
+ @include breakpoint(md) {
146
+ font-size: nth($heading, 1) + px; // Fallback in pixels
147
+ font-size: (nth($heading, 1) / $default-font-size) + rem;
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,3 @@
1
+ .dropdown-toggle {
2
+ font-weight: normal;
3
+ }
@@ -0,0 +1,23 @@
1
+ [data-reach-tooltip] {
2
+ border: none;
3
+ border-radius: 4px;
4
+ padding: 10px;
5
+ box-shadow: 0 4px 8px 6px rgba(0, 0, 0, 0.1);
6
+ white-space: normal;
7
+ z-index: 1;
8
+ pointer-events: none;
9
+ position: absolute;
10
+ font-size: 85%;
11
+ }
12
+
13
+ @media only screen and (max-width: 339px) {
14
+ /* For small screens */
15
+ [data-reach-tooltip] {
16
+ max-width: 90%;
17
+ }
18
+ }
19
+ @media only screen and (min-width: 340px) {
20
+ [data-reach-tooltip] {
21
+ max-width: 340px;
22
+ }
23
+ }