Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed euiScrollBar #989

Merged
merged 3 commits into from
Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 3 additions & 30 deletions src-docs/src/components/guide_components.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,8 @@
@import '../../src/global_styling/mixins/_helpers.scss';

$guideSideNavWidth: 240px;
$guideZLevelHighest: $euiZLevel9 + 1000;

@mixin whenNarrowerThan($browserWidth) {
@media only screen and (max-width: #{$browserWidth}) {
@content;
}
}

@mixin whenWiderThan($browserWidth) {
@media only screen and (min-width: #{$browserWidth}) {
@content;
}
}

@mixin scrollbar($color: rgba(#454D58, 0.4)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also removed extraneous and unused mixins from docs.

&::-webkit-scrollbar {
width: 16px;
height: 16px;
}

&::-webkit-scrollbar-thumb {
background-color: $color;
border: 6px solid transparent;
background-clip: content-box;
}

&::-webkit-scrollbar-track {
background-color: transparent;
}
}

.guideBody {
background: linear-gradient(90deg, $euiColorLightestShade 50%, $euiColorEmptyShade 50%);
}
Expand Down Expand Up @@ -60,7 +33,7 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
position: absolute;
bottom: 0;
top: 132px;
@include scrollbar;
@include euiScrollBar;
overflow-y: auto;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/global_styling/mixins/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
background-clip: content-box;
}

&::-webkit-scrollbar-corner,
&::-webkit-scrollbar-track {
background-color: transparent;
}
Expand Down