nice_menus_default.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /*
  2. This is the default layout template for nice menus, and will provide
  3. a starting point for the look of your menus. To customize, it's
  4. recommended to create a custom CSS file using this file as a template,
  5. then configure the module to use your custom CSS file
  6. (this is done in the global settings tab of the theme administration.)
  7. See README.txt and the handbook page (http://drupal.org/node/185543)
  8. for more information on using the CSS.
  9. */
  10. /******************************
  11. Global CSS for ALL menu types
  12. ******************************/
  13. ul.nice-menu,
  14. ul.nice-menu ul {
  15. list-style: none;
  16. padding: 0;
  17. margin: 0;
  18. border-top: 1px solid #ccc;
  19. }
  20. ul.nice-menu li {
  21. border: 1px solid #ccc;
  22. border-top: 0;
  23. float: left; /* LTR */
  24. background-color: #eee;
  25. }
  26. ul.nice-menu a {
  27. padding: 0.3em 5px 0.3em 5px;
  28. }
  29. ul.nice-menu ul {
  30. top: 1.8em;
  31. left: -1px; /* LTR */
  32. border: 0;
  33. border-top: 1px solid #ccc;
  34. margin-right: 0; /* LTR */
  35. }
  36. ul.nice-menu ul li {
  37. width: 12.5em;
  38. }
  39. /******************************
  40. VERTICAL (left/right) menus
  41. ******************************/
  42. /* This is the default width of all vertical menus. */
  43. ul.nice-menu-right, ul.nice-menu-left,
  44. ul.nice-menu-right li, ul.nice-menu-left li {
  45. width: 12.5em;
  46. }
  47. /* VERTICAL menus where submenus pop RIGHT (default). */
  48. ul.nice-menu-right ul {
  49. width: 12.5em;
  50. left: 12.5em;
  51. top: -1px;
  52. }
  53. ul.nice-menu-right ul ul {
  54. width: 12.5em;
  55. left: 12.5em;
  56. top: -1px;
  57. }
  58. ul.nice-menu-right li.menuparent,
  59. ul.nice-menu-right li li.menuparent {
  60. background: #eee url(arrow-right.png) right center no-repeat;
  61. }
  62. ul.nice-menu-right li.menuparent:hover,
  63. ul.nice-menu-right li li.menuparent:hover {
  64. background: #ccc url(arrow-right.png) right center no-repeat;
  65. }
  66. /* VERTICAL menus where submenus pop LEFT. */
  67. ul.nice-menu-left li ul {
  68. width: 12.5em;
  69. left: -12.65em;
  70. top: -1px;
  71. }
  72. ul.nice-menu-left li ul li ul {
  73. width: 12.5em;
  74. left: -12.65em;
  75. top: -1px;
  76. }
  77. ul.nice-menu-left li.menuparent,
  78. ul.nice-menu-left li li.menuparent {
  79. background: #eee url(arrow-left.png) left center no-repeat;
  80. }
  81. ul.nice-menu-left li.menuparent:hover,
  82. ul.nice-menu-left li li.menuparent:hover {
  83. background: #ccc url(arrow-left.png) left center no-repeat;
  84. }
  85. ul.nice-menu-left a, ul.nice-menu-left ul a {
  86. padding-left: 14px;
  87. }
  88. /******************************
  89. HORIZONTAL (down) menus
  90. ******************************/
  91. ul.nice-menu-down {
  92. float: left; /* LTR */
  93. border: 0;
  94. }
  95. ul.nice-menu-down li {
  96. border-top: 1px solid #ccc;
  97. }
  98. ul.nice-menu-down li li {
  99. border-top: 0;
  100. }
  101. ul.nice-menu-down ul {
  102. left: 0; /* LTR */
  103. }
  104. ul.nice-menu-down ul li {
  105. clear: both;
  106. }
  107. ul.nice-menu-down li ul li ul {
  108. left: 12.5em; /* LTR */
  109. top: -1px;
  110. }
  111. ul.nice-menu-down .menuparent a {
  112. padding-right: 15px; /* LTR */
  113. }
  114. ul.nice-menu-down li.menuparent {
  115. background: #eee url(arrow-down.png) right center no-repeat; /* LTR */
  116. }
  117. ul.nice-menu-down li.menuparent:hover {
  118. background: #ccc url(arrow-down.png) right center no-repeat; /* LTR */
  119. }
  120. ul.nice-menu-down li li.menuparent {
  121. background: #eee url(arrow-right.png) right center no-repeat; /* LTR */
  122. }
  123. ul.nice-menu-down li li.menuparent:hover {
  124. background: #ccc url(arrow-right.png) right center no-repeat; /* LTR */
  125. }
  126. /******************************
  127. Garland-specific CSS
  128. ******************************/
  129. /**
  130. * Global CSS for ALL menu types
  131. */
  132. ul.nice-menu li {
  133. margin: 0;
  134. padding-left: 0; /* LTR */
  135. background-image: none;
  136. }
  137. #header-region ul.nice-menu li {
  138. margin: 0;
  139. /* Padding rules are needed to deal with Garland's header line-height. */
  140. padding-top: 0.1em;
  141. padding-bottom: 0.1em;
  142. background: #eee;
  143. }
  144. #header-region ul.nice-menu ul {
  145. top: 1.8em;
  146. left: -1px; /* LTR */
  147. border: 0;
  148. border-top: 1px solid #ccc;
  149. margin-right: 0; /* LTR */
  150. }
  151. #header-region ul.nice-menu ul {
  152. top: 1.7em;
  153. }
  154. /**
  155. * HORIZONTAL (down) menus
  156. */
  157. #header-region ul.nice-menu-down li ul li ul {
  158. left: 12.5em; /* LTR */
  159. top: -1px;
  160. }
  161. #header-region ul.nice-menu-down li.menuparent {
  162. background: #eee url(arrow-down.png) right center no-repeat; /* LTR */
  163. }
  164. #header-region ul.nice-menu-down li.menuparent:hover {
  165. background: #ccc url(arrow-down.png) right center no-repeat; /* LTR */
  166. }
  167. #header-region ul.nice-menu-down li li.menuparent {
  168. background: #eee url(arrow-right.png) right center no-repeat; /* LTR */
  169. }
  170. #header-region ul.nice-menu-down li li.menuparent:hover {
  171. background: #ccc url(arrow-right.png) right center no-repeat; /* LTR */
  172. }