-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMenu.html
More file actions
147 lines (131 loc) · 3.17 KB
/
Menu.html
File metadata and controls
147 lines (131 loc) · 3.17 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
{% capture TopLeftMenu %}
{{page.menu.TopLeft}}
{{site.menu.TopLeft}}
{{site.data.menu.TopLeft}}
{% endcapture %}
{% assign TopLeftMenu = TopLeftMenu | strip %}
{% capture TopRightMenu %}
{{page.menu.TopRight}}
{{site.menu.TopRight}}
{{site.data.menu.TopRight}}
{% unless site.NoGitHubLink or site.NoLink %}
{% include GitHubLink.html %}
{% endunless %}
{% endcapture %}
{% assign TopRightMenu = TopRightMenu | strip %}
{% capture TopCenterMenu %}
{{page.menu.TopCenter}}
{{site.menu.TopCenter}}
{{site.data.menu.TopCenter}}
{% endcapture %}
{% assign TopCenterMenu = TopCenterMenu | strip %}
{% capture BottomLeftMenu %}
{{page.menu.BottomLeft}}
{{site.menu.BottomLeft}}
{{site.data.menu.BottomLeft}}
{% endcapture %}
{% assign BottomLeftMenu = BottomLeftMenu | strip %}
{% capture BottomRightMenu %}
{{page.menu.BottomRight}}
{{site.menu.BottomRight}}
{{site.data.menu.BottomRight}}
{% endcapture %}
{% assign BottomRightMenu = BottomRightMenu | strip %}
{% capture BottomCenterMenu %}
{{page.menu.BottomCenter}}
{{site.menu.BottomCenter}}
{{site.data.menu.BottomCenter}}
{% endcapture %}
{% assign BottomCenterMenu = BottomCenterMenu | strip %}
{% capture LeftCenterMenu %}
{{page.menu.LeftCenter}}
{{site.menu.LeftCenter}}
{{site.data.menu.LeftCenter}}
{% endcapture %}
{% assign LeftCenterMenu = LeftCenterMenu | strip %}
{% capture RightCenterMenu %}
{{page.menu.RightCenter}}
{{site.menu.RightCenter}}
{{site.data.menu.RightCenter}}
{% endcapture %}
{% assign RightCenterMenu = RightCenterMenu | strip %}
{% if TopLeftMenu or TopRightMenu or TopCenterMenu or BottomLeftMenu or BottomRightMenu or BottomCenterMenu or LeftCenterMenu or RightCenterMenu %}
<style>
/* Menu Styles */
menu {
z-index: 100;
position: fixed;
display: float;
margin: 1em;
}
menu[class~=Left] {
left: 0;
text-align: left;
}
menu[class~=Right] {
right: 0;
text-align: right;
}
menu[class~=Top] {
top: 0;
}
menu[class~=Bottom] {
bottom: 0;
}
menu[class~=Center] {
text-align: center;
}
.Top.Center {
width: 100%;
}
.Left.Center {
height: 100%;
}
.Right.Center {
height: 100%;
}
.Bottom.Center {
width: 100%;
}
</style>
{% endif %}
{% if TopLeftMenu != "" %}
<menu class='Top Left'>
{{TopLeftMenu}}
</menu>
{% endif %}
{% if TopRightMenu != "" %}
<menu class='Top Right'>
{{TopRightMenu}}
</menu>
{% endif %}
{% if TopCenterMenu != "" %}
<menu class='Top Center'>
{{TopCenterMenu}}
</menu>
{% endif %}
{% if BottomLeftMenu != "" %}
<menu class='Bottom Left'>
{{BottomLeftMenu}}
</menu>
{% endif %}
{% if BottomRightMenu != "" %}
<menu class='Bottom Right'>
{{BottomRightMenu}}
</menu>
{% endif %}
{% if BottomCenterMenu != "" %}
<menu class='Bottom Center'>
{{BottomCenterMenu}}
</menu>
{% endif %}
{% if LeftCenterMenu != "" %}
<menu class='Left Center'>
{{LeftCenterMenu}}
</menu>
{% endif %}
{% if RightCenterMenu != "" %}
<menu class='Right Center'>
{{RightCenterMenu}}
</menu>
{% endif %}