@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,644 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Navbars
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
// Wrapper and base class
|
|
6
|
+
//
|
|
7
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
|
8
|
+
// other navbar variations.
|
|
9
|
+
.navbar {
|
|
10
|
+
position: relative;
|
|
11
|
+
min-height: $navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
|
12
|
+
margin-bottom: $navbar-margin-bottom;
|
|
13
|
+
border: 1px solid transparent;
|
|
14
|
+
|
|
15
|
+
// Prevent floats from breaking the navbar
|
|
16
|
+
@include clearfix;
|
|
17
|
+
|
|
18
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
19
|
+
border-radius: $navbar-border-radius;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Navbar heading
|
|
24
|
+
//
|
|
25
|
+
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
|
26
|
+
// styling of responsive aspects.
|
|
27
|
+
.navbar-header {
|
|
28
|
+
@include clearfix;
|
|
29
|
+
|
|
30
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
31
|
+
float: left;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Navbar collapse (body)
|
|
36
|
+
//
|
|
37
|
+
// Group your navbar content into this for easy collapsing and expanding across
|
|
38
|
+
// various device sizes. By default, this content is collapsed when <768px, but
|
|
39
|
+
// will expand past that for a horizontal display.
|
|
40
|
+
//
|
|
41
|
+
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
|
42
|
+
// vertically and include a `max-height` to overflow in case you have too much
|
|
43
|
+
// content for the user's viewport.
|
|
44
|
+
.navbar-collapse {
|
|
45
|
+
padding-right: $navbar-padding-horizontal;
|
|
46
|
+
padding-left: $navbar-padding-horizontal;
|
|
47
|
+
overflow-x: visible;
|
|
48
|
+
border-top: 1px solid transparent;
|
|
49
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
50
|
+
@include clearfix;
|
|
51
|
+
-webkit-overflow-scrolling: touch;
|
|
52
|
+
|
|
53
|
+
&.in {
|
|
54
|
+
overflow-y: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
58
|
+
width: auto;
|
|
59
|
+
border-top: 0;
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
|
|
62
|
+
&.collapse {
|
|
63
|
+
display: block !important;
|
|
64
|
+
height: auto !important;
|
|
65
|
+
padding-bottom: 0; // Override default setting
|
|
66
|
+
overflow: visible !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.in {
|
|
70
|
+
overflow-y: visible;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Undo the collapse side padding for navbars with containers to ensure
|
|
74
|
+
// alignment of right-aligned contents.
|
|
75
|
+
.navbar-fixed-top &,
|
|
76
|
+
.navbar-static-top &,
|
|
77
|
+
.navbar-fixed-bottom & {
|
|
78
|
+
padding-right: 0;
|
|
79
|
+
padding-left: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.navbar-fixed-top,
|
|
85
|
+
.navbar-fixed-bottom {
|
|
86
|
+
.navbar-collapse {
|
|
87
|
+
max-height: $navbar-collapse-max-height;
|
|
88
|
+
|
|
89
|
+
@media (max-device-width: $screen-xs-min) and (orientation: landscape) {
|
|
90
|
+
max-height: 200px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Fix the top/bottom navbars when screen real estate supports it
|
|
95
|
+
position: fixed;
|
|
96
|
+
right: 0;
|
|
97
|
+
left: 0;
|
|
98
|
+
z-index: $zindex-navbar-fixed;
|
|
99
|
+
|
|
100
|
+
// Undo the rounded corners
|
|
101
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
102
|
+
border-radius: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.navbar-fixed-top {
|
|
107
|
+
top: 0;
|
|
108
|
+
border-width: 0 0 1px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.navbar-fixed-bottom {
|
|
112
|
+
bottom: 0;
|
|
113
|
+
margin-bottom: 0; // override .navbar defaults
|
|
114
|
+
border-width: 1px 0 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Both navbar header and collapse
|
|
118
|
+
//
|
|
119
|
+
// When a container is present, change the behavior of the header and collapse.
|
|
120
|
+
.container,
|
|
121
|
+
.container-fluid {
|
|
122
|
+
> .navbar-header,
|
|
123
|
+
> .navbar-collapse {
|
|
124
|
+
margin-right: -$navbar-padding-horizontal;
|
|
125
|
+
margin-left: -$navbar-padding-horizontal;
|
|
126
|
+
|
|
127
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
128
|
+
margin-right: 0;
|
|
129
|
+
margin-left: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
//
|
|
134
|
+
// Navbar alignment options
|
|
135
|
+
//
|
|
136
|
+
// Display the navbar across the entirety of the page or fixed it to the top or
|
|
137
|
+
// bottom of the page.
|
|
138
|
+
|
|
139
|
+
// Static top (unfixed, but 100% wide) navbar
|
|
140
|
+
.navbar-static-top {
|
|
141
|
+
z-index: $zindex-navbar;
|
|
142
|
+
border-width: 0 0 1px;
|
|
143
|
+
|
|
144
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
145
|
+
border-radius: 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Brand/project name
|
|
150
|
+
.navbar-brand {
|
|
151
|
+
float: left;
|
|
152
|
+
height: $navbar-height;
|
|
153
|
+
padding: $navbar-padding-vertical $navbar-padding-horizontal;
|
|
154
|
+
font-size: $font-size-large;
|
|
155
|
+
line-height: $line-height-computed;
|
|
156
|
+
|
|
157
|
+
&:hover,
|
|
158
|
+
&:focus {
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
> img {
|
|
163
|
+
display: block;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
167
|
+
.navbar > .container &,
|
|
168
|
+
.navbar > .container-fluid & {
|
|
169
|
+
margin-left: -$navbar-padding-horizontal;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Navbar toggle
|
|
175
|
+
//
|
|
176
|
+
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
|
177
|
+
// JavaScript plugin.
|
|
178
|
+
.navbar-toggle {
|
|
179
|
+
position: relative;
|
|
180
|
+
float: right;
|
|
181
|
+
padding: 9px 10px;
|
|
182
|
+
margin-right: $navbar-padding-horizontal;
|
|
183
|
+
@include navbar-vertical-align(34px);
|
|
184
|
+
background-color: transparent;
|
|
185
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
|
186
|
+
border: 1px solid transparent;
|
|
187
|
+
border-radius: $border-radius-base;
|
|
188
|
+
|
|
189
|
+
// We remove the `outline` here, but later compensate by attaching `:hover`
|
|
190
|
+
// styles to `:focus`.
|
|
191
|
+
&:focus {
|
|
192
|
+
outline: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Bars
|
|
196
|
+
.icon-bar {
|
|
197
|
+
display: block;
|
|
198
|
+
width: 22px;
|
|
199
|
+
height: 2px;
|
|
200
|
+
border-radius: 1px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.icon-bar + .icon-bar {
|
|
204
|
+
margin-top: 4px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// Navbar nav links
|
|
213
|
+
//
|
|
214
|
+
// Builds on top of the `.nav` components with its own modifier class to make
|
|
215
|
+
// the nav the full height of the horizontal nav (above 768px).
|
|
216
|
+
.navbar-nav {
|
|
217
|
+
margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
|
|
218
|
+
|
|
219
|
+
> li > a {
|
|
220
|
+
padding-top: 10px;
|
|
221
|
+
padding-bottom: 10px;
|
|
222
|
+
line-height: $line-height-computed;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
|
226
|
+
// Dropdowns get custom display when collapsed
|
|
227
|
+
.open .dropdown-menu {
|
|
228
|
+
position: static;
|
|
229
|
+
float: none;
|
|
230
|
+
width: auto;
|
|
231
|
+
margin-top: 0;
|
|
232
|
+
background-color: transparent;
|
|
233
|
+
border: 0;
|
|
234
|
+
box-shadow: none;
|
|
235
|
+
|
|
236
|
+
> li > a,
|
|
237
|
+
.dropdown-header {
|
|
238
|
+
padding: 5px 15px 5px 25px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
> li > a {
|
|
242
|
+
line-height: $line-height-computed;
|
|
243
|
+
|
|
244
|
+
&:hover,
|
|
245
|
+
&:focus {
|
|
246
|
+
background-image: none;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Uncollapse the nav
|
|
253
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
254
|
+
float: left;
|
|
255
|
+
margin: 0;
|
|
256
|
+
|
|
257
|
+
> li {
|
|
258
|
+
float: left;
|
|
259
|
+
|
|
260
|
+
> a {
|
|
261
|
+
padding-top: $navbar-padding-vertical;
|
|
262
|
+
padding-bottom: $navbar-padding-vertical;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// Navbar form
|
|
269
|
+
//
|
|
270
|
+
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
|
271
|
+
// our navbars.
|
|
272
|
+
.navbar-form {
|
|
273
|
+
padding: 10px $navbar-padding-horizontal;
|
|
274
|
+
margin-right: -$navbar-padding-horizontal;
|
|
275
|
+
margin-left: -$navbar-padding-horizontal;
|
|
276
|
+
border-top: 1px solid transparent;
|
|
277
|
+
border-bottom: 1px solid transparent;
|
|
278
|
+
$shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
|
279
|
+
0 1px 0 rgba(255, 255, 255, 0.1);
|
|
280
|
+
@include box-shadow($shadow);
|
|
281
|
+
|
|
282
|
+
// Mixin behavior for optimum display
|
|
283
|
+
// @include form-inline;
|
|
284
|
+
.form-group {
|
|
285
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
|
286
|
+
margin-bottom: 5px;
|
|
287
|
+
|
|
288
|
+
&:last-child {
|
|
289
|
+
margin-bottom: 0;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// Vertically center in expanded, horizontal navbar
|
|
295
|
+
@include navbar-vertical-align($input-height-base);
|
|
296
|
+
|
|
297
|
+
// Undo 100% width for pull classes
|
|
298
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
299
|
+
width: auto;
|
|
300
|
+
padding-top: 0;
|
|
301
|
+
padding-bottom: 0;
|
|
302
|
+
margin-right: 0;
|
|
303
|
+
margin-left: 0;
|
|
304
|
+
border: 0;
|
|
305
|
+
@include box-shadow(none);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Dropdown menus
|
|
310
|
+
// Buttons in navbars
|
|
311
|
+
//
|
|
312
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
|
313
|
+
.navbar-btn {
|
|
314
|
+
@include navbar-vertical-align($input-height-base);
|
|
315
|
+
|
|
316
|
+
&.btn-sm {
|
|
317
|
+
@include navbar-vertical-align($input-height-small);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&.btn-xs {
|
|
321
|
+
@include navbar-vertical-align(22);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// Text in navbars
|
|
326
|
+
//
|
|
327
|
+
// Add a class to make any element properly align itself vertically within the navbars.
|
|
328
|
+
.navbar-text {
|
|
329
|
+
@include navbar-vertical-align($line-height-computed);
|
|
330
|
+
|
|
331
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
332
|
+
float: left;
|
|
333
|
+
margin-right: $navbar-padding-horizontal;
|
|
334
|
+
margin-left: $navbar-padding-horizontal;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
// Component alignment
|
|
338
|
+
//
|
|
339
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
|
340
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
|
341
|
+
// though so that navbar contents properly stack and align in mobile.
|
|
342
|
+
//
|
|
343
|
+
// Declared after the navbar components to ensure more specificity on the margins.
|
|
344
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
345
|
+
.navbar-left {
|
|
346
|
+
float: left !important;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.navbar-right {
|
|
350
|
+
float: right !important;
|
|
351
|
+
margin-right: -$navbar-padding-horizontal;
|
|
352
|
+
|
|
353
|
+
~ .navbar-right {
|
|
354
|
+
margin-right: 0;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
// Alternate navbars
|
|
359
|
+
// --------------------------------------------------
|
|
360
|
+
|
|
361
|
+
// Default navbar
|
|
362
|
+
.navbar-default {
|
|
363
|
+
background-color: $navbar-default-bg;
|
|
364
|
+
border-color: $navbar-default-border;
|
|
365
|
+
|
|
366
|
+
.navbar-brand {
|
|
367
|
+
color: $navbar-default-brand-color;
|
|
368
|
+
|
|
369
|
+
&:hover,
|
|
370
|
+
&:focus {
|
|
371
|
+
color: $navbar-default-brand-hover-color;
|
|
372
|
+
background-color: $navbar-default-brand-hover-bg;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.navbar-text {
|
|
377
|
+
color: $navbar-default-color;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.navbar-nav {
|
|
381
|
+
> li > a {
|
|
382
|
+
color: $navbar-default-link-color;
|
|
383
|
+
|
|
384
|
+
&:hover,
|
|
385
|
+
&:focus {
|
|
386
|
+
color: $navbar-default-link-hover-color;
|
|
387
|
+
background-color: $navbar-default-link-hover-bg;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
> .active > a {
|
|
392
|
+
&,
|
|
393
|
+
&:hover,
|
|
394
|
+
&:focus {
|
|
395
|
+
color: $navbar-default-link-active-color;
|
|
396
|
+
background-color: $navbar-default-link-active-bg;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
> .disabled > a {
|
|
401
|
+
&,
|
|
402
|
+
&:hover,
|
|
403
|
+
&:focus {
|
|
404
|
+
color: $navbar-default-link-disabled-color;
|
|
405
|
+
background-color: $navbar-default-link-disabled-bg;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// Dropdown menu items
|
|
410
|
+
// Remove background color from open dropdown
|
|
411
|
+
> .open > a {
|
|
412
|
+
&,
|
|
413
|
+
&:hover,
|
|
414
|
+
&:focus {
|
|
415
|
+
color: $navbar-default-link-active-color;
|
|
416
|
+
background-color: $navbar-default-link-active-bg;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
|
421
|
+
// Dropdowns get custom display when collapsed
|
|
422
|
+
.open .dropdown-menu {
|
|
423
|
+
> li > a {
|
|
424
|
+
color: $navbar-default-link-color;
|
|
425
|
+
|
|
426
|
+
&:hover,
|
|
427
|
+
&:focus {
|
|
428
|
+
color: $navbar-default-link-hover-color;
|
|
429
|
+
background-color: $navbar-default-link-hover-bg;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
> .active > a {
|
|
434
|
+
&,
|
|
435
|
+
&:hover,
|
|
436
|
+
&:focus {
|
|
437
|
+
color: $navbar-default-link-active-color;
|
|
438
|
+
background-color: $navbar-default-link-active-bg;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
> .disabled > a {
|
|
443
|
+
&,
|
|
444
|
+
&:hover,
|
|
445
|
+
&:focus {
|
|
446
|
+
color: $navbar-default-link-disabled-color;
|
|
447
|
+
background-color: $navbar-default-link-disabled-bg;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.navbar-toggle {
|
|
455
|
+
border-color: $navbar-default-toggle-border-color;
|
|
456
|
+
|
|
457
|
+
&:hover,
|
|
458
|
+
&:focus {
|
|
459
|
+
background-color: $navbar-default-toggle-hover-bg;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.icon-bar {
|
|
463
|
+
background-color: $navbar-default-toggle-icon-bar-bg;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.navbar-collapse,
|
|
468
|
+
.navbar-form {
|
|
469
|
+
border-color: $navbar-default-border;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Links in navbars
|
|
473
|
+
//
|
|
474
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
475
|
+
.navbar-link {
|
|
476
|
+
color: $navbar-default-link-color;
|
|
477
|
+
|
|
478
|
+
&:hover {
|
|
479
|
+
color: $navbar-default-link-hover-color;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.btn-link {
|
|
484
|
+
color: $navbar-default-link-color;
|
|
485
|
+
|
|
486
|
+
&:hover,
|
|
487
|
+
&:focus {
|
|
488
|
+
color: $navbar-default-link-hover-color;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
&[disabled],
|
|
492
|
+
fieldset[disabled] & {
|
|
493
|
+
&:hover,
|
|
494
|
+
&:focus {
|
|
495
|
+
color: $navbar-default-link-disabled-color;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// Inverse navbar
|
|
502
|
+
.navbar-inverse {
|
|
503
|
+
background-color: $navbar-inverse-bg;
|
|
504
|
+
border-color: $navbar-inverse-border;
|
|
505
|
+
|
|
506
|
+
.navbar-brand {
|
|
507
|
+
color: $navbar-inverse-brand-color;
|
|
508
|
+
|
|
509
|
+
&:hover,
|
|
510
|
+
&:focus {
|
|
511
|
+
color: $navbar-inverse-brand-hover-color;
|
|
512
|
+
background-color: $navbar-inverse-brand-hover-bg;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.navbar-text {
|
|
517
|
+
color: $navbar-inverse-color;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.navbar-nav {
|
|
521
|
+
> li > a {
|
|
522
|
+
color: $navbar-inverse-link-color;
|
|
523
|
+
|
|
524
|
+
&:hover,
|
|
525
|
+
&:focus {
|
|
526
|
+
color: $navbar-inverse-link-hover-color;
|
|
527
|
+
background-color: $navbar-inverse-link-hover-bg;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
> .active > a {
|
|
532
|
+
&,
|
|
533
|
+
&:hover,
|
|
534
|
+
&:focus {
|
|
535
|
+
color: $navbar-inverse-link-active-color;
|
|
536
|
+
background-color: $navbar-inverse-link-active-bg;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
> .disabled > a {
|
|
541
|
+
&,
|
|
542
|
+
&:hover,
|
|
543
|
+
&:focus {
|
|
544
|
+
color: $navbar-inverse-link-disabled-color;
|
|
545
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// Dropdowns
|
|
550
|
+
> .open > a {
|
|
551
|
+
&,
|
|
552
|
+
&:hover,
|
|
553
|
+
&:focus {
|
|
554
|
+
color: $navbar-inverse-link-active-color;
|
|
555
|
+
background-color: $navbar-inverse-link-active-bg;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
|
560
|
+
// Dropdowns get custom display
|
|
561
|
+
.open .dropdown-menu {
|
|
562
|
+
> .dropdown-header {
|
|
563
|
+
border-color: $navbar-inverse-border;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.divider {
|
|
567
|
+
background-color: $navbar-inverse-border;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
> li > a {
|
|
571
|
+
color: $navbar-inverse-link-color;
|
|
572
|
+
|
|
573
|
+
&:hover,
|
|
574
|
+
&:focus {
|
|
575
|
+
color: $navbar-inverse-link-hover-color;
|
|
576
|
+
background-color: $navbar-inverse-link-hover-bg;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
> .active > a {
|
|
581
|
+
&,
|
|
582
|
+
&:hover,
|
|
583
|
+
&:focus {
|
|
584
|
+
color: $navbar-inverse-link-active-color;
|
|
585
|
+
background-color: $navbar-inverse-link-active-bg;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
> .disabled > a {
|
|
590
|
+
&,
|
|
591
|
+
&:hover,
|
|
592
|
+
&:focus {
|
|
593
|
+
color: $navbar-inverse-link-disabled-color;
|
|
594
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// Darken the responsive nav toggle
|
|
602
|
+
.navbar-toggle {
|
|
603
|
+
border-color: $navbar-inverse-toggle-border-color;
|
|
604
|
+
|
|
605
|
+
&:hover,
|
|
606
|
+
&:focus {
|
|
607
|
+
background-color: $navbar-inverse-toggle-hover-bg;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.icon-bar {
|
|
611
|
+
background-color: $navbar-inverse-toggle-icon-bar-bg;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.navbar-collapse,
|
|
616
|
+
.navbar-form {
|
|
617
|
+
border-color: darken($navbar-inverse-bg, 7%);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.navbar-link {
|
|
621
|
+
color: $navbar-inverse-link-color;
|
|
622
|
+
|
|
623
|
+
&:hover {
|
|
624
|
+
color: $navbar-inverse-link-hover-color;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.btn-link {
|
|
629
|
+
color: $navbar-inverse-link-color;
|
|
630
|
+
|
|
631
|
+
&:hover,
|
|
632
|
+
&:focus {
|
|
633
|
+
color: $navbar-inverse-link-hover-color;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
&[disabled],
|
|
637
|
+
fieldset[disabled] & {
|
|
638
|
+
&:hover,
|
|
639
|
+
&:focus {
|
|
640
|
+
color: $navbar-inverse-link-disabled-color;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|