forked from tapquo/Lungo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlungo.layout.nav.styl
executable file
·167 lines (146 loc) · 4.15 KB
/
lungo.layout.nav.styl
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
/**
* Stylesheet
*
* @namespace Lungo.Layout
* @class Nav
*
* @author Javier Jimenez Villar <[email protected]> || @soyjavi
*/
nav
/* ========================================================================= */
/* ================================= HEADER ================================ */
/* ========================================================================= */
header &
& a, button
position: relative
text-align: center
float: left
height: HEADER_HEIGHT
min-width: HEADER_HEIGHT
& > .icon
font-size: 1.5em
& .tag
position: absolute
top: 0.5em
right: 0.25em
height: FONT_SIZE_LARGE
line-height: FONT_SIZE_LARGE
& .loading
font-size: 1.5em
& + .icon
display: none
&[data-control=groupbar], footer &
display-box()
box-pack(justify)
width: 100%
& > a
box-flex(1)
text-decoration: none
/* ========================================================================= */
/* =============================== GROUPBAR ================================ */
/* ========================================================================= */
&[data-control=groupbar]
z-index: 2
height: HEADER_GROUPBAR_HEIGHT
width: 100%
font-size: FONT_SIZE_SMALL
line-height: HEADER_GROUPBAR_HEIGHT
& > a
padding:0
margin:0
height: HEADER_GROUPBAR_HEIGHT !important
display: block
text-align: center
& .icon, .tag
margin: 0 0.2em
line-height: inherit
/* ========================================================================= */
/* ================================= MENU ================================== */
/* ========================================================================= */
&[data-control=menu]
position: absolute
left: 0
top: 0
top: HEADER_HEIGHT
visibility: hidden
z-index: 2
width: 100%
text-align: center
transform translateY(-120%)
transition-property transform
transition-duration TRANSITION_TIME
transition-timing-function DEFAULT_TRANSITION
backface-visibility hidden
&.show
visibility: visible
transform translateY(0%)
&.icons
font-size: FONT_SIZE_TINY
& > a
width: 25%
float: left
padding: 10px 0
& > .icon
font-size: S = 32px
line-height: S
display: block
&:not(.icons)
font-size: FONT_SIZE_BIG
& > a
display: block
position: relative
padding: INDENT
& > .icon
position: absolute
left: 0.5em
top: 0.5em
font-size: FONT_SIZE_LARGE
line-height: 1.0em
/* ========================================================================= */
/* ================================ FOOTER ================================= */
/* ========================================================================= */
footer &
& a
display: block
padding: 0
height: HEADER_HEIGHT
text-align: center
& .icon
font-size: 2.0em
line-height: inherit
width: HEADER_HEIGHT
display: inline-block
& .tag
position: relative
top: SIZE = -12px
left: SIZE
margin-right: -24px
& .loading
top: 0
font-size: 1.4em
abbr
display: none
&.with-labels
& .icon
font-size: 1.8em
line-height: 1.0em
& abbr
z-index: 1
display: block !important
margin-top: -1.3em
font-size: FONT_SIZE_TINY
line-height: FONT_SIZE_TINY
overflow: hidden
white-space: nowrap
text-overflow: ellipsis
/* ========================================================================= */
/* =========================== MENU KEYFRAMES ============================== */
/* ========================================================================= */
@keyframes menuShow
0% {transform translateY(-120%)}
75% {transform translateY(8px)}
100% {transform translateY(0)}
@keyframes menuHide
0% {transform translateY(0)}
25% {transform translateY(8px)}
100% {transform translateY(-120%)}