style.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. @charset "utf-8";
  2. /* 一流素材网www.16sucai.com*/
  3. .accordion,
  4. .accordion ul,
  5. .accordion li,
  6. .accordion a,
  7. .accordion span {
  8. margin: 0;
  9. padding: 0;
  10. border: none;
  11. outline: none;
  12. }
  13. .accordion li {
  14. list-style: none;
  15. }
  16. /* Layout & Style */
  17. .accordion li > a {
  18. display: block;
  19. position: relative;
  20. min-width: 110px;
  21. padding: 0 10px 0 40px;
  22. height: 32px;
  23. color: #fdfdfd;
  24. font: bold 12px/32px Arial, sans-serif;
  25. text-decoration: none;
  26. text-shadow: 0px 1px 0px rgba(0,0,0, .35);
  27. background: #6c6e74;
  28. background: -moz-linear-gradient(top, #6c6e74 0%, #4b4d51 100%);
  29. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6c6e74), color-stop(100%,#4b4d51));
  30. background: -webkit-linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
  31. background: -o-linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
  32. background: -ms-linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
  33. background: linear-gradient(top, #6c6e74 0%,#4b4d51 100%);
  34. -webkit-box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, .1), 0px 1px 0px 0px rgba(0,0,0, .1);
  35. -moz-box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, .1), 0px 1px 0px 0px rgba(0,0,0, .1);
  36. box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, .1), 0px 1px 0px 0px rgba(0,0,0, .1);
  37. }
  38. .accordion > li:hover > a,
  39. .accordion > li:target > a,
  40. .accordion > li > a.active {
  41. color: #3e5706;
  42. text-shadow: 1px 1px 1px rgba(255,255,255, .2);
  43. /*background: url(../img/active.png) repeat-x;*/
  44. background: #a5cd4e;
  45. background: -moz-linear-gradient(top, #a5cd4e 0%, #6b8f1a 100%);
  46. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a5cd4e), color-stop(100%,#6b8f1a));
  47. background: -webkit-linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%);
  48. background: -o-linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%);
  49. background: -ms-linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%);
  50. background: linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%);
  51. }
  52. .accordion li > a span {
  53. display: block;
  54. position: absolute;
  55. top: 7px;
  56. right: 0;
  57. padding: 0 10px;
  58. margin-right: 10px;
  59. font: normal bold 12px/18px Arial, sans-serif;
  60. background: #404247;
  61. -webkit-border-radius: 15px;
  62. -moz-border-radius: 15px;
  63. border-radius: 15px;
  64. -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0, .2), 1px 1px 1px rgba(255,255,255, .1);
  65. -moz-box-shadow: inset 1px 1px 1px rgba(0,0,0, .2), 1px 1px 1px rgba(255,255,255, .1);
  66. box-shadow: inset 1px 1px 1px rgba(0,0,0, .2), 1px 1px 1px rgba(255,255,255, .1);
  67. }
  68. .accordion > li:hover > a span,
  69. .accordion > li:target > a span,
  70. .accordion > li > a.active span {
  71. color: #fdfdfd;
  72. text-shadow: 0px 1px 0px rgba(0,0,0, .35);
  73. background: #3e5706;
  74. }
  75. /* Images */
  76. .accordion > li > a:before {
  77. position: absolute;
  78. top: 0;
  79. left: 0;
  80. content: '';
  81. width: 24px;
  82. height: 24px;
  83. margin: 4px 8px;
  84. background-repeat: no-repeat;
  85. background-position: 0px 0px;
  86. }
  87. .accordion li.files > a:before { background-position: 0px 0px; }
  88. .accordion li.files:hover > a:before,
  89. .accordion li.files:target > a:before,
  90. .accordion li.files > a.active:before { background-position: 0px -24px; }
  91. .accordion li.mail > a:before { background-position: -24px 0px; }
  92. .accordion li.mail:hover > a:before,
  93. .accordion li.mail:target > a:before,
  94. .accordion li.mail > a.active:before { background-position: -24px -24px; }
  95. .accordion li.cloud > a:before { background-position: -48px 0px; }
  96. .accordion li.cloud:hover > a:before,
  97. .accordion li.cloud:target > a:before,
  98. .accordion li.cloud > a.active:before { background-position: -48px -24px; }
  99. .accordion li.sign > a:before { background-position: -72px 0px; }
  100. .accordion li.sign:hover > a:before,
  101. .accordion li.sign:target > a:before,
  102. .accordion li.sign > a.active:before { background-position: -72px -24px; }
  103. /* Sub Menu */
  104. .sub-menu li a {
  105. color: #797979;
  106. text-shadow: 1px 1px 0px rgba(255,255,255, .2);
  107. background: #e5e5e5;
  108. border-bottom: 1px solid #c9c9c9;
  109. -webkit-box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, .1), 0px 1px 0px 0px rgba(0,0,0, .1);
  110. -moz-box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, .1), 0px 1px 0px 0px rgba(0,0,0, .1);
  111. box-shadow: inset 0px 1px 0px 0px rgba(255,255,255, .1), 0px 1px 0px 0px rgba(0,0,0, .1);
  112. }
  113. .sub-menu li:hover a { background: #efefef; }
  114. .sub-menu li:last-child a { border: none; }
  115. .sub-menu li > a span {
  116. color: #797979;
  117. text-shadow: 1px 1px 0px rgba(255,255,255, .2);
  118. background: transparent;
  119. border: 1px solid #c9c9c9;
  120. -webkit-box-shadow: none;
  121. -moz-box-shadow: none;
  122. box-shadow: none;
  123. }
  124. .sub-menu em {
  125. position: absolute;
  126. top: 0;
  127. left: 0;
  128. margin-left: 14px;
  129. color: #a6a6a6;
  130. font: normal 10px/32px Arial, sans-serif;
  131. }
  132. /* Functionality */
  133. .accordion li > .sub-menu {
  134. display: none;
  135. }
  136. .accordion li:target > .sub-menu {
  137. display: block;
  138. }