You are here

nice_menus_default.css in Nice Menus 8

/*
  This is the default layout template for nice menus, and will provide
  a starting point for the look of your menus. To customize, it's
  recommended to create a custom CSS file using this file as a template,
  then configure the module to use your custom CSS file
  (this is done in the global settings tab of the theme administration.)

  See README.txt and the handbook page (http://drupal.org/node/185543)
  for more information on using the CSS.
*/

/******************************
 Global CSS for ALL menu types
******************************/

ul.nice-menu,
ul.nice-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.nice-menu li {
  border-top: 0;
  float: left; /* LTR */
}

ul.nice-menu a {
  padding: 0.3em 5px 0.3em 5px;
}

ul.nice-menu ul {
  top: 1.8em;
  left: -1px; /* LTR */
  border: 0;
  z-index: 999;
  margin-right: 0; /* LTR */
}

/* VERTICAL menus where submenus pop RIGHT (default). */
ul.nice-menu-right ul {
  width: 12.5em;
  left: 12.5em;
  top: -1px;
}

ul.nice-menu-right ul ul {
  width: 12.5em;
  left: 12.5em;
  top: -1px;
}

ul.nice-menu-right li.menuparent,
ul.nice-menu-right li li.menuparent {
  background: #eee url("../images/arrow-right.png") right center no-repeat;
}

ul.nice-menu-right li.menuparent:hover,
ul.nice-menu-right li li.menuparent:hover {
  background: #ccc url("../images/arrow-right.png") right center no-repeat;
}

/* VERTICAL menus where submenus pop LEFT. */
ul.nice-menu-left li ul {
  width: 12.5em;
  left: -12.65em;
  top: -1px;
}

ul.nice-menu-left li ul li ul {
  width: 12.5em;
  left: -12.65em;
  top: -1px;
}

ul.nice-menu-left li.menuparent,
ul.nice-menu-left li li.menuparent {
  background: #eee url("../images/arrow-left.png") left center no-repeat;
}

ul.nice-menu-left li.menuparent:hover,
ul.nice-menu-left li li.menuparent:hover {
  background: #ccc url("../images/arrow-left.png") left center no-repeat;
}

ul.nice-menu-left a,
ul.nice-menu-left ul a {
  padding-left: 14px;
}

/******************************
 HORIZONTAL (down) menus
******************************/

ul.nice-menu-down {
  float: left; /* LTR */
  border: 0;
}
ul.nice-menu-down li li {
  border-top: 0;
}

ul.nice-menu-down ul {
  left: 0; /* LTR */
}

ul.nice-menu-down ul li {
  clear: both;
}

ul.nice-menu-down li ul li ul {
  left: 12.5em; /* LTR */
  top: -1px;
}

ul.nice-menu-down .menuparent a {
  padding-right: 15px; /* LTR */
}

ul.nice-menu-down li.menuparent {
  background: url("../images/arrow-down.png") right center no-repeat; /* LTR */
}

ul.nice-menu-down li.menuparent:hover {
  background: url("../images/arrow-down.png") right center no-repeat; /* LTR */
}

ul.nice-menu-down li li.menuparent {
  background: url("../images/arrow-right.png") right center no-repeat; /* LTR */
}

ul.nice-menu-down li li.menuparent:hover {
  background: url("../images/arrow-right.png") right center no-repeat; /* LTR */
}

/******************************
 Garland-specific CSS
******************************/

/**
 * Global CSS for ALL menu types
 */
ul.nice-menu li {
  margin: 0;
  padding-left: 0; /* LTR */
  background-image: none;
}

/******************************
 Bartik-specific CSS
******************************/
/**
 * Global CSS for ALL menu types
 */
.block ul.nice-menu,
.block ul.nice-menu ul {
  padding: 0;
}

/**
 * HORIZONTAL (down) menus
 */
#header-region ul.nice-menu-down li ul li ul {
  left: 12.5em; /* LTR */
  top: -1px;
}

File

libraries/css/nice_menus_default.css
View source
  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. }
  19. ul.nice-menu li {
  20. border-top: 0;
  21. float: left; /* LTR */
  22. }
  23. ul.nice-menu a {
  24. padding: 0.3em 5px 0.3em 5px;
  25. }
  26. ul.nice-menu ul {
  27. top: 1.8em;
  28. left: -1px; /* LTR */
  29. border: 0;
  30. z-index: 999;
  31. margin-right: 0; /* LTR */
  32. }
  33. /* VERTICAL menus where submenus pop RIGHT (default). */
  34. ul.nice-menu-right ul {
  35. width: 12.5em;
  36. left: 12.5em;
  37. top: -1px;
  38. }
  39. ul.nice-menu-right ul ul {
  40. width: 12.5em;
  41. left: 12.5em;
  42. top: -1px;
  43. }
  44. ul.nice-menu-right li.menuparent,
  45. ul.nice-menu-right li li.menuparent {
  46. background: #eee url("../images/arrow-right.png") right center no-repeat;
  47. }
  48. ul.nice-menu-right li.menuparent:hover,
  49. ul.nice-menu-right li li.menuparent:hover {
  50. background: #ccc url("../images/arrow-right.png") right center no-repeat;
  51. }
  52. /* VERTICAL menus where submenus pop LEFT. */
  53. ul.nice-menu-left li ul {
  54. width: 12.5em;
  55. left: -12.65em;
  56. top: -1px;
  57. }
  58. ul.nice-menu-left li ul li ul {
  59. width: 12.5em;
  60. left: -12.65em;
  61. top: -1px;
  62. }
  63. ul.nice-menu-left li.menuparent,
  64. ul.nice-menu-left li li.menuparent {
  65. background: #eee url("../images/arrow-left.png") left center no-repeat;
  66. }
  67. ul.nice-menu-left li.menuparent:hover,
  68. ul.nice-menu-left li li.menuparent:hover {
  69. background: #ccc url("../images/arrow-left.png") left center no-repeat;
  70. }
  71. ul.nice-menu-left a,
  72. ul.nice-menu-left ul a {
  73. padding-left: 14px;
  74. }
  75. /******************************
  76. HORIZONTAL (down) menus
  77. ******************************/
  78. ul.nice-menu-down {
  79. float: left; /* LTR */
  80. border: 0;
  81. }
  82. ul.nice-menu-down li li {
  83. border-top: 0;
  84. }
  85. ul.nice-menu-down ul {
  86. left: 0; /* LTR */
  87. }
  88. ul.nice-menu-down ul li {
  89. clear: both;
  90. }
  91. ul.nice-menu-down li ul li ul {
  92. left: 12.5em; /* LTR */
  93. top: -1px;
  94. }
  95. ul.nice-menu-down .menuparent a {
  96. padding-right: 15px; /* LTR */
  97. }
  98. ul.nice-menu-down li.menuparent {
  99. background: url("../images/arrow-down.png") right center no-repeat; /* LTR */
  100. }
  101. ul.nice-menu-down li.menuparent:hover {
  102. background: url("../images/arrow-down.png") right center no-repeat; /* LTR */
  103. }
  104. ul.nice-menu-down li li.menuparent {
  105. background: url("../images/arrow-right.png") right center no-repeat; /* LTR */
  106. }
  107. ul.nice-menu-down li li.menuparent:hover {
  108. background: url("../images/arrow-right.png") right center no-repeat; /* LTR */
  109. }
  110. /******************************
  111. Garland-specific CSS
  112. ******************************/
  113. /**
  114. * Global CSS for ALL menu types
  115. */
  116. ul.nice-menu li {
  117. margin: 0;
  118. padding-left: 0; /* LTR */
  119. background-image: none;
  120. }
  121. /******************************
  122. Bartik-specific CSS
  123. ******************************/
  124. /**
  125. * Global CSS for ALL menu types
  126. */
  127. .block ul.nice-menu,
  128. .block ul.nice-menu ul {
  129. padding: 0;
  130. }
  131. /**
  132. * HORIZONTAL (down) menus
  133. */
  134. #header-region ul.nice-menu-down li ul li ul {
  135. left: 12.5em; /* LTR */
  136. top: -1px;
  137. }