Skip to content

Commit

Permalink
FIX: On windows, overflow scroll always shows scrollbar which is hide…
Browse files Browse the repository at this point in the history
…ous, `auto` must be used to be hidden when not needed.
  • Loading branch information
eek committed Nov 30, 2017
1 parent d807116 commit 508f10e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
font-size: 14px;
line-height: normal;
color: rgba(0,0,0,0.62);
overflow-x: scroll;
overflow-x: auto;
}
.highlight .editor {
font-family: $code-font;
Expand Down
4 changes: 2 additions & 2 deletions src/sweetalert.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
right: 0;
text-align: center;
font-size: 0; /* Remove gap between inline-block elements */
overflow-y: scroll;
overflow-y: auto;

background-color: rgba(0, 0, 0, 0.4);
z-index: 10000;
Expand All @@ -31,7 +31,7 @@
}

&--show-modal {
opacity: 1;
opacity: 1;
pointer-events: auto;

& .swal-modal {
Expand Down

0 comments on commit 508f10e

Please sign in to comment.