summaryrefslogtreecommitdiffstats
path: root/js/yui3/node-menunav/assets/node-menunav-core.css
blob: 53a4ae6d01359869ded84600565917ea41d53364 (plain)
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
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

.yui3-menu .yui3-menu {

	position: absolute;
	z-index: 1;

}


.yui3-menu .yui3-shim {

	/* 
		Styles for the <iframe> shim used to prevent <select> elements from poking through 
		submenus in IE < 7.  Note: For peformance, creation of the <iframe> shim for each submenu  
		is deferred until it is initially made visible by the user.
	*/

    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
	opacity: 0;
	filter: alpha(opacity=0);  /* For IE since it doesn't implement the CSS3 "opacity" property. */
	border: none;
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;

}

.yui3-menu-hidden {

	/*
		Position hidden menus outside the viewport boundaries to prevent them from 
		triggering scrollbars on the viewport.
	*/

	top: -10000px;
	left: -10000px;

	/*
		Using "visibility:hidden" over "display" none because:
		
		1)	As the "position" property for submenus is set to "absolute", they are out of 
			the document flow and take up no space.  Therefore, from that perspective use of 
			"display:none" is redundant.
		
		2)	According to MSDN use of "display:none" is more expensive:
			"Display is the more expensive of the two CSS properties, so if you are 
			making elements appear and disappear often, visibility will be faster." 
			(See http://msdn.microsoft.com/en-us/library/bb264005(VS.85).aspx)
	*/

	visibility: hidden;

}

.yui3-menu li {

    list-style-type: none;    

}

.yui3-menu ul, 
.yui3-menu li { 

    margin: 0;
    padding: 0;

}

.yui3-menu-label,
.yui3-menuitem-content {

    text-align: left;
    white-space: nowrap;
    display: block;

}

.yui3-menu-horizontal li {

	float: left;
	width: auto;

}

.yui3-menu-horizontal li li {

	float: none;

}

.yui3-menu-horizontal ul {

	/*
		Use of "zoom" sets the "hasLayout" property to "true" in IE (< 8).  When "hasLayout" is 
		set to "true", an element can clear its floated descendents.  For more:
		http://msdn.microsoft.com/en-gb/library/ms533776(VS.85).aspx
	*/

	*zoom: 1;

}

.yui3-menu-horizontal ul ul {

	/*
		No need to clear <ul>s of submenus of horizontal menus since <li>s of submenus
		aren't floated.
	*/

	*zoom: normal;

}			

.yui3-menu-horizontal>.yui3-menu-content>ul:after {

	/*	Self-clearing solution for Opera, Webkit, Gecko and IE > 7	*/

	content: "";
	display: block;
	clear: both;
	line-height: 0;
	font-size: 0;
	visibility: hidden;

}


/*
	The following two rules are for IE 7.  Triggering "hasLayout" (via use of "zoom") prevents 
	first-tier submenus from hiding when the mouse is moving from an menu label in a root menu to 
	its corresponding submenu.
*/

.yui3-menu-content {

	*zoom: 1;
    
}


.yui3-menu-hidden .yui3-menu-content {

	*zoom: normal;

}


/*
	The following two rules are for IE 6 (Standards Mode and Quirks Mode) and IE 7 (Quirks Mode 
	only).  Triggering "hasLayout" (via use of "zoom") fixes a bug in IE where mousing mousing off 
	the text node of menuitem or menu label will incorrectly trigger the mouseout event.
*/

.yui3-menuitem-content,
.yui3-menu-label {

	_zoom: 1;

}

.yui3-menu-hidden .yui3-menuitem-content,
.yui3-menu-hidden .yui3-menu-label {

	_zoom: normal;

}