/hudson-war/src/main/webapp/scripts/yui/menu/assets/menu.css

http://github.com/hudson/hudson · CSS · 494 lines · 212 code · 185 blank · 97 comment · 0 complexity · 51d1bd1ddd6f28cec0bdffa83a84409f MD5 · raw file

  1. /*
  2. Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  3. Code licensed under the BSD License:
  4. http://developer.yahoo.net/yui/license.txt
  5. version: 2.5.1
  6. */
  7. /* Menu & MenuBar styles */
  8. .yuimenubar {
  9. visibility: visible;
  10. position: static;
  11. }
  12. .yuimenu .yuimenu,
  13. .yuimenubar .yuimenu {
  14. visibility: hidden;
  15. position: absolute;
  16. top: -10000px;
  17. left: -10000px;
  18. }
  19. .yuimenubar li,
  20. .yuimenu li {
  21. list-style-type: none;
  22. }
  23. .yuimenubar ul,
  24. .yuimenu ul,
  25. .yuimenubar li,
  26. .yuimenu li,
  27. .yuimenu h6,
  28. .yuimenubar h6 {
  29. margin: 0;
  30. padding: 0;
  31. }
  32. .yuimenuitemlabel,
  33. .yuimenubaritemlabel {
  34. text-align: left;
  35. white-space: nowrap;
  36. }
  37. /*
  38. The following style rule trigger the "hasLayout" property in
  39. IE (http://msdn2.microsoft.com/en-us/library/ms533776.aspx) for a
  40. MenuBar instance's <ul> element, allowing both to clear their floated
  41. child <li> elements.
  42. */
  43. .yuimenubar ul {
  44. *zoom: 1;
  45. }
  46. /*
  47. Remove the "hasLayout" trigger for submenus of MenuBar instances as it
  48. is unnecessary.
  49. */
  50. .yuimenubar .yuimenu ul {
  51. *zoom: normal;
  52. }
  53. /*
  54. The following style rule allows a MenuBar instance's <ul> element to clear
  55. its floated <li> elements in Firefox, Safari and and Opera.
  56. */
  57. .yuimenubar>.bd>ul:after {
  58. content: ".";
  59. display: block;
  60. clear: both;
  61. visibility: hidden;
  62. height: 0;
  63. line-height: 0;
  64. }
  65. .yuimenubaritem {
  66. float: left;
  67. }
  68. .yuimenubaritemlabel,
  69. .yuimenuitemlabel {
  70. display: block;
  71. }
  72. .yuimenuitemlabel .helptext {
  73. font-style: normal;
  74. display: block;
  75. /*
  76. The value for the left margin controls how much the help text is
  77. offset from the text of the menu item. This value will need to
  78. be customized depending on the longest text label of a menu item.
  79. */
  80. margin: -1em 0 0 10em;
  81. }
  82. /*
  83. PLEASE NOTE: The <div> element used for a menu's shadow is appended
  84. to its root element via JavaScript once it has been rendered. The
  85. code that creates the shadow lives in the menu's public "onRender"
  86. event handler that is a prototype method of YAHOO.widget.Menu.
  87. Implementers wishing to remove a menu's shadow or add any other markup
  88. required for a given skin for menu should override the "onRender" method.
  89. */
  90. .yui-menu-shadow {
  91. position: absolute;
  92. visibility: hidden;
  93. z-index: -1;
  94. }
  95. .yui-menu-shadow-visible {
  96. top: 2px;
  97. right: -3px;
  98. left: -3px;
  99. bottom: -3px;
  100. visibility: visible;
  101. }
  102. /*
  103. There are two known issues with YAHOO.widget.Overlay (the superclass class of
  104. Menu) that manifest in Gecko-based browsers on Mac OS X:
  105. 1) Elements with scrollbars will poke through Overlay instances floating
  106. above them.
  107. 2) An Overlay's scrollbars and the scrollbars of its child nodes remain
  108. visible when the Overlay is hidden.
  109. To fix these bugs in Menu (a subclass of YAHOO.widget.Overlay):
  110. 1) The "overflow" property of a Menu instance's shadow element and child
  111. nodes is toggled between "hidden" and "auto" (through the application
  112. and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes)
  113. as its "visibility" configuration property is toggled between
  114. "false" and "true."
  115. 2) The "display" property of <select> elements that are child nodes of the
  116. Menu instance's root element is set to "none" when it is hidden.
  117. PLEASE NOTE:
  118. 1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are
  119. applied only for Gecko on Mac OS X and are added/removed to/from the
  120. Overlay's root HTML element (DIV) via the "hideMacGeckoScrollbars" and
  121. "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay.
  122. 2) There may be instances where the CSS for a web page or application
  123. contains style rules whose specificity override the rules implemented by
  124. the Menu CSS files to fix this bug. In such cases, is necessary to
  125. leverage the provided "hide-scrollbars" and "show-scrollbars" classes to
  126. write custom style rules to guard against this bug.
  127. ** For more information on this issue, see:
  128. + https://bugzilla.mozilla.org/show_bug.cgi?id=187435
  129. + SourceForge bug #1723530
  130. */
  131. .hide-scrollbars * {
  132. overflow: hidden;
  133. }
  134. .hide-scrollbars select {
  135. display: none;
  136. }
  137. /*
  138. The following style rule (".yuimenu.show-scrollbars") overrides the
  139. ".show-scrollbars" rule defined in container-core.css which sets the
  140. "overflow" property of a YAHOO.widget.Overlay instance's root HTML element to
  141. "auto" when it is visible. Without this override, a Menu would have scrollbars
  142. when one of its submenus is visible.
  143. */
  144. .yuimenu.show-scrollbars,
  145. .yuimenubar.show-scrollbars {
  146. overflow: visible;
  147. }
  148. .yuimenu.hide-scrollbars .yui-menu-shadow,
  149. .yuimenubar.hide-scrollbars .yui-menu-shadow {
  150. overflow: hidden;
  151. }
  152. .yuimenu.show-scrollbars .yui-menu-shadow,
  153. .yuimenubar.show-scrollbars .yui-menu-shadow {
  154. overflow: auto;
  155. }
  156. /* MenuBar style rules */
  157. .yuimenubar {
  158. background-color: #f6f7ee;
  159. }
  160. /* Menu style rules */
  161. .yuimenu {
  162. background-color: #f6f7ee;
  163. border: solid 1px #c4c4be;
  164. padding: 1px;
  165. }
  166. .yui-menu-shadow {
  167. display: none;
  168. }
  169. .yuimenu ul {
  170. border: solid 1px #c4c4be;
  171. border-width: 1px 0 0 0;
  172. padding: 10px 0;
  173. }
  174. .yuimenu .yui-menu-body-scrolled {
  175. overflow: hidden;
  176. }
  177. /* Group titles */
  178. .yuimenu h6,
  179. .yuimenubar h6 {
  180. font-size: 100%;
  181. font-weight: normal;
  182. border: solid 1px #c4c4be;
  183. color: #b9b9b9;
  184. }
  185. .yuimenubar h6 {
  186. float: left;
  187. padding: 4px 12px;
  188. border-width: 0 1px 0 0;
  189. }
  190. .yuimenubar .yuimenu h6 {
  191. float: none;
  192. }
  193. .yuimenu h6 {
  194. border-width: 1px 0 0 0;
  195. padding: 5px 10px 0 10px;
  196. }
  197. .yuimenu ul.first-of-type,
  198. .yuimenu ul.hastitle,
  199. .yuimenu h6.first-of-type {
  200. border-width: 0;
  201. }
  202. /* Top and bottom scroll controls */
  203. .yuimenu .topscrollbar,
  204. .yuimenu .bottomscrollbar {
  205. height: 16px;
  206. background-position: center center;
  207. background-repeat: no-repeat;
  208. }
  209. .yuimenu .topscrollbar {
  210. background-image: url(menu_up_arrow.png);
  211. }
  212. .yuimenu .topscrollbar_disabled {
  213. background-image: url(menu_up_arrow_disabled.png);
  214. }
  215. .yuimenu .bottomscrollbar {
  216. background-image: url(menu_down_arrow.png);
  217. }
  218. .yuimenu .bottomscrollbar_disabled {
  219. background-image: url(menu_down_arrow_disabled.png);
  220. }
  221. /* MenuItem and MenuBarItem styles */
  222. .yuimenuitem {
  223. /*
  224. For IE: Used to collapse superfluous white space between <li> elements
  225. that is triggered by the "display" property of the <a> elements being
  226. set to "block."
  227. */
  228. *border-bottom: solid 1px #f6f7ee;
  229. }
  230. .yuimenuitemlabel,
  231. .yuimenubaritemlabel {
  232. font-size: 85%;
  233. color: #000;
  234. text-decoration: none;
  235. }
  236. .yuimenuitemlabel {
  237. padding: 2px 24px;
  238. }
  239. .yuimenubaritemlabel {
  240. border-width: 0 0 0 1px;
  241. border-style: solid;
  242. border-color: #c4c4be;
  243. padding: 4px 24px;
  244. }
  245. .yuimenubar li.first-of-type .yuimenubaritemlabel {
  246. border-width: 0;
  247. }
  248. .yuimenubaritem-hassubmenu {
  249. background: url(menubaritem_submenuindicator.png) right center no-repeat;
  250. }
  251. .yuimenuitem-hassubmenu {
  252. background: url(menuitem_submenuindicator.png) right center no-repeat;
  253. }
  254. .yuimenuitem-checked {
  255. background: url(menuitem_checkbox.png) left center no-repeat;
  256. }
  257. .yuimenuitemlabel .helptext {
  258. margin-top: -1.1em;
  259. *margin-top: -1.2em; /* For IE*/
  260. }
  261. /* MenuItem states */
  262. /* Selected MenuItem */
  263. .yuimenubaritem-selected,
  264. .yuimenuitem-selected {
  265. background-color: #8c8ad0;
  266. }
  267. .yuimenubaritemlabel-selected,
  268. .yuimenuitemlabel-selected {
  269. text-decoration: underline;
  270. color: #fff;
  271. }
  272. .yuimenubaritem-hassubmenu-selected {
  273. background-image: url(menubaritem_submenuindicator_selected.png);
  274. }
  275. .yuimenuitem-hassubmenu-selected {
  276. background-image: url(menuitem_submenuindicator_selected.png);
  277. }
  278. .yuimenuitem-checked-selected {
  279. background-image: url(menuitem_checkbox_selected.png);
  280. }
  281. /* Disabled MenuItem */
  282. .yuimenubaritemlabel-disabled,
  283. .yuimenuitemlabel-disabled {
  284. cursor: default;
  285. color: #b9b9b9;
  286. }
  287. .yuimenubaritem-hassubmenu-disabled {
  288. background-image: url(menubaritem_submenuindicator_disabled.png);
  289. }
  290. .yuimenuitem-hassubmenu-disabled {
  291. background-image: url(menuitem_submenuindicator_disabled.png);
  292. }
  293. .yuimenuitem-checked-disabled {
  294. background-image: url(menuitem_checkbox_disabled.png);
  295. }