Guest User

Untitled

a guest
Sep 15th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. /* Menu */
  2.  
  3. #submenu{
  4. width:100%; float: left;
  5. }
  6.  
  7. /*** ESSENTIAL STYLES ***/
  8. .sf-menu, .sf-menu * {
  9. margin: 0;
  10. padding: 0;
  11. list-style: none;
  12. }
  13. .sf-menu {
  14. width:900px;
  15. margin:0 auto !important;
  16. }
  17. .sf-menu li {
  18. position: relative;
  19. }
  20. .sf-menu ul {
  21. position: absolute;
  22. display: none;
  23. top: 100%;
  24. left: 0;
  25. z-index: 99;
  26. }
  27. .sf-menu > li {
  28. float: left;
  29. }
  30. .sf-menu li:hover > ul,
  31. .sf-menu li.sfHover > ul {
  32. display: block;
  33. }
  34.  
  35. .sf-menu a {
  36. display: block;
  37. position: relative;
  38. }
  39. .sf-menu ul ul {
  40. top: 0;
  41. left: 100%;
  42. }
  43.  
  44. .sf-menu ul li {
  45. left: 0%;
  46. }
  47.  
  48.  
  49. /*** DEMO SKIN ***/
  50. .sf-menu ul {
  51. box-shadow: 2px 2px 6px rgba(0,0,0,.2);
  52. min-width: 12em; /* allow long menu items to determine submenu width */
  53. *width: 12em; /* no auto sub width for IE7, see white-space comment below */
  54. }
  55. .sf-menu a {
  56. /*
  57. border-left: 1px solid #21965f;
  58. border-top: 1px solid #2dc47d;
  59. */
  60. padding: .75em 1em;
  61. text-decoration: none;
  62. zoom: 1; /* IE7 */
  63. }
  64. .sf-menu a:hover{
  65.  
  66. text-decoration: underline;
  67. color: #5499C7;
  68.  
  69. }
  70. .sf-menu li a {
  71. color: #888;
  72. }
  73.  
  74. .sf-menu ul li a {
  75. color: #fff;
  76. }
  77. .sf-menu li {
  78. background: #fff;
  79. white-space: nowrap; /* no need for Supersubs plugin */
  80. *white-space: normal; /* ...unless you support IE7 (let it wrap) */
  81. -webkit-transition: background .2s;
  82. transition: background .2s;
  83. }
  84. .sf-menu ul li {
  85. background: #29b977;
  86.  
  87. }
  88. .sf-menu ul ul li {
  89. background: #29b977;
  90.  
  91. }
  92.  
  93.  
  94. .sf-menu ul li:hover,
  95. .sf-menu ul li.sfHover {
  96. background: #26af6f;
  97. /* only transition out, not in */
  98. -webkit-transition: none;
  99. transition: none;
  100. }
  101.  
  102. /*** arrows (for all except IE7) **/
  103. .sf-arrows .sf-with-ul {
  104. padding-right: 2.5em;
  105. *padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
  106. }
  107. /* styling for both css and generated arrows */
  108. .sf-arrows .sf-with-ul:after {
  109. content: '';
  110. position: absolute;
  111. top: 50%;
  112. right: 1em;
  113. margin-top: -3px;
  114. height: 0;
  115. width: 0;
  116. /* order of following 3 rules important for fallbacks to work */
  117. border: 5px solid transparent;
  118. border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
  119. border-top-color: rgba(255,255,255,.5);
  120. }
  121. .sf-arrows > li > .sf-with-ul:focus:after,
  122. .sf-arrows > li:hover > .sf-with-ul:after,
  123. .sf-arrows > .sfHover > .sf-with-ul:after {
  124. border-top-color: white; /* IE8 fallback colour */
  125. }
  126. /* styling for right-facing arrows */
  127. .sf-arrows ul .sf-with-ul:after {
  128. margin-top: -5px;
  129. margin-right: -3px;
  130. border-color: transparent;
  131. border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
  132. border-left-color: rgba(255,255,255,.5);
  133. }
  134. .sf-arrows ul li > .sf-with-ul:focus:after,
  135. .sf-arrows ul li:hover > .sf-with-ul:after,
  136. .sf-arrows ul .sfHover > .sf-with-ul:after {
  137. border-left-color: white;
  138. }
Advertisement
Add Comment
Please, Sign In to add comment