Advertisement
Guest User

Untitled

a guest
May 30th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. @charset "UTF-8";
  2.  
  3. /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
  4.  
  5. /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
  6.  
  7. /*******************************************************************************
  8.  
  9. LAYOUT INFORMATION: describes box model, positioning, z-order
  10.  
  11. *******************************************************************************/
  12.  
  13. /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
  14. ul.MenuBarHorizontal
  15. {
  16. margin: 0;
  17. padding: 0;
  18. list-style-type: none;
  19. font-size: 100%;
  20. cursor: default;
  21. width: auto;
  22. }
  23. /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
  24. ul.MenuBarActive
  25. {
  26. z-index: 1000;
  27. }
  28. /* Menu item containers, position children relative to this container and are a fixed width */
  29. ul.MenuBarHorizontal li
  30. {
  31. margin: 0;
  32. padding: 0;
  33. list-style-type: none;
  34. font-size: 100%;
  35. position: relative;
  36. text-align: left;
  37. cursor: pointer;
  38. width: 8em;
  39. float: left;
  40. }
  41. /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
  42. ul.MenuBarHorizontal ul
  43. {
  44. margin: 0;
  45. padding: 0;
  46. list-style-type: none;
  47. font-size: 100%;
  48. z-index: 1020;
  49. cursor: default;
  50. width: 8.2em;
  51. position: absolute;
  52. left: -1000em;
  53. }
  54. /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
  55. ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
  56. {
  57. left: auto;
  58. }
  59. /* Menu item containers are same fixed width as parent */
  60. ul.MenuBarHorizontal ul li
  61. {
  62. width: 8.2em;
  63. }
  64. /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
  65. ul.MenuBarHorizontal ul ul
  66. {
  67. position: absolute;
  68. margin: -5% 0 0 95%;
  69. }
  70. /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
  71. ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
  72. {
  73. left: auto;
  74. top: 0;
  75. }
  76.  
  77. /*******************************************************************************
  78.  
  79. DESIGN INFORMATION: describes color scheme, borders, fonts
  80.  
  81. *******************************************************************************/
  82.  
  83. /* Submenu containers have borders on all sides */
  84. ul.MenuBarHorizontal ul
  85. {
  86. border: 1px solid #CCC;
  87. }
  88. /* Menu items are a light gray block with padding and no text decoration */
  89. ul.MenuBarHorizontal a
  90. {
  91. display: block;
  92. cursor: pointer;
  93. background-color: #EEE;
  94. padding: 0.5em 0.75em;
  95. color: #333;
  96. text-decoration: none;
  97. font-style: oblique;
  98. }
  99. /* Menu items that have mouse over or focus have a blue background and white text */
  100. ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
  101. {
  102. background-color: #33C;
  103. color: #FFF;
  104. }
  105. /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
  106. ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
  107. {
  108. background-color: #33C;
  109. color: #FFF;
  110. }
  111.  
  112. /*******************************************************************************
  113.  
  114. SUBMENU INDICATION: styles if there is a submenu under a given menu item
  115.  
  116. *******************************************************************************/
  117.  
  118. /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
  119. ul.MenuBarHorizontal a.MenuBarItemSubmenu
  120. {
  121. background-image: url(SpryMenuBarDown.gif);
  122. background-repeat: no-repeat;
  123. background-position: 95% 50%;
  124. }
  125. /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
  126. ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
  127. {
  128. background-image: url(SpryMenuBarRight.gif);
  129. background-repeat: no-repeat;
  130. background-position: 95% 50%;
  131. }
  132. /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
  133. ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
  134. {
  135. background-image: url(SpryMenuBarDownHover.gif);
  136. background-repeat: no-repeat;
  137. background-position: 95% 50%;
  138. }
  139. /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
  140. ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
  141. {
  142. background-image: url(SpryMenuBarRightHover.gif);
  143. background-repeat: no-repeat;
  144. background-position: 95% 50%;
  145. }
  146.  
  147. /*******************************************************************************
  148.  
  149. BROWSER HACKS: the hacks below should not be changed unless you are an expert
  150.  
  151. *******************************************************************************/
  152.  
  153. /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
  154. ul.MenuBarHorizontal iframe
  155. {
  156. position: absolute;
  157. z-index: 1010;
  158. filter:alpha(opacity:0.1);
  159. }
  160. /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
  161. @media screen, projection
  162. {
  163. ul.MenuBarHorizontal li.MenuBarItemIE
  164. {
  165. display: inline;
  166. f\loat: left;
  167. background: #FFF;
  168. }
  169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement