forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappbar.html
More file actions
734 lines (672 loc) · 41.8 KB
/
appbar.html
File metadata and controls
734 lines (672 loc) · 41.8 KB
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Metro, a sleek, intuitive, and powerful framework for faster and easier web development for Windows Metro Style.">
<meta name="keywords" content="HTML, CSS, JS, JavaScript, framework, metro, front-end, frontend, web development">
<meta name="author" content="Sergey Pimenov and Metro UI CSS contributors">
<link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
<title>Appbar :: Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro Style</title>
<link href="css/metro.css" rel="stylesheet">
<link href="css/metro-icons.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/metro.js"></script>
<script src="js/docs.js"></script>
<script src="js/prettify/run_prettify.js"></script>
<script src="js/ga.js"></script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body onload="init()">
<div class="container page-content">
<h1><a href="index.html" class="nav-button transform"><span></span></a> Appbar</h1>
@@adsense
<div class="padding10 bg-lighterBlue fg-white margin10 no-margin-right no-margin-left align-center">
Special thanks to <a href="http://xiphe.com" class="text-accent text-bold fg-white">Daniel Milbrandt</a> for adding flexible to appbar.
</div>
<div class="example" data-text="example">
<div class="app-bar" data-role="appbar">
<a class="app-bar-element branding">Metro UI CSS</a>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li>
<a href="" class="dropdown-toggle">Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Windows 10</a></li>
<li><a href="">Spartan</a></li>
<li><a href="">Outlook</a></li>
<li><a href="">Office 2015</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">Other Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Internet Explorer 10</a></li>
<li><a href="">Skype</a></li>
<li><a href="">Surface</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="">Support</a></li>
<li><a href="">Help</a></li>
</ul>
</div>
</div>
<h3>Appbar container</h3>
<div class="example" data-text="code">
<h5>Create appbar container</h5>
<pre class="prettyprint linenums"><code>
<div class="app-bar">
...
</div>
</code></pre>
</div>
<h3>Appbar elements</h3>
<p>
To create app-bar elements you can use next classes: for single element <span class="tag">.app-bar-element</span>, for multi (menu) <span class="tag">app-bar-menu</span>, for divider <span class="tag">app-bar-divider</span>
</p>
<div class="example" data-text="code">
<h5>Create app-bar elements</h5>
<pre class="prettyprint linenums"><code>
<div class="app-bar">
<a class="app-bar-element" href="...">Home</a>
<span class="app-bar-divider"></span>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li>
<a href="" class="dropdown-toggle">Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Windows 10</a></li>
<li><a href="">Spartan</a></li>
<li><a href="">Outlook</a></li>
<li><a href="">Office 2015</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">Other Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Internet Explorer 10</a></li>
<li><a href="">Skype</a></li>
<li><a href="">Surface</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="">Support</a></li>
<li><a href="">Help</a></li>
</ul>
</div>
</code></pre>
</div>
<h3>Flexible Appbar</h3>
<div class="example" data-text="example">
Default styled
<div class="app-bar" data-role="appbar">
<a class="app-bar-element branding">Metro UI CSS</a>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li data-flexorder="2"><a href="">Unimportant</a></li>
<li data-flexorder="1"><a href="">Important</a></li>
<li>
<a href="" class="dropdown-toggle">Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Windows 10</a></li>
<li><a href="">Spartan</a></li>
<li><a href="">Outlook</a></li>
<li><a href="">Office 2015</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">Other Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Internet Explorer 10</a></li>
<li><a href="">Skype</a></li>
<li><a href="">Surface</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="app-bar-pullbutton automatic"></div>
<ul class="app-bar-menu place-right" data-flexdirection="reverse">
<li>
<div class="input-control text">
<input type="text" placeholder="Search...">
</div>
</li>
<li><a href=""><span class="mif-phone icon"></span>Call</a></li>
<li><a href=""><span class="mif-cart icon"></span> Cart(0)</a></li>
</ul>
</div>
</div>
<div class="example" data-text="example">
Custom Styled
<div class="app-bar" data-role="appbar" data-flexstyle="sidebar2">
<a class="app-bar-element branding">Metro UI CSS</a>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li data-flexorder="2"><a href="">Unimportant</a></li>
<li data-flexorder="1"><a href="">Important</a></li>
<li>
<a href="" class="dropdown-toggle">Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Windows 10</a></li>
<li><a href="">Spartan</a></li>
<li><a href="">Outlook</a></li>
<li><a href="">Office 2015</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">Other Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Internet Explorer 10</a></li>
<li><a href="">Skype</a></li>
<li><a href="">Surface</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="app-bar-pullbutton automatic"></div>
<ul class="app-bar-menu place-right" data-flexdirection="reverse">
<li>
<div class="input-control text">
<input type="text" placeholder="Search...">
</div>
</li>
<li><a href=""><span class="mif-phone icon"></span>Call</a></li>
<li><a href=""><span class="mif-cart icon"></span> Cart(0)</a></li>
</ul>
</div>
</div>
<p>
The appbar comes with configurable full featured flexible menu support by default. Add <span class="tag">data-role="appbar"</span> to activate this. The elements which should be collapsed must be in a menu with <span class="tag">app-bar-menu</span> class.
</p>
<div class="example" data-text="code">
<h5>Create appbar with flexible menu support.</h5>
<pre class="prettyprint linenums"><code>
<div class="app-bar" data-role="appbar">
<a class="app-bar-element" href="...">Home</a>
<span class="app-bar-divider"></span>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li><a href="">Support</a></li>
<li><a href="">Help</a></li>
...very long list here ...
</ul>
</div>
</code></pre>
</div>
<h3>Features</h3>
<table class="table bordered border">
<thead>
<tr>
<td>Feature</td>
<td>Description</td>
<td>Code</td>
</tr>
</thead>
<tbody>
<tr>
<td>Fully Automated</td>
<td>
Use <span class="tag">data-role="appbar"</span>. The Appbar creates a pull down button on the right side if the menu entries do not fit into the bar.
The Appbar refreshes automatically, if the user resize the window, or extern content like images are loaded into the appbar. If you have problems with the pullbutton which is created, see Custom Pull Button section.
</td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar">
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
...
</ul>
</div>
</code></pre>
</td>
</tr>
<tr>
<td>Disable</td>
<td>Use the <span class="tag">no-flexible</span> class to deactivate the flexible behavior. You can deactivate whole menus or picked menu entries. They will stay always. Even the whole appbar container can be marked as no-flexible.
</td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar">
<ul class="app-bar-menu">
<li>...</li>
<li class="no-flexible">...</li>
<li>...</li>
</ul>
<ul class="app-bar-menu no-flexible">
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
</div>
</code></pre>
</td>
</tr>
<tr>
<td>Custom Pull Button<br /> Righter placement.</td>
<td>An appbar creates only a pull button if there is no one. It is floated right, and placed as last element. so if you have already a important element placed there with <span class="tag">place-right</span> it does not struggle with it. Otherwise it is placed right as possible. However, if you have placed a app-bar-menu right, you wish the pull button even righter. Because it is both floated you have to create the automatic button manually before all right placed menus.</td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar">
<ul class="app-bar-menu">
...
</ul>
<div class="app-bar-pullbutton automatic"></div>
<ul class="app-bar-menu place-right">
...
</ul>
</div>
</code></pre>
</td>
</tr>
<tr>
<td>Custom Pull Button<br /> Own Style</td>
<td>Create your own styled button with <span class="tag"><div class="app-bar-pullbutton"></span></td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar">
<ul class="app-bar-menu">
...
</ul>
<div class="app-bar-pullbutton">
More
<span class="mif-plus"></span>
</div>
</div>
</code></pre>
</td>
</tr>
<tr>
<td>Clean Layout</td>
<td>You can give <span class="tag">data-flexclean="true"</span> to the appbar, which will collapse all menu entries into the flexible menu. If you want to make an exception for one or two elements use the <span class="tag">no-flexible</span> class for these elements.</td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar" data-flexclean="true">
<ul class="app-bar-menu">
<li>Link</li>
<li>Link2</li>
<li class="no-flexible">Help</li>
</ul>
</div>
</code></pre>
</td>
</tr>
<tr>
<td>Order</td>
<td><span class="tag">data-flexorder="3"</span>, <span class="tag">data-flexdirection="reverse"</span>Usually the elements disappear in the order found in the dom. Usually the right, will go first. You can overwrite this by using the data-flexorder attribute. The lower the value of the flexorder attribute is the later is it sorted into the flex menu. You can use this with the <span class="tag">app-bar-menu</span> and with its containing children in a cascading way. For <span class="tag">app-bar-menu</span> there is also the <span class="tag">data-flexdirection</span> attribute to reverse the order. Than the smaller the value is the earlies disappears. If no data-flexorder attribute is given, element's dom index + 1 is assigned by default. So there is no need to give them all an order if only a few of them need a special one. The following example is configured so: The Entry with 3.1 disappear first, because 3.x has a reversed order. 2.1 and 2.3 will stay always because they have a no-flexible class. After that you can see that 1.1 moves because it has a greater flexorder than 1.2 which has is own index + 1 as flexorder. Resize the window to see an effect. You can zoom in if the window can not become smaller.</td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar">
<ul class="app-bar-menu">
<li data-flexorder="5">1</li>
<li>2</li>
<li data-flexorder="1">3</li>
</ul>
<ul class="app-bar-menu" data-flexorder="5">
<li class="no-flexible">1</li>
<li>2</li>
<li class="no-flexible">3</li>
</ul>
<ul class="app-bar-menu" data-flexdirection="reverse">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</div>
</code></pre>
</td>
</tr>
</tbody>
</table>
<td colspan="3">
<div class="example" data-text="example">
<div class="app-bar" data-role="appbar">
<a class="app-bar-element branding">000</a>
<ul class="app-bar-menu">
<li data-flexorder="5"><a href="" data-flexorder="3">1.1</a></li>
<li>
<a href="" class="dropdown-toggle">1.2</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">1.2.1</a></li>
<li><a href="">1.2.2</a></li>
<li><a href="">1.2.3</a></li>
<li><a href="">1.2.4</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">1.2.5</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">1.2.5.1</a></li>
<li><a href="">1.2.5.2</a></li>
<li><a href="">1.2.5.3</a></li>
</ul>
</li>
</ul>
</li>
<li data-flexorder="3"><a href="" data-flexorder="3">1.3</a></li>
<li><a href="" data-flexorder="6">1.4</a></li>
</ul>
<ul class="app-bar-menu">
<li class="no-flexible"><a href="">2.1</a></li>
<li>
<a href="" class="dropdown-toggle">2.2</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">2.2.1</a></li>
<li><a href="">2.2.2</a></li>
<li><a href="">2.2.3</a></li>
<li><a href="">2.2.4</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">2.2.4.1</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">2.2.4.2</a></li>
<li><a href="">2.2.4.3</a></li>
<li><a href="">2.2.4.4</a></li>
</ul>
</li>
</ul>
</li>
<li class="no-flexible"><a href="">2.3</a></li>
<li class=""><a href="">2.4</a></li>
</ul>
<ul class="app-bar-menu" data-flexdirection="reverse">
<li><a href="">3.1</a></li>
<li>
<a href="" class="dropdown-toggle">3.2</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">3.2.1</a></li>
<li><a href="">3.2.2</a></li>
<li><a href="">3.2.3</a></li>
<li><a href="">3.2.4</a></li>
</ul>
</li>
<li><a href="">3.3</a></li>
<li class=""><a href="">3.4</a></li>
</ul>
</div>
</div>
<table class="table bordered border">
<thead>
</thead>
<tbody>
<tr>
<td>Own Style for Flex Menu</td>
<td><span class="tag">data-flexstyle="YOUR_OWN_CLASS"</span> e.g.<span class="tag">data-flexstyle="sidebar2"</span>The flex menu creates a menu with the app-bar-menu style class. You can overwrite this behaviour and give your own class with the data-flexstyle attribute. "sidebar2" is an option you can use out of the box. <span class="tag">data-flexstyle="app-bar-menu YOUR_CLASS"</span> can be used if you want only little changes. The order example shows the default app-bar-menu, the introduction example is made with the sidebar2 style.</td>
<td>
<pre class="prettyprint linenums"><code>
<div class="appbar" data-role="appbar" data-flexstyle="sidebar2">
...
</code></pre>
</td>
</tr>
</tbody>
</table>
<div class="example" data-text="code">
<h5>Create app-bar elements</h5>
<pre class="prettyprint linenums"><code>
<div class="app-bar" data-role="appbar">
<a class="app-bar-element" href="...">Home</a>
<span class="app-bar-divider"></span>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li><a href="">Support</a></li>
<li><a href="">Help</a></li>
</ul>
<span class="app-bar-pullbutton"></span>
</div>
</code></pre>
</div>
<h4>Drop container</h4>
<p>
To create appbar drop container you can put inside <span class="tag">app-bar-element</span> <strong>toggle</strong> and <strong>container</strong>. Container can has class <span class="tag">app-bar-drop-container</span>.
</p>
<div class="example" data-text="example">
<div class="app-bar">
<a class="app-bar-element">
<span id="toggle-tiles-dropdown" class="mif-apps mif-2x"></span>
<div class="app-bar-drop-container" data-role="dropdown" data-toggle-element="#toggle-tiles-dropdown" data-no-close="false" style="width: 324px;">
<div class="tile-container bg-white">
<div class="tile-small bg-cyan">
<div class="tile-content iconic">
<span class="icon mif-onedrive"></span>
</div>
</div>
<div class="tile-small bg-yellow">
<div class="tile-content iconic">
<span class="icon mif-google"></span>
</div>
</div>
<div class="tile-small bg-red">
<div class="tile-content iconic">
<span class="icon mif-facebook"></span>
</div>
</div>
<div class="tile-small bg-green">
<div class="tile-content iconic">
<span class="icon mif-twitter"></span>
</div>
</div>
</div>
</div>
</a>
<div class="app-bar-divider"></div>
<div class="app-bar-element place-right">
<a class="dropdown-toggle fg-white"><span class="mif-enter"></span> Enter</a>
<div class="app-bar-drop-container bg-white fg-dark place-right" data-role="dropdown" data-no-close="true">
<div class="padding20">
<form>
<h4 class="text-light">Login to service...</h4>
<div class="input-control text">
<span class="mif-user prepend-icon"></span>
<input type="text">
</div>
<div class="input-control text">
<span class="mif-lock prepend-icon"></span>
<input type="password">
</div>
<label class="input-control checkbox small-check">
<input type="checkbox">
<span class="check"></span>
<span class="caption">Remember me</span>
</label>
<div class="form-actions">
<button class="button">Login</button>
<button class="button link">Cancel</button>
</div>
</form>
</div>
</div>
</div>
<div class="app-bar-divider place-right"></div>
</div>
</div>
<div class="example" data-text="code">
<h5>Drop container with tiles</h5>
<pre class="prettyprint linenums"><code>
<div class="app-bar">
<a class="app-bar-element">
<span id="toggle-tiles-dropdown" class="mif-apps mif-2x"></span>
<div class="app-bar-drop-container"
data-role="dropdown"
data-toggle-element="#toggle-tiles-dropdown"
data-no-close="false" style="width: 324px;">
<div class="tile-container bg-white">
<div class="tile-small bg-cyan">
<div class="tile-content iconic">
<span class="icon mif-onedrive"></span>
</div>
</div>
<div class="tile-small bg-yellow">
<div class="tile-content iconic">
<span class="icon mif-google"></span>
</div>
</div>
<div class="tile-small bg-red">
<div class="tile-content iconic">
<span class="icon mif-facebook"></span>
</div>
</div>
<div class="tile-small bg-green">
<div class="tile-content iconic">
<span class="icon mif-twitter"></span>
</div>
</div>
</div>
</div>
</a>
</div>
</code></pre>
<h5>Drop container with form</h5>
<pre class="prettyprint linenums"><code>
<div class="app-bar">
<div class="app-bar-element place-right">
<a class="dropdown-toggle fg-white"><span class="mif-enter"></span> Enter</a>
<div class="app-bar-drop-container bg-white fg-dark place-right"
data-role="dropdown" data-no-close="true">
<div class="padding20">
<form>
<h4 class="text-light">Login to service...</h4>
<div class="input-control text">
<span class="mif-user prepend-icon"></span>
<input type="text">
</div>
<div class="input-control text">
<span class="mif-lock prepend-icon"></span>
<input type="password">
</div>
<label class="input-control checkbox small-check">
<input type="checkbox">
<span class="check"></span>
<span class="caption">Remember me</span>
</label>
<div class="form-actions">
<button class="button">Login</button>
<button class="button link">Cancel</button>
</div>
</form>
</div>
</div>
</div>
</div>
</code></pre>
</div>
<p class="padding10 bg-grayLighter">
Drop container have additional property <span class="tag alert">data-on-close</span>. If this property is true container not closed on click on container.
</p>
<h4>Drop-up</h4>
<p>
To create appbar in drop-up mode you can add class <span class="tag">drop-up</span> to appbar.
</p>
<div class="example" data-text="example">
<div class="app-bar drop-up" data-role="appbar">
<a class="app-bar-element">
<span id="toggle-tiles-dropdown2" class="mif-apps mif-2x"></span>
<div class="app-bar-drop-container" data-role="dropdown" data-toggle-element="#toggle-tiles-dropdown2" data-no-close="false" style="width: 324px;">
<div class="tile-container bg-white">
<div class="tile-small bg-cyan">
<div class="tile-content iconic">
<span class="icon mif-onedrive"></span>
</div>
</div>
<div class="tile-small bg-yellow">
<div class="tile-content iconic">
<span class="icon mif-google"></span>
</div>
</div>
<div class="tile-small bg-red">
<div class="tile-content iconic">
<span class="icon mif-facebook"></span>
</div>
</div>
<div class="tile-small bg-green">
<div class="tile-content iconic">
<span class="icon mif-twitter"></span>
</div>
</div>
</div>
</div>
</a>
<div class="app-bar-divider"></div>
<ul class="app-bar-menu">
<li><a href="">Home</a></li>
<li>
<a href="" class="dropdown-toggle">Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Windows 10</a></li>
<li><a href="">Spartan</a></li>
<li><a href="">Outlook</a></li>
<li><a href="">Office 2015</a></li>
<li class="divider"></li>
<li><a href="" class="dropdown-toggle">Other Products</a>
<ul class="d-menu" data-role="dropdown">
<li><a href="">Internet Explorer 10</a></li>
<li><a href="">Skype</a></li>
<li><a href="">Surface</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="">Support</a></li>
<li><a href="">Help</a></li>
</ul>
<div class="app-bar-element place-right">
<a class="dropdown-toggle fg-white"><span class="mif-enter"></span> Enter</a>
<div class="app-bar-drop-container bg-white fg-dark place-right" data-role="dropdown" data-no-close="true">
<div class="padding20">
<form>
<h4 class="text-light">Login to service...</h4>
<div class="input-control text">
<span class="mif-user prepend-icon"></span>
<input type="text">
</div>
<div class="input-control text">
<span class="mif-lock prepend-icon"></span>
<input type="password">
</div>
<label class="input-control checkbox small-check">
<input type="checkbox">
<span class="check"></span>
<span class="caption">Remember me</span>
</label>
<div class="form-actions">
<button class="button">Login</button>
<button class="button link">Cancel</button>
</div>
</form>
</div>
</div>
</div>
<div class="app-bar-divider place-right"></div>
</div>
</div>
<div class="example" data-text="code">
<pre class="prettyprint linenums"><code>
<div class="app-bar drop-up">...</div>
</code></pre>
</div>
<h3>Fixed bar</h3>
<p>
You can create fixed (top or bottom) navigation bar with built in subclasses <span class="tag">.fixed-top</span>, <span class="tag">.fixed-bottom</span>. If you use fixed position for application bar you can set manually margin or padding for main content from appbar.
</p>
<div class="example" data-text="code">
<pre class="prettyprint linenums"><code>
<div class="app-bar fixed-top">...</div>
<div class="main-content" style="margin-top: 3.125rem">
...
</div>
or
<div class="main-content" style="padding-top: 3.125rem">
...
</div>
</code></pre>
</div>
<h3>Place element on right</h3>
<p>
To place appbar element on right you must add class <span class="tag">place-right</span> to element.
</p>
<div class="example" data-text="code">
<pre class="prettyprint linenums"><code>
<div class="app-bar">
<a class="app-bar-element place-right">Home</a>
</div>
</code></pre>
</div>
</div>
@@hit
</body>
</html>