Skip to content

Commit 01546a5

Browse files
committed
Update CSS snippets.
1 parent 9f68846 commit 01546a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
## Features
66

7-
- Dependecy-free.
7+
- Dependency-free.
88
- Simple markup.
99
- Native scrolling.
1010
- Easy customization.
@@ -63,7 +63,7 @@ body {
6363
right: 0;
6464
z-index: 0;
6565
width: 256px;
66-
overflow-y: scroll;
66+
overflow-y: auto;
6767
-webkit-overflow-scrolling: touch;
6868
display: none;
6969
}
@@ -112,7 +112,6 @@ Then you just include Slideout.js and create a new instace with some options:
112112
<meta name="apple-mobile-web-app-capable" content="yes">
113113
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
114114
<style>
115-
html,
116115
body {
117116
width: 100%;
118117
height: 100%;
@@ -126,7 +125,7 @@ Then you just include Slideout.js and create a new instace with some options:
126125
right: 0;
127126
z-index: 0;
128127
width: 256px;
129-
overflow-y: scroll;
128+
overflow-y: auto;
130129
-webkit-overflow-scrolling: touch;
131130
display: none;
132131
}
@@ -137,7 +136,8 @@ Then you just include Slideout.js and create a new instace with some options:
137136
}
138137
139138
.slideout-open,
140-
.slideout-open body {
139+
.slideout-open body,
140+
.slideout-open .slideout-panel {
141141
overflow: hidden;
142142
}
143143

0 commit comments

Comments
 (0)