/priv/skel/blog/lib/css/zp-menu.css

https://code.google.com/p/zotonic/ · CSS · 195 lines · 145 code · 16 blank · 34 comment · 0 complexity · 18e5320dbfb432e91e5478e39b78fa71 MD5 · raw file

  1. /* Styling for menu's in the default blog template.
  2. ----------------------------------------------------------
  3. @package: Atatonic CSS framework 2009
  4. @Author: Tim Benniks <tim@timbenniks.nl>
  5. @Created: 10-12-2009
  6. @Changed: 19-03-2010
  7. Copyright 2010 Tim Benniks <tim@timbenniks.nl>
  8. Licensed under the Apache License, Version 2.0 (the "License");
  9. you may not use this file except in compliance with the License.
  10. You may obtain a copy of the License at
  11. http://www.apache.org/licenses/LICENSE-2.0
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. /* navigation
  18. ---------------------------------------------------------- */
  19. nav {
  20. margin: 0 0 24px 0;
  21. }
  22. /*** ESSENTIAL STYLES ***/
  23. .sf-menu, .sf-menu * {
  24. margin: 0;
  25. padding: 0;
  26. list-style: none;
  27. }
  28. .sf-menu {
  29. line-height: 1.0;
  30. }
  31. .sf-menu ul {
  32. position: absolute;
  33. top: -999em;
  34. width: 14em; /* left offset of submenus need to match (see below) */
  35. }
  36. .sf-menu ul li {
  37. width: 100%;
  38. }
  39. .sf-menu li:hover {
  40. visibility: inherit; /* fixes IE7 'sticky bug' */
  41. }
  42. .sf-menu li {
  43. float: left;
  44. position: relative;
  45. }
  46. .sf-menu a {
  47. display: block;
  48. position: relative;
  49. }
  50. .sf-menu li:hover ul,
  51. .sf-menu li.sfHover ul {
  52. left: 0;
  53. top: 1.9em; /* match top ul list item height */
  54. z-index: 99;
  55. }
  56. ul.sf-menu li:hover li ul,
  57. ul.sf-menu li.sfHover li ul {
  58. top: -999em;
  59. }
  60. ul.sf-menu li li:hover ul,
  61. ul.sf-menu li li.sfHover ul {
  62. left: 14em; /* match ul width */
  63. top: 0;
  64. }
  65. ul.sf-menu li li:hover li ul,
  66. ul.sf-menu li li.sfHover li ul {
  67. top: -999em;
  68. }
  69. ul.sf-menu li li li:hover ul,
  70. ul.sf-menu li li li.sfHover ul {
  71. left: 14em; /* match ul width */
  72. top: 0;
  73. }
  74. /*** SKIN ***/
  75. .sf-menu {
  76. float: left;
  77. }
  78. .sf-menu a {
  79. border: 0;
  80. border-left: 1px solid #fff;
  81. padding: .45em 1em;
  82. text-decoration:none;
  83. }
  84. .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/
  85. color: #333;
  86. }
  87. .sf-menu li {
  88. }
  89. .sf-menu li li {
  90. background: #eee;
  91. }
  92. .sf-menu li li li {
  93. background: #eee;
  94. }
  95. .sf-menu li:hover, .sf-menu li.sfHover,
  96. .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
  97. background: #bbb;
  98. outline: 0;
  99. }
  100. .sf-menu li ul li a {
  101. border-top: 1px dotted #aaa;
  102. }
  103. .sf-menu a.current {
  104. background: #ddd;
  105. }
  106. /*** arrows **/
  107. .sf-menu a.sf-with-ul {
  108. padding-right: 2.25em;
  109. min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */
  110. }
  111. .sf-sub-indicator {
  112. position: absolute;
  113. display: block;
  114. right: .75em;
  115. top: 1.05em; /* IE6 only */
  116. width: 10px;
  117. height: 10px;
  118. text-indent: -999em;
  119. overflow: hidden;
  120. background: url('/lib/images/arrows-333333.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
  121. }
  122. a > .sf-sub-indicator { /* give all except IE6 the correct values */
  123. top: .6em;
  124. background-position: 0 -100px; /* use translucent arrow for modern browsers*/
  125. }
  126. /* apply hovers to modern browsers */
  127. a:focus > .sf-sub-indicator,
  128. a:hover > .sf-sub-indicator,
  129. a:active > .sf-sub-indicator,
  130. li:hover > a > .sf-sub-indicator,
  131. li.sfHover > a > .sf-sub-indicator {
  132. background-position: -10px -100px; /* arrow hovers for modern browsers*/
  133. }
  134. /* point right for anchors in subs */
  135. .sf-menu ul .sf-sub-indicator { background-position: -10px 0; }
  136. .sf-menu ul a > .sf-sub-indicator { background-position: 0 0; }
  137. /* apply hovers to modern browsers */
  138. .sf-menu ul a:focus > .sf-sub-indicator,
  139. .sf-menu ul a:hover > .sf-sub-indicator,
  140. .sf-menu ul a:active > .sf-sub-indicator,
  141. .sf-menu ul li:hover > a > .sf-sub-indicator,
  142. .sf-menu ul li.sfHover > a > .sf-sub-indicator {
  143. background-position: -10px 0; /* arrow hovers for modern browsers*/
  144. }
  145. /*** shadows for all but IE6 ***/
  146. .sf-shadow ul {
  147. background: url('/lib/images/shadow.png') no-repeat bottom right;
  148. padding: 0 8px 9px 0;
  149. -moz-border-radius-bottomleft: 17px;
  150. -moz-border-radius-topright: 17px;
  151. -webkit-border-top-right-radius: 17px;
  152. -webkit-border-bottom-left-radius: 17px;
  153. }
  154. .sf-shadow ul.sf-shadow-off {
  155. background: transparent;
  156. }
  157. /* Footer navigation styles
  158. ---------------------------------------------------------- */
  159. footer #navigation {
  160. margin: 0;
  161. }
  162. footer #navigation li a {
  163. font-size: 12px;
  164. font-variant: small-caps;
  165. text-transform: lowercase;
  166. color: #666;
  167. border: none;
  168. margin: 0 6px 0 0;
  169. }
  170. footer #navigation li a:hover {
  171. color: #154868;
  172. }