Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
teutonic-css/includes/_scrollable.scss
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (35 sloc)
908 Bytes
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
// Scrollable | |
// A wrapper for scrollable content | |
// poor mans responsive design | |
// may fit code examples | |
// overflow-x, overflow-y | |
// nowrap | |
$scrollbar-size: 8px; | |
.scroll-h, .scroll-v { | |
//-webkit-overflow-scrolling: touch; // bouncy scrolling on iOS | |
//-ms-overflow-style: -ms-autohiding-scrollbar; // hide scroller | |
} | |
.scroll-h { | |
overflow-x: scroll; | |
white-space: nowrap; | |
&.show-scrollbar { | |
&::-webkit-scrollbar { height: #{$scrollbar-size} } | |
} | |
} | |
.scroll-v { | |
overflow-y: scroll; | |
&.show-scrollbar { | |
&::-webkit-scrollbar { width: #{$scrollbar-size} } | |
} | |
} | |
// Visible scollbar for Webkit/Blink | |
.scroll-h.show-scrollbar, .scroll-v.show-scrollbar { | |
&::-webkit-scrollbar-track { | |
background: var(--color-main-5); | |
} | |
&::-webkit-scrollbar-thumb { | |
border: 2px solid var(--color-main-5); | |
border-radius: #{$scrollbar-size}; | |
background: var(--color-main-3); | |
} | |
} |