home *** CD-ROM | disk | FTP | other *** search
/ mcgregor.k12.mn.us / www.mcgregor.k12.mn.us.tar / www.mcgregor.k12.mn.us / SpryAssets / SpryMenuBarVertical.css < prev    next >
Cascading Style Sheet File  |  2010-09-08  |  5KB  |  149 lines

  1. @charset "UTF-8";
  2.  
  3. /* SpryMenuBarVertical.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, a fixed width box with no margin or padding */
  14. ul.MenuBarVertical
  15. {
  16.     margin: 0;
  17.     padding: 0;
  18.     list-style-type: none;
  19.     font-size: 100%;
  20.     cursor: default;
  21.     width: 8em;
  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 same fixed width as parent */
  29. ul.MenuBarVertical 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. }
  40. /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
  41. ul.MenuBarVertical ul
  42. {
  43.     margin: -5% 0 0 95%;
  44.     padding: 0;
  45.     list-style-type: none;
  46.     font-size: 100%;
  47.     position: absolute;
  48.     z-index: 1020;
  49.     cursor: default;
  50.     width: 8.2em;
  51.     left: -1000em;
  52.     top: 0;
  53. }
  54. /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
  55. ul.MenuBarVertical ul.MenuBarSubmenuVisible
  56. {
  57.     left: 0;
  58. }
  59. /* Menu item containers are same fixed width as parent */
  60. ul.MenuBarVertical ul li
  61. {
  62.     width: 8.2em;
  63. }
  64.  
  65. /*******************************************************************************
  66.  
  67.  DESIGN INFORMATION: describes color scheme, borders, fonts
  68.  
  69.  *******************************************************************************/
  70.  
  71. /* Outermost menu container has borders on all sides */
  72. ul.MenuBarVertical
  73. {
  74.     border: 1px solid #CCC;
  75. }
  76. /* Submenu containers have borders on all sides */
  77. ul.MenuBarVertical ul
  78. {
  79.     border: 1px solid #CCC;
  80. }
  81. /* Menu items are a light gray block with padding and no text decoration */
  82. ul.MenuBarVertical a
  83. {
  84.     display: block;
  85.     cursor: pointer;
  86.     background-color: #EEE;
  87.     padding: 0.5em 0.75em;
  88.     color: #333;
  89.     text-decoration: none;
  90. }
  91. /* Menu items that have mouse over or focus have a blue background and white text */
  92. ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
  93. {
  94.     background-color: #33C;
  95.     color: #FFF;
  96. }
  97. /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
  98. ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
  99. {
  100.     background-color: #33C;
  101.     color: #FFF;
  102. }
  103.  
  104. /*******************************************************************************
  105.  
  106.  SUBMENU INDICATION: styles if there is a submenu under a given menu item
  107.  
  108.  *******************************************************************************/
  109.  
  110. /* 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%) */
  111. ul.MenuBarVertical a.MenuBarItemSubmenu
  112. {
  113.     background-image: url(SpryMenuBarRight.gif);
  114.     background-repeat: no-repeat;
  115.     background-position: 95% 50%;
  116. }
  117.  
  118. /* 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%) */
  119. ul.MenuBarVertical a.MenuBarItemSubmenuHover
  120. {
  121.     background-image: url(SpryMenuBarRightHover.gif);
  122.     background-repeat: no-repeat;
  123.     background-position: 95% 50%;
  124. }
  125.  
  126. /*******************************************************************************
  127.  
  128.  BROWSER HACKS: the hacks below should not be changed unless you are an expert
  129.  
  130.  *******************************************************************************/
  131.  
  132. /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
  133. ul.MenuBarVertical iframe
  134. {
  135.     position: absolute;
  136.     z-index: 1010;
  137.     filter:alpha(opacity:0.1);
  138. }
  139. /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
  140. @media screen, projection
  141. {
  142.     ul.MenuBarVertical li.MenuBarItemIE
  143.     {
  144.         display: inline;
  145.         f\loat: left;
  146.         background: #FFF;
  147.     }
  148. }
  149.