Skip to content

Commit

Permalink
updated to 4.0.0-alpha.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Apr 22, 2019
1 parent 1f8ac11 commit fff8aba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
10 changes: 6 additions & 4 deletions css-compiled/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css-compiled/theme.min.css

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions scss/theme/_simplebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,25 @@
-webkit-overflow-scrolling: touch;
}

.simplebar-content {
.simplebar-content-wrapper {
direction: inherit;
box-sizing: border-box !important;
position: relative;
display: block;
height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
width: auto;
visibility: visible;
overflow: scroll; /* Scroll on this element otherwise element can't have a padding applied properly */
overflow: auto; /* Scroll on this element otherwise element can't have a padding applied properly */
max-width: 100%; /* Not required for horizontal scroll to trigger */
max-height: 100%; /* Needed for vertical scroll to trigger */
}

.simplebar-content:before,
.simplebar-content:after {
content: " ";
display: table;
}

.simplebar-placeholder {
max-height: 100%;
max-width: 100%;
Expand Down Expand Up @@ -108,6 +114,7 @@
right: 0;
bottom: 0;
pointer-events: none;
overflow: hidden;
}

[data-simplebar].simplebar-dragging .simplebar-track {
Expand All @@ -117,8 +124,8 @@
.simplebar-scrollbar {
position: absolute;
right: 2px;
width: 7px;
min-height: 10px;
width: 5px;
}

.simplebar-scrollbar:before {
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>

{% block bottom %}
<script src="https://unpkg.com/[email protected].3/dist/simplebar.min.js"></script>
<script src="https://unpkg.com/[email protected].4/dist/simplebar.min.js"></script>
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
Expand Down

0 comments on commit fff8aba

Please sign in to comment.