Skip to content

Commit

Permalink
responsive flyouts
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed Dec 21, 2017
1 parent 008a909 commit 86c5ee4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/flyout/_flyout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,20 @@ $flyoutSizes: (
transform: translateX(0%);
}
}

// On small screens we force these to takeover the screen.
@include screenSmall {
.euiFlyout {
left: 0;
width: auto;
border-left: none;
}
}

@include screenXSmall {
.euiFlyout {
left: 0;
width: auto;
border-left: none;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`EuiOverlayMask is rendered 1`] = `
<div
aria-label="aria-label"
class="euiOverlayMask testClass1 testClass2"
data-test-subj="test subject string"
/>
`;

0 comments on commit 86c5ee4

Please sign in to comment.