Skip to content

Instantly share code, notes, and snippets.

@davidpmccormick
Created February 28, 2017 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpmccormick/58a03c7f0fa7c0192e8f7230973507b7 to your computer and use it in GitHub Desktop.
Save davidpmccormick/58a03c7f0fa7c0192e8f7230973507b7 to your computer and use it in GitHub Desktop.
.container--scroll {
&.container--scroll-s {
@include respond-between('small', 'medium') {
max-width: none;
width: auto;
overflow: auto;
padding: 0;
}
}
&.container--scroll-m {
@include respond-between('medium', 'large') {
max-width: none;
width: auto;
overflow: auto;
padding: 0;
}
}
&.container--scroll-l {
@include respond-to('large') {
max-width: none;
width: auto;
overflow: auto;
padding: 0;
}
}
&::-webkit-scrollbar {
height: 18px;
background: color('white');
}
&::-webkit-scrollbar-thumb {
border-radius: 0;
border-style: solid;
border-color: color('white');
border-width: 0 map-get($container-padding, 'small') 12px;
background: color('cotton-seed');
@include respond-to('medium') {
border-left-width: map-get($container-padding, 'medium');
border-right-width: map-get($gutter-width, 'medium');
}
@include respond-to('large') {
border-left-width: map-get($container-padding, 'large');
border-right-width: map-get($gutter-width, 'large');
}
@include respond-to('xlarge') {
border-left-width: calc(((100vw - #{$container-width-max}) / 2) + #{map-get($container-padding, 'large')});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment