You are here

ultimenu.css in Ultimenu 7

Same filename and directory in other branches
  1. 8.2 css/ultimenu.css
  2. 8 css/ultimenu.css

This file contains all Ultimenu layout and very basic styling. Classes: .ultimenu: the menu UL tag. .ultimenu > li: the menu LI tag. .ultimenu-flyout: the ultimenu region container aka flyout. .ultimenu-item: the menu-item A tag. .ultimenu > li.hover: keep persistent highlighting on hover menu item whenever :hover fails.

File

css/ultimenu.css
View source
  1. /**
  2. * @file
  3. * This file contains all Ultimenu layout and very basic styling.
  4. * Classes:
  5. * .ultimenu: the menu UL tag.
  6. * .ultimenu > li: the menu LI tag.
  7. * .ultimenu-flyout: the ultimenu region container aka flyout.
  8. * .ultimenu-item: the menu-item A tag.
  9. * .ultimenu > li.hover: keep persistent highlighting on hover menu item
  10. * whenever :hover fails.
  11. */
  12. /**
  13. * Menu list style.
  14. */
  15. .ultimenu {
  16. list-style: none;
  17. min-height: 40px;
  18. padding: 0;
  19. position: relative; /*make flyout relative to UL for wide flyout */
  20. z-index: 99;
  21. }
  22. /* Add position: relative; to make flyout relative to LI for smaller flyout */
  23. .ultimenu > li {
  24. display: inline-block;
  25. margin: 0 -4px 0 0; /* LTR */
  26. }
  27. /**
  28. * Orientation.
  29. */
  30. .ultimenu.vertical {
  31. height: auto;
  32. }
  33. .ultimenu.vertical > li {
  34. display: block;
  35. float: none;
  36. position: relative;
  37. }
  38. .ultimenu-vtr .ultimenu-flyout {
  39. left: 100%; /* LTR */
  40. top: 0;
  41. }
  42. .ultimenu-vtl .ultimenu-flyout {
  43. left: auto; /* LTR */
  44. right: 100%; /* LTR */
  45. top: 0;
  46. }
  47. .ultimenu-htt .ultimenu-flyout {
  48. bottom: 100%;
  49. margin-bottom: 20px;
  50. top: auto;
  51. }
  52. /**
  53. * Ultimenu flyout.
  54. * Never display: none, bad for animation.
  55. */
  56. .ultimenu-flyout {
  57. -moz-transition: visibility 0s linear 0.5s, opacity .5s linear, margin .5s ease;
  58. -ms-transition: visibility 0s linear 0.5s, opacity .5s linear, margin .5s ease;
  59. -o-transition: visibility 0s linear 0.5s, opacity .5s linear, margin .5s ease;
  60. -webkit-transition: visibility 0s linear 0.5s, opacity .5s linear, margin .5s ease;
  61. display: block;
  62. left: 0; /* LTR */
  63. line-height: 1.4;
  64. margin: 20px 0 0;
  65. opacity: 0;
  66. padding: 20px 0;
  67. position: absolute;
  68. top: 100%;
  69. transition: visibility 0s linear 0.5s, opacity .5s linear, margin .5s ease;
  70. visibility: hidden;
  71. z-index: 102;
  72. }
  73. .ultimenu > li:hover > .ultimenu-flyout,
  74. .ultimenu > li.hover > .ultimenu-flyout {
  75. -moz-transition-delay: 0s;
  76. -ms-transition-delay: 0s;
  77. -o-transition-delay: 0s;
  78. -webkit-transition-delay: 0s;
  79. display: block;
  80. margin-top: 0;
  81. opacity: 1;
  82. transition-delay: 0s;
  83. visibility: visible;
  84. }
  85. .vertical .ultimenu-flyout {
  86. margin-top: 0;
  87. }
  88. .ultimenu-vtl .ultimenu-flyout,
  89. .ultimenu-vtl .ultimenu-flyout {
  90. margin-right: 20px; /* LTR */
  91. }
  92. .ultimenu-vtr .ultimenu-flyout,
  93. .ultimenu-vtr .ultimenu-flyout {
  94. margin-left: 20px; /* LTR */
  95. }
  96. .ultimenu-vtl > li:hover > .ultimenu-flyout,
  97. .ultimenu-vtl > li.hover > .ultimenu-flyout {
  98. margin-right: 10px; /* LTR */
  99. }
  100. .ultimenu-vtr > li:hover > .ultimenu-flyout,
  101. .ultimenu-vtr > li.hover > .ultimenu-flyout {
  102. margin-left: 10px; /* LTR */
  103. }
  104. .ultimenu-htt > li:hover > .ultimenu-flyout,
  105. .ultimenu-htt > li.hover > .ultimenu-flyout {
  106. margin-bottom: 10px;
  107. }
  108. /**
  109. * IE fixes for disappearing flyout on hover.
  110. * .ie class is added into HTML tag via jQuery to support hovering issue.
  111. * Most popular themes support more fine-grained classes, e.g.: .lt-ie9, etc.
  112. * To properly display some space between the flyout and A tag, please adjust
  113. * the A tag padding instead.
  114. * Vertical to bottom orientation has no issue, but other orientations do.
  115. * Basically we need to remove the gap between the LI and its flyout.
  116. * The class .ie is left to supported themes, like Omega4. You can implement
  117. * your ie class.
  118. */
  119. .ie .ultimenu-vtl > li.hover > .ultimenu-flyout {
  120. margin-right: 0; /* LTR */
  121. }
  122. .ie .ultimenu-vtr > li.hover > .ultimenu-flyout {
  123. margin-left: 0; /* LTR */
  124. }
  125. .ie .ultimenu-htt > li.hover > .ultimenu-flyout {
  126. margin-bottom: 0;
  127. }
  128. /**
  129. * Smaller medium.
  130. */
  131. @media all and (max-width: 59em) {
  132. .ultimenu > li,
  133. .ultimenu > li > a {
  134. min-width: 100%;
  135. width: 100%;
  136. }
  137. .ultimenu-flyout,
  138. .ultimenu-vtl .ultimenu-flyout,
  139. .ultimenu-vtr .ultimenu-flyout,
  140. .ultimenu-htt .ultimenu-flyout {
  141. bottom: auto;
  142. height: auto;
  143. left: auto;
  144. margin: 0;
  145. right: auto;
  146. top: auto;
  147. width: 100%;
  148. }
  149. .ultimenu > li:hover > .ultimenu-flyout,
  150. .ultimenu > li.hover > .ultimenu-flyout {
  151. display: block;
  152. position: relative;
  153. }
  154. }/*/mediaqueries*/
  155. /**
  156. * Larger medium
  157. */
  158. @media all and (min-width: 59em) {
  159. .ultimenu-flyout {
  160. border-radius: 5px;
  161. }
  162. .ultimenu.horizontal > li.last > .ultimenu-flyout {
  163. left: auto; /* LTR */
  164. right: 0; /* LTR */
  165. }
  166. }/*/mediaqueries*/
  167. /**
  168. * Basic skins.
  169. * Based on bartik if region navigation is replacing theme_links()
  170. */
  171. #header .ultimenu-flyout,
  172. #footer .ultimenu-flyout {
  173. min-width: 600px;
  174. }
  175. .sidebar .ultimenu-flyout {
  176. min-width: 500px;
  177. }
  178. .ultimenu-flyout {
  179. color: #777;
  180. }
  181. .ultimenu > li > a {
  182. -moz-transition: background-color .5s, color .5s;
  183. -ms-transition: background-color .5s, color .5s;
  184. -o-transition: background-color .5s, color .5s;
  185. -webkit-transition: background-color .5s, color .5s;
  186. display: block;
  187. line-height: 1.4;
  188. padding: .5em 1.25em;
  189. transition: background-color .5s, color .5s;
  190. }
  191. .ultimenu.vertical > li > a {
  192. padding: .5em 0;
  193. }
  194. .ultimenu > li > a small {
  195. display: block;
  196. font-size: 70%;
  197. line-height: 1;
  198. }
  199. /**
  200. * Core bartik do not have clearfix for region, add support for floating blocks.
  201. */
  202. .ultimenu .region:after {
  203. clear: both;
  204. content: " ";
  205. display: table;
  206. }