2
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3
Code licensed under the BSD License:
4
http://developer.yahoo.net/yui/license.txt
19
Styles for the <iframe> shim used to prevent <select> elements from poking through
20
submenus in IE < 7. Note: For peformance, creation of the <iframe> shim for each submenu
21
is deferred until it is initially made visible by the user.
29
filter: alpha(opacity=0); /* For IE since it doesn't implement the CSS3 "opacity" property. */
41
Position hidden menus outside the viewport boundaries to prevent them from
42
triggering scrollbars on the viewport.
49
Using "visibility:hidden" over "display" none because:
51
1) As the "position" property for submenus is set to "absolute", they are out of
52
the document flow and take up no space. Therefore, from that perspective use of
53
"display:none" is redundant.
55
2) According to MSDN use of "display:none" is more expensive:
56
"Display is the more expensive of the two CSS properties, so if you are
57
making elements appear and disappear often, visibility will be faster."
58
(See http://msdn.microsoft.com/en-us/library/bb264005(VS.85).aspx)
67
list-style-type: none;
80
.yui-menuitem-content {
88
.yui-menu-horizontal li {
95
.yui-menu-horizontal li li {
101
.yui-menu-horizontal ul {
104
Use of "zoom" sets the "hasLayout" property to "true" in IE (< 8). When "hasLayout" is
105
set to "true", an element can clear its floated descendents. For more:
106
http://msdn.microsoft.com/en-gb/library/ms533776(VS.85).aspx
113
.yui-menu-horizontal ul ul {
116
No need to clear <ul>s of submenus of horizontal menus since <li>s of submenus
124
.yui-menu-horizontal>.yui-menu-content>ul:after {
126
/* Self-clearing solution for Opera, Webkit, Gecko and IE > 7 */
139
The following two rules are for IE 7. Triggering "hasLayout" (via use of "zoom") prevents
140
first-tier submenus from hiding when the mouse is moving from an menu label in a root menu to
141
its corresponding submenu.
151
.yui-menu-hidden .yui-menu-content {
159
The following two rules are for IE 6 (Standards Mode and Quirks Mode) and IE 7 (Quirks Mode
160
only). Triggering "hasLayout" (via use of "zoom") fixes a bug in IE where mousing mousing off
161
the text node of menuitem or menu label will incorrectly trigger the mouseout event.
164
.yui-menuitem-content,
171
.yui-menu-hiden .yui-menuitem-content,
172
.yui-menu-hiden .yui-menu-label {
b'\\ No newline at end of file'