-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…104867) Adds the ability to collapse the sidenav. This should work in all solutions. It also adds breakpoints that turn it into a flyout at lower screen widths. Co-authored-by: Caroline Horn <[email protected]>
- Loading branch information
Showing
18 changed files
with
1,152 additions
and
2,379 deletions.
There are no files selected for viewing
864 changes: 130 additions & 734 deletions
864
src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
1,871 changes: 655 additions & 1,216 deletions
1,871
src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/plugins/kibana_react/public/page_template/__snapshots__/page_template.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 7 additions & 11 deletions
18
src/plugins/kibana_react/public/page_template/page_template.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
$euiSideNavEmphasizedBackgroundColor: transparentize($euiColorLightShade, .7); | ||
|
||
.kbnPageTemplate__pageSideBar { | ||
padding: $euiSizeL; | ||
background: | ||
linear-gradient(160deg, $euiSideNavEmphasizedBackgroundColor 0, $euiSideNavEmphasizedBackgroundColor $euiSizeXL, rgba(#FFF, 0) 0), | ||
linear-gradient(175deg, $euiSideNavEmphasizedBackgroundColor 0, $euiSideNavEmphasizedBackgroundColor $euiSize, rgba(#FFF, 0) 0); | ||
} | ||
overflow: hidden; | ||
|
||
@include euiCanAnimate { | ||
transition: min-width $euiAnimSpeedFast $euiAnimSlightResistance; | ||
} | ||
|
||
@include euiBreakpoint('xs','s') { | ||
.kbnPageTemplate__pageSideBar { | ||
width: auto; | ||
padding: 0; | ||
&.kbnPageTemplate__pageSideBar--shrink { | ||
min-width: $euiSizeXXL + $euiSize; | ||
} | ||
} |
Oops, something went wrong.