-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhidden-push.html
320 lines (304 loc) · 14.4 KB
/
hidden-push.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Dash, responsive bootstrap dashboard navbar">
<meta name="keywords" content="HTML, CSS, JS, JavaScript, dashboard, bootstrap, front-end, frontend, web development, normal, navbar">
<meta name="author" content="CodBits">
<title>Dash · Responsive Bootstrap Dashboard Hidden Push Navbar</title>
<!-- Bootstrap core and other CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/dash.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elemdnts and media queries -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<!-- Favicon -->
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="icon" href="/favicon.ico">
</head>
<body>
<!-- Dash Navbar Top
Available versions: dnl-visible, dnl-hidden -->
<nav class="navbar navbar-static-top dash-navbar-top dnl-hidden">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#dnt-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="fa fa-ellipsis-v"></span>
</button>
<button class="dnl-btn-toggle">
<span class="fa fa-bars"></span>
</button>
<a class="navbar-brand" href="#">DASH <span>beta</span></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="dnt-collapse">
<!-- This dropdown is for avatar -->
<ul class="nav navbar-nav navbar-right navbar-avatar">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><img src="img/avatar.jpg" class="dnt-avatar" alt="Reardestani avatar"></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Standard <span>go pro</span></a></li>
<li><a href="#">Upload</a></li>
<li class="active"><a href="#">Active link</a></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right dnt-navbar-form" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn"><span class="fa fa-search"></span></button>
</form>
<!-- This dropdown is for normal links -->
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Support</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="fa fa-angle-down"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Link 1 <span>LOL</span></a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav> <!-- /.navbar -->
<!-- Dash Navbar Left
Available versions: dnl-visible, dnl-hidden -->
<div class="dash-navbar-left dnl-hidden">
<p class="dnl-nav-title">Home</p>
<ul class="dnl-nav">
<li>
<a class="collapsed" data-toggle="collapse" href="#collapseStatistics" aria-expanded="false" aria-controls="collapseStatistics">
<span class="glyphicon glyphicon-stats dnl-link-icon"></span>
<span class="dnl-link-text">Statistics</span>
<span class="fa fa-angle-up dnl-btn-sub-collapse"></span>
</a>
<!-- Dropdown level one -->
<ul class="dnl-sub-one collapse" id="collapseStatistics">
<li>
<a href="#">
<span class="fa fa-clock-o dnl-link-icon"></span>
<span class="dnl-link-text">Daily</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-history dnl-link-icon"></span>
<span class="dnl-link-text">Annual</span>
</a>
</li>
</ul>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-folder-open dnl-link-icon"></span>
<span class="dnl-link-text">Pages</span>
</a>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-comment dnl-link-icon"></span>
<span class="dnl-link-text">Comments</span>
<span class="badge">4</span>
</a>
</li>
<li>
<a class="collapsed" data-toggle="collapse" href="#collapseLevelOne" aria-expanded="false" aria-controls="collapseLevelOne">
<span class="fa fa-sort-amount-desc dnl-link-icon"></span>
<span class="dnl-link-text">Dropdown level 1</span>
<span class="fa fa-angle-up dnl-btn-sub-collapse"></span>
</a>
<!-- Dropdown level one -->
<ul class="dnl-sub-one collapse" id="collapseLevelOne">
<li>
<a href="#">
<span class="fa fa-slack dnl-link-icon"></span>
<span class="dnl-link-text">Level 1</span>
</a>
</li>
<li>
<a class="collapsed" data-toggle="collapse" href="#collapseLevelTwo" aria-expanded="false" aria-controls="collapseLevelTwo">
<span class="fa fa-level-down dnl-link-icon"></span>
<span class="dnl-link-text">Dropdown level 2</span>
<span class="fa fa-angle-up dnl-btn-sub-collapse"></span>
</a>
<!-- Dropdown level two -->
<ul class="dnl-sub-two collapse" id="collapseLevelTwo">
<li>
<a href="#">
<span class="fa fa-wifi dnl-link-icon"></span>
<span class="dnl-link-text">Level 2</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-wifi dnl-link-icon"></span>
<span class="dnl-link-text">Level 2</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-wifi dnl-link-icon"></span>
<span class="dnl-link-text">Level 2</span>
</a>
</li>
</ul>
</li>
<li>
<a href="#">
<span class="fa fa-slack dnl-link-icon"></span>
<span class="dnl-link-text">Level 1</span>
</a>
</li>
</ul>
</li>
</ul>
<p class="dnl-nav-title">Filter</p>
<ul class="dnl-nav">
<li>
<a href="#">
<span class="fa fa-image dnl-link-icon"></span>
<span class="dnl-link-text">Image</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-video-camera dnl-link-icon"></span>
<span class="dnl-link-text">Video</span>
</a>
</li>
<li>
<a href="#">
<span class="glyphicon glyphicon-folder-open dnl-link-icon"></span>
<span class="dnl-link-text">Audio</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-file-text dnl-link-icon"></span>
<span class="dnl-link-text">File</span>
<span class="badge">4</span>
</a>
</li>
<li class="active">
<a href="#">
<span class="fa fa-link dnl-link-icon"></span>
<span class="dnl-link-text">Active link</span>
</a>
</li>
</ul>
<p class="dnl-nav-title">Category</p>
<ul class="dnl-nav">
<li>
<a class="collapsed" data-toggle="collapse" href="#collapseCategoryAll" aria-expanded="false" aria-controls="collapseCategoryAll">
<span class="glyphicon glyphicon-tags dnl-link-icon"></span>
<span class="dnl-link-text">All</span>
<span class="fa fa-angle-up dnl-btn-sub-collapse"></span>
</a>
<!-- Dropdown level one -->
<ul class="dnl-sub-one collapse" id="collapseCategoryAll">
<li>
<a href="#">
<span class="fa fa-dot-circle-o dnl-link-icon"></span>
<span class="dnl-link-text">UI</span>
<span class="badge">4</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-dot-circle-o dnl-link-icon"></span>
<span class="dnl-link-text">Design</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-dot-circle-o dnl-link-icon"></span>
<span class="dnl-link-text">App</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-dot-circle-o dnl-link-icon"></span>
<span class="dnl-link-text">Homepage</span>
</a>
</li>
</ul>
</li>
<li>
<a href="#">
<span class="fa fa-dot-circle-o dnl-link-icon"></span>
<span class="dnl-link-text">Popular</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-dot-circle-o dnl-link-icon"></span>
<span class="dnl-link-text">Handpicked</span>
</a>
</li>
</ul>
</div> <!-- /.dash-navbar-left -->
<!-- Enter your page content below here
Available navbar effects: dnl-push, dnl-overlay
Available navbar versions: dnl-visible, dnl-hidden
Available content effects: content-opacity -->
<div class="content-wrap dnl-hidden" data-effect="dnl-push">
<div class="container-fluid">
<h2 class="page-header">Read me carefully</h2>
<p class="lead">This is one of the two versions of "Dash navbar" called <em>hidden</em>. There is a key difference between these versions. <a href="../index.html">Back to all demos</a></p>
<p>This one is hidden on all devices and you can only open the left navbar by click on the toggle button or swipe.</p>
<br>
<h4><span class="label label-info">Tip</span> How these versions works:</h4>
<p>These two versions have the same HTML structure with some diffrent classes. For example for this page <code>hidden-push.html</code> there is a class <code>dnl-hidden</code> on
<br><code><nav class="navbar navbar-static-top dash-navbar-top <strong>dnl-hidden</strong>"></code>,
<br><code><div class="dash-navbar-left <strong>dnl-hidden</strong>"></code> and
<br><code><div class="content-wrap <strong>dnl-hidden</strong>" data-effect="dnl-push"></code>.
<br> If you like the other version (visible), simply replace <code>dnl-hidden</code> with <code>dnl-visible</code> for all three tags.</p>
<hr>
<h3 class="page-header">Available skins</h3>
<p>There are two skins at the moment.</p>
<button type="button" class="btn btn-primary btn-dark">Dark</button>
<button type="button" class="btn btn-primary btn-light">Light</button>
<br><br>
<h4><span class="label label-info">Tip</span> How to choose skins:</h4>
<p>The default skin is dark, so if you like the dark skin, you do not need to change anything. If not change <br><code><link href="css/<strong>dash</strong>.css" rel="stylesheet"></code> to <code><link href="css/<strong>dash-light</strong>.css" rel="stylesheet"></code> <br>in this page <code>head</code> section.</p>
<br>
<h4><span class="label label-info">Tip</span> How to create my very own skin:</h4>
<p>If you like to create a new skin, you should use LESS. Simply open the <code>variables-light.less</code> or <code>variables-dark.less</code> in LESS folder, there are tons of varibales to change, and change the variables, then compile it to CSS (e.g. dash-green.css) and add it to page as mentioned above.</p>
<hr>
<h3 class="page-header">Available left navbar effects</h3>
<p>There are two effects when the left navbar toggles. Click the below buttons to see the different effects.</p>
<a href="hidden-push.html" class="btn btn-primary active">Push</a>
<a href="hidden-overlay.html" class="btn btn-primary">Overlay</a>
<br><br>
<h4><span class="label label-info">Tip</span> How to set up one of these effects:</h4>
<p>First choose the effect that you like and then open <code>hidden-push.html</code> in your text editer and find <code><div class="content-wrap" data-effect="<strong>dnl-push</strong>"></code>. <br>Do you see <code>dnl-push</code>? The default effect is <code>push (dnl-push)</code>. Now you can change <code>dnl-push</code> to one of these <code>dnl-overlay</code></p>
<hr>
<h3 class="page-header">Available content effects</h3>
<p>There is only one effect for content when the left navbar toggles. It is called "Opacity".</p>
<h4><span class="label label-info">Tip</span> How to set up opacity effect:</h4>
<p>Simply find <code><div class="content-wrap"></code> and add <code>content-opacity</code> class to it. It works for both push and overlay effects.</p>
<hr>
</div>
</div> <!-- /.content-wrap -->
<!-- Le javaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.touchSwipe.min.js"></script>
<script src="js/dash.js"></script>
<script src="js/demo.js"></script>
</body>
</html>