You are here

webmaster_menu.css in Webmaster menu 7

Styling of the webmaster dropdown menu

File

webmaster_menu.css
View source
  1. /**
  2. * @file
  3. * Styling of the webmaster dropdown menu
  4. */
  5. .webmaster-menu {
  6. background-color: #622;
  7. height: 30px;
  8. width: auto;
  9. position: relative;
  10. z-index:550; /* higher than overlay (which is 500) */
  11. }
  12. /* Fixed positioning
  13. First case: No other toolbars, so no "engulfing" container. */
  14. html body.webmaster-menu-fixed .webmaster-menu {
  15. top: 0px;
  16. position: fixed;
  17. left: 0;
  18. right: 0;
  19. z-index: 998; /* Just less then admin-menu but high enough for overlay */
  20. }
  21. html body.webmaster-menu-fixed {
  22. margin-top: 30px;
  23. }
  24. /* Fixed positioning
  25. Second case: There are other toolbars. The javascript then creates a
  26. new container, which all toolbars, including webmaster menu are moved into */
  27. #webmaster_menu_engulfing_other_toolbars {
  28. position: fixed;
  29. top:0;
  30. right:0;
  31. left:0;
  32. z-index:550; /* higher than overlay (which is 500) */
  33. }
  34. #webmaster_menu_engulfing_other_toolbars #admin-menu {
  35. position: relative;
  36. }
  37. #webmaster_menu_engulfing_other_toolbars .webmaster-menu {
  38. position: relative;
  39. }
  40. body.webmaster-menu-engulfing.admin-menu {
  41. margin-top: 0px!important; /* override admin menu margin */
  42. }
  43. body.webmaster-menu-engulfing,
  44. body.toolbar {
  45. padding-top: 0px!important; /* override toolbar css on body element */
  46. }
  47. body.webmaster-menu-engulfing.webmaster-menu-fixed {
  48. margin-top: 0px!important; /* override ordinary fixed positioning */
  49. }
  50. /* ------------------- */
  51. .webmaster-menu ul.menu {
  52. margin: 0;
  53. padding: 0;
  54. }
  55. .webmaster-menu > ul.menu {
  56. padding-left: 9px;
  57. padding-right: 15px;
  58. }
  59. .webmaster-menu ul.menu li,
  60. .webmaster-menu ul.menu li.expanded {
  61. float: left;
  62. margin: 0;
  63. padding: 0;
  64. }
  65. .webmaster-menu ul.menu li,
  66. .webmaster-menu ul.menu li.expanded {
  67. background-image: none;
  68. list-style: none;
  69. list-style-image: none;
  70. list-style-type: none;
  71. }
  72. .webmaster-menu ul.menu li.expanded li.expanded > a {
  73. background-image: url(img/nav_white.gif);
  74. background-position: right center;
  75. background-repeat: no-repeat;
  76. }
  77. .webmaster-menu ul.menu li:hover ul.menu {
  78. height: 10px;
  79. position: absolute;
  80. width: auto;
  81. z-index: 7000;
  82. }
  83. .webmaster-menu ul.menu li ul li {
  84. background-color: #444;
  85. display: none;
  86. width: 160px; /* Width to help Opera out */
  87. }
  88. .webmaster-menu ul.menu a {
  89. color: #fff;
  90. display: block;
  91. margin: 0;
  92. text-decoration: none;
  93. }
  94. .webmaster-menu ul.menu li a {
  95. line-height: 22px;
  96. padding: 4px 6px 4px 7px;
  97. }
  98. .webmaster-menu ul.menu li li a {
  99. line-height: 15px;
  100. padding: 6px 10px 6px 11px;
  101. }
  102. .webmaster-menu li:hover ul ul,
  103. .webmaster-menu li:hover ul ul ul,
  104. .webmaster-menu li:hover ul ul ul ul,
  105. .webmaster-menu li:hover ul ul ul ul ul {
  106. display: none;
  107. left: -999em;
  108. }
  109. /* Lists nested under hovered list items */
  110. .webmaster-menu li:hover ul,
  111. .webmaster-menu li li:hover ul,
  112. .webmaster-menu li li li:hover ul,
  113. .webmaster-menu li li li li:hover ul,
  114. .webmaster-menu li li li li li:hover ul {
  115. display: block;
  116. left: auto;
  117. }
  118. .webmaster-menu ul.menu li:hover li {
  119. border-bottom: 1px solid #333;
  120. display: block;
  121. float: none;
  122. margin: 0;
  123. padding: 0;
  124. position: relative;
  125. width: 160px;
  126. }
  127. /* items - hover */
  128. .webmaster-menu ul.menu > li:hover > a {
  129. -moz-border-radius: 11px; /* For Firefox */
  130. -webkit-border-radius: 11px; /* For Chrome/Safari */
  131. background-color: #966;
  132. border-radius: 11px; /* W3C */
  133. }
  134. /* Reset round corners for submenu items */
  135. .webmaster-menu ul.menu > li:hover > ul.menu a {
  136. -moz-border-radius: 0px;
  137. -webkit-border-radius: 0px;
  138. border-radius: 0px;
  139. }
  140. .webmaster-menu ul.menu li:hover ul {
  141. height: auto;
  142. }
  143. .webmaster-menu ul.menu li li.first a {
  144. text-align: left;
  145. width: auto;
  146. }
  147. .webmaster-menu ul.menu li:hover ul li ul {
  148. margin-left: 160px;
  149. top: 0px;
  150. }
  151. .webmaster-menu ul.menu li.home > a {
  152. background-image: url(img/home.png);
  153. background-position: center center;
  154. background-repeat: no-repeat;
  155. text-indent: -9999px;
  156. width: 20px;
  157. }
  158. .webmaster-menu ul.menu li.logout {
  159. float: right;
  160. }