Skip to content
Snippets Groups Projects
Commit 1e4dee90 authored by Tom Robinson's avatar Tom Robinson
Browse files

Add a class to show scroll bars even in OS X which hides them

parent 48c989ef
No related branches found
No related tags found
No related merge requests found
.scroll-show::-webkit-scrollbar {
width: 15px;
height: 18px;
}
.scroll-show::-webkit-scrollbar-thumb {
height: 6px;
border: 4px solid transparent;
border-radius: 7px;
background-clip: padding-box;
background-color: #c2c2c2;
}
.scroll-show::-webkit-scrollbar-button {
width: 0;
height: 0;
display: none;
}
.scroll-show::-webkit-scrollbar-corner {
background-color: transparent;
}
.scroll-show:hover::-webkit-scrollbar-thumb {
background-color: #7d7d7d;
}
.scroll-show::-webkit-scrollbar-thumb:horizontal:hover,
.scroll-show::-webkit-scrollbar-thumb:vertical:hover {
background-color: #7d7d7d;
}
.scroll-show::-webkit-scrollbar-thumb:horizontal:active,
.scroll-show::-webkit-scrollbar-thumb:vertical:active {
background-color: #7d7d7d;
}
......@@ -103,7 +103,7 @@ export default class AccordianList extends Component {
</div>
: null }
{ openSection === sectionIndex ?
<ul style={{maxHeight: 400}} className="p1 border-bottom scroll-y">
<ul style={{maxHeight: 400}} className="p1 border-bottom scroll-y scroll-show">
{section.items.map((item, itemIndex) => {
return (
<li key={itemIndex} className={cx("List-item flex", { 'List-item--selected': this.itemIsSelected(item) })}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment