-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathresponsive-menu-left-dropdown.html
90 lines (77 loc) · 3.4 KB
/
responsive-menu-left-dropdown.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
<!doctype html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css" rel="stylesheet">
<link href="../assets/css/foundation.css" rel="stylesheet" />
<style>
</style>
</head>
<body>
<div class="grid-x grid-padding-x">
<div class="cell">
<div class="title-bar" data-responsive-toggle="main-menu" data-hide-for="medium">
<button class="menu-icon" type="button" data-toggle></button>
<div class="title-bar-title">Menu</div>
</div>
<div class="top-bar" id="main-menu">
<div class="top-bar-left">
<ul class="menu vertical medium-horizontal" data-responsive-menu="drilldown medium-dropdown">
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li class="has-submenu">
<a href="#">Three</a>
<ul class="submenu menu vertical" data-submenu>
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li>
<a href="#">Three</a>
<ul class="submenu menu vertical align-left" data-submenu>
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li>
<a href="#">Three</a>
<ul class="submenu menu vertical align-left" data-submenu>
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li>
<a href="#">Three</a>
<ul class="submenu menu vertical align-left" data-submenu>
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Three</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="top-bar-right">
</div>
</div>
<p>Horizontal menu on medium and up. Multiple dropdowns on the far right and left of the viewport. Drilldowns on small screens.</p>
<ul>
<li>The dropdowns should open underneath the parent element.</li>
<li>On the right side, the dropdown's right side should be aligned to the right of the parent element.</li>
<li>On the left side, the dropdown's left side should be aligned to the left of the parent element.</li>
<li>On the right side, submenu dropdowns should be aligned to left-top of the parent element and open toward the middle.</li>
<li>On the left side, submenu dropdowns should be aligned to right-top of the parent element and open toward the middle.</li>
<li>Dropdown parent element arrows should point down.</li>
<br>
<li>On mobile, the arrows to access submenu should be at the left of the dropdown.</li>
</ul>
</div>
</div>
<script src="../assets/js/vendor.js"></script>
<script src="../assets/js/foundation.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>