Skip to content

Commit 3214080

Browse files
Merge pull request #21 from Mango/fix-back-to-top-5
Fix back to top - #5
2 parents 0e8731c + 7c3ed9c commit 3214080

File tree

4 files changed

+49
-18
lines changed

4 files changed

+49
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ First of all, you'll need to create your markup. You should have a menu (`#menu`
5050
Add the Slideout.js styles (index.css) in your web application.
5151

5252
```css
53-
html,
5453
body {
5554
width: 100%;
5655
height: 100%;
@@ -75,7 +74,8 @@ body {
7574
}
7675

7776
.slideout-open,
78-
.slideout-open body {
77+
.slideout-open body,
78+
.slideout-open .slideout-panel {
7979
overflow: hidden;
8080
}
8181

index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
html,
21
body {
32
width: 100%;
43
height: 100%;
@@ -23,7 +22,8 @@ body {
2322
}
2423

2524
.slideout-open,
26-
.slideout-open body {
25+
.slideout-open body,
26+
.slideout-open .slideout-panel {
2727
overflow: hidden;
2828
}
2929

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"repository": "git@github.com:mango/slideout.git",
44
"description": "A touch slideout navigation menu for your mobile web apps.",
55
"author": "Guille Paz <guille87paz@gmail.com>",
6-
"version": "0.1.4",
6+
"version": "0.1.5",
77
"scripts": {
88
"build": "node browserify.js",
99
"test": "npm run build && node_modules/.bin/_mocha",

test/index.html

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,55 @@ <h3 class="menu-section-title">Docs</h3>
3434
<li><a href="https://github.com/mango/slideout#npm-scripts" target="_blank">npm-scripts</a></li>
3535
</ul>
3636
</section>
37-
</nav>
3837

39-
<main id="panel" class="panel">
38+
<section class="menu-section">
39+
<h3 class="menu-section-title">Docs</h3>
40+
<ul class="menu-section-list">
41+
<li><a href="https://github.com/mango/slideout#installation" target="_blank">Installation</a></li>
42+
<li><a href="https://github.com/mango/slideout#usage" target="_blank">Usage</a></li>
43+
<li><a href="https://github.com/mango/slideout#api" target="_blank">API</a></li>
44+
<li><a href="https://github.com/mango/slideout#npm-scripts" target="_blank">npm-scripts</a></li>
45+
</ul>
46+
</section>
4047

41-
<header class="panel-header">
42-
<button class="btn-hamburger js-slideout-toggle"></button>
43-
<h1 class="title">Slideout.js</h1>
44-
</header>
48+
<section class="menu-section">
49+
<h3 class="menu-section-title">Docs</h3>
50+
<ul class="menu-section-list">
51+
<li><a href="https://github.com/mango/slideout#installation" target="_blank">Installation</a></li>
52+
<li><a href="https://github.com/mango/slideout#usage" target="_blank">Usage</a></li>
53+
<li><a href="https://github.com/mango/slideout#api" target="_blank">API</a></li>
54+
<li><a href="https://github.com/mango/slideout#npm-scripts" target="_blank">npm-scripts</a></li>
55+
</ul>
56+
</section>
4557

46-
<section class="box">
47-
<h2 class="box-title">Test</h2>
48-
<div id="mocha" class="box-content"></div>
58+
<section class="menu-section">
59+
<h3 class="menu-section-title">Docs</h3>
60+
<ul class="menu-section-list">
61+
<li><a href="https://github.com/mango/slideout#installation" target="_blank">Installation</a></li>
62+
<li><a href="https://github.com/mango/slideout#usage" target="_blank">Usage</a></li>
63+
<li><a href="https://github.com/mango/slideout#api" target="_blank">API</a></li>
64+
<li><a href="https://github.com/mango/slideout#npm-scripts" target="_blank">npm-scripts</a></li>
65+
</ul>
4966
</section>
67+
</nav>
68+
69+
<div class="slideout-wrapper">
70+
<main id="panel" class="panel">
71+
<header class="panel-header">
72+
<button class="btn-hamburger js-slideout-toggle"></button>
73+
<h1 class="title">Slideout.js</h1>
74+
</header>
75+
76+
<section class="box">
77+
<h2 class="box-title">Test</h2>
78+
<div id="mocha" class="box-content"></div>
79+
</section>
5080

51-
<footer class="panel-footer">
52-
<p>with <span class="heart"></span> by <a href="https://getmango.com/en" target="_blank">Mango</a></p>
53-
</footer>
54-
</main>
81+
<footer class="panel-footer">
82+
<p>with <span class="heart"></span> by <a href="https://getmango.com/en" target="_blank">Mango</a></p>
83+
</footer>
84+
</main>
85+
</div>
5586

5687
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/1.13.0/mocha.min.js"></script>
5788
<script>

0 commit comments

Comments
 (0)