menu.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. @import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700);
  2. #cssmenu {
  3. background: #222;
  4. margin: 0;
  5. width: auto;
  6. padding: 0;
  7. line-height: 1;
  8. display: block;
  9. position: relative;
  10. z-index: 9999;
  11. }
  12. #cssmenu ul {
  13. list-style: none;
  14. margin: 0;
  15. padding: 0;
  16. display: block;
  17. }
  18. #cssmenu ul:after,
  19. #cssmenu:after {
  20. content: " ";
  21. display: block;
  22. font-size: 0;
  23. height: 0;
  24. clear: both;
  25. visibility: hidden;
  26. }
  27. #cssmenu ul li {
  28. margin: 0;
  29. padding: 0;
  30. display: block;
  31. position: relative;
  32. }
  33. #cssmenu ul li a {
  34. text-decoration: none;
  35. display: block;
  36. margin: 0;
  37. -webkit-transition: color .2s ease;
  38. -moz-transition: color .2s ease;
  39. -ms-transition: color .2s ease;
  40. -o-transition: color .2s ease;
  41. transition: color .2s ease;
  42. -webkit-box-sizing: border-box;
  43. -moz-box-sizing: border-box;
  44. box-sizing: border-box;
  45. }
  46. #cssmenu ul li ul {
  47. position: absolute;
  48. left: -9999px;
  49. top: auto;
  50. }
  51. #cssmenu ul li ul li {
  52. max-height: 0;
  53. position: absolute;
  54. -webkit-transition: max-height 0.4s ease-out;
  55. -moz-transition: max-height 0.4s ease-out;
  56. -ms-transition: max-height 0.4s ease-out;
  57. -o-transition: max-height 0.4s ease-out;
  58. transition: max-height 0.4s ease-out;
  59. background: #313131;
  60. }
  61. #cssmenu ul li ul li.has-sub:after {
  62. display: block;
  63. position: absolute;
  64. content: "";
  65. height: 10px;
  66. width: 10px;
  67. border-radius: 5px;
  68. background: #000000;
  69. z-index: 1;
  70. top: 13px;
  71. right: 15px;
  72. }
  73. #cssmenu.align-right ul li ul li.has-sub:after {
  74. right: auto;
  75. left: 15px;
  76. }
  77. #cssmenu ul li ul li.has-sub:before {
  78. display: block;
  79. position: absolute;
  80. content: "";
  81. height: 0;
  82. width: 0;
  83. border: 3px solid transparent;
  84. border-left-color: #ffffff;
  85. z-index: 2;
  86. top: 15px;
  87. right: 15px;
  88. }
  89. #cssmenu.align-right ul li ul li.has-sub:before {
  90. right: auto;
  91. left: 15px;
  92. border-left-color: transparent;
  93. border-right-color: #ffffff;
  94. }
  95. #cssmenu ul li ul li a {
  96. font-size: 14px;
  97. font-weight: 400;
  98. text-transform: none;
  99. color: #d1d1d1;
  100. letter-spacing: 0;
  101. display: block;
  102. width: 170px;
  103. padding: 11px 10px 11px 20px;
  104. }
  105. #cssmenu ul li ul li:hover {
  106. background: #4A4C4E;
  107. }
  108. #cssmenu ul li ul li:hover > a,
  109. #cssmenu ul li ul li.active > a {
  110. color: #fff;
  111. }
  112. #cssmenu ul li ul li:hover:after,
  113. #cssmenu ul li ul li.active:after {
  114. background: #1A1C1E;
  115. }
  116. #cssmenu ul li ul li:hover > ul {
  117. left: 100%;
  118. top: 0;
  119. }
  120. #cssmenu ul li ul li:hover > ul > li {
  121. max-height: 72px;
  122. position: relative;
  123. }
  124. #cssmenu > ul > li {
  125. float: left;
  126. }
  127. #cssmenu.align-center > ul > li {
  128. float: none;
  129. display: inline-block;
  130. }
  131. #cssmenu.align-center > ul {
  132. text-align: center;
  133. }
  134. #cssmenu.align-center ul ul {
  135. text-align: left;
  136. }
  137. #cssmenu.align-right > ul {
  138. float: right;
  139. }
  140. #cssmenu.align-right > ul > li:hover > ul {
  141. left: auto;
  142. right: 0;
  143. }
  144. #cssmenu.align-right ul ul li:hover > ul {
  145. right: 100%;
  146. left: auto;
  147. }
  148. #cssmenu.align-right ul ul li a {
  149. text-align: right;
  150. }
  151. #cssmenu > ul > li:after {
  152. content: "";
  153. display: block;
  154. position: absolute;
  155. width: 100%;
  156. height: 0;
  157. top: 0;
  158. z-index: 0;
  159. background: #C4A648;
  160. -webkit-transition: height .2s;
  161. -moz-transition: height .2s;
  162. -ms-transition: height .2s;
  163. -o-transition: height .2s;
  164. transition: height .2s;
  165. }
  166. #cssmenu > ul > li.has-sub > a {
  167. padding-right: 40px;
  168. }
  169. #cssmenu > ul > li.has-sub > a:after {
  170. display: block;
  171. content: "";
  172. background: #ffffff;
  173. height: 12px;
  174. width: 12px;
  175. position: absolute;
  176. border-radius: 13px;
  177. right: 14px;
  178. top: 16px;
  179. }
  180. #cssmenu > ul > li.has-sub > a:before {
  181. display: block;
  182. content: "";
  183. border: 4px solid transparent;
  184. border-top-color: #4A4C4E;
  185. z-index: 2;
  186. height: 0;
  187. width: 0;
  188. position: absolute;
  189. right: 16px;
  190. top: 21px;
  191. }
  192. #cssmenu > ul > li > a {
  193. color: #fff;
  194. padding: 15px 20px;
  195. font-weight: 600;
  196. letter-spacing: 1px;
  197. text-transform: uppercase;
  198. font-size: 14px;
  199. z-index: 2;
  200. position: relative;
  201. }
  202. #cssmenu > ul > li:hover:after,
  203. #cssmenu > ul > li.active:after {
  204. height: 100%;
  205. }
  206. #cssmenu > ul > li:hover > a,
  207. #cssmenu > ul > li.active > a {
  208. color: #fff;
  209. }
  210. #cssmenu > ul > li:hover > a:after,
  211. #cssmenu > ul > li.active > a:after {
  212. background: #000000;
  213. }
  214. #cssmenu > ul > li:hover > a:before,
  215. #cssmenu > ul > li.active > a:before {
  216. border-top-color: #ffffff;
  217. }
  218. #cssmenu > ul > li:hover > ul {
  219. left: 0;
  220. }
  221. #cssmenu > ul > li:hover > ul > li {
  222. max-height: 72px;
  223. position: relative;
  224. }
  225. #cssmenu #menu-button {
  226. display: none;
  227. }
  228. #cssmenu > ul > li > a {
  229. display: block;
  230. }
  231. #cssmenu > ul > li {
  232. width: auto;
  233. }
  234. #cssmenu > ul > li > ul {
  235. width: 170px;
  236. display: block;
  237. }
  238. #cssmenu > ul > li > ul > li {
  239. width: 170px;
  240. display: block;
  241. }
  242. @media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
  243. #cssmenu > ul {
  244. max-height: 0;
  245. overflow: hidden;
  246. -webkit-transition: max-height 0.35s ease-out;
  247. -moz-transition: max-height 0.35s ease-out;
  248. -ms-transition: max-height 0.35s ease-out;
  249. -o-transition: max-height 0.35s ease-out;
  250. transition: max-height 0.35s ease-out;
  251. }
  252. #cssmenu > ul > li > ul {
  253. width: 100%;
  254. display: block;
  255. }
  256. #cssmenu.align-right ul li a {
  257. text-align: left;
  258. }
  259. #cssmenu > ul > li > ul > li {
  260. width: 100%;
  261. display: block;
  262. }
  263. #cssmenu.align-right ul ul li a {
  264. text-align: left;
  265. }
  266. #cssmenu > ul > li > ul > li > a {
  267. width: 100%;
  268. display: block;
  269. }
  270. #cssmenu ul li ul li a {
  271. width: 100%;
  272. }
  273. #cssmenu.align-center > ul {
  274. text-align: left;
  275. }
  276. #cssmenu.align-center > ul > li {
  277. display: block;
  278. }
  279. #cssmenu > ul.open {
  280. max-height: 1000px;
  281. border-top: 1px solid rgba(110, 110, 110, 0.25);
  282. }
  283. #cssmenu ul {
  284. width: 100%;
  285. }
  286. #cssmenu ul > li {
  287. float: none;
  288. width: 100%;
  289. }
  290. #cssmenu ul li a {
  291. -webkit-box-sizing: border-box;
  292. -moz-box-sizing: border-box;
  293. box-sizing: border-box;
  294. width: 100%;
  295. padding: 12px 20px;
  296. }
  297. #cssmenu ul > li:after {
  298. display: none;
  299. }
  300. #cssmenu ul li.has-sub > a:after,
  301. #cssmenu ul li.has-sub > a:before,
  302. #cssmenu ul li ul li.has-sub:after,
  303. #cssmenu ul li ul li.has-sub:before {
  304. display: none;
  305. }
  306. #cssmenu ul li ul,
  307. #cssmenu ul li ul li ul,
  308. #cssmenu ul li ul li:hover > ul,
  309. #cssmenu.align-right ul li ul,
  310. #cssmenu.align-right ul li ul li ul,
  311. #cssmenu.align-right ul li ul li:hover > ul {
  312. left: 0;
  313. position: relative;
  314. right: auto;
  315. }
  316. #cssmenu ul li ul li,
  317. #cssmenu ul li:hover > ul > li {
  318. max-height: 999px;
  319. position: relative;
  320. background: none;
  321. }
  322. #cssmenu ul li ul li a {
  323. padding: 8px 20px 8px 35px;
  324. color: #ffffff;
  325. }
  326. #cssmenu ul li ul ul li a {
  327. padding: 8px 20px 8px 50px;
  328. }
  329. #cssmenu ul li ul li:hover > a {
  330. color: #000000;
  331. }
  332. #cssmenu #menu-button {
  333. display: block;
  334. -webkit-box-sizing: border-box;
  335. -moz-box-sizing: border-box;
  336. box-sizing: border-box;
  337. width: 100%;
  338. padding: 15px 20px;
  339. text-transform: uppercase;
  340. font-weight: 700;
  341. font-size: 14px;
  342. letter-spacing: 1px;
  343. color: #ffffff;
  344. cursor: pointer;
  345. }
  346. #cssmenu #menu-button:after {
  347. display: block;
  348. content: '';
  349. position: absolute;
  350. height: 3px;
  351. width: 22px;
  352. border-top: 2px solid #ffffff;
  353. border-bottom: 2px solid #ffffff;
  354. right: 20px;
  355. top: 16px;
  356. }
  357. #cssmenu #menu-button:before {
  358. display: block;
  359. content: '';
  360. position: absolute;
  361. height: 3px;
  362. width: 22px;
  363. border-top: 2px solid #ffffff;
  364. right: 20px;
  365. top: 26px;
  366. }
  367. }