You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

525 lines
9.9 KiB

  1. /*!
  2. * jquery-drawer v3.2.2
  3. * Flexible drawer menu using jQuery, iScroll and CSS.
  4. * http://git.blivesta.com/drawer
  5. * License : MIT
  6. * Author : blivesta <design@blivesta.com> (http://blivesta.com/)
  7. */
  8. /*!------------------------------------*\
  9. Base
  10. \*!------------------------------------*/
  11. .drawer-open {
  12. overflow: hidden !important;
  13. }
  14. .drawer-nav {
  15. position: fixed;
  16. z-index: 101;
  17. top: 0;
  18. overflow: hidden;
  19. width: 16.25rem;
  20. height: 100%;
  21. color: #222;
  22. background-color: #fff;
  23. }
  24. .drawer-brand {
  25. font-size: 1.5rem;
  26. font-weight: bold;
  27. line-height: 3.75rem;
  28. display: block;
  29. padding-right: .75rem;
  30. padding-left: .75rem;
  31. text-decoration: none;
  32. color: #222;
  33. }
  34. .drawer-menu {
  35. margin: 0;
  36. padding: 0;
  37. list-style: none;
  38. }
  39. .drawer-menu-item {
  40. font-size: 1rem;
  41. display: block;
  42. padding: .75rem;
  43. text-decoration: none;
  44. color: #222;
  45. }
  46. .drawer-menu-item:hover {
  47. text-decoration: underline;
  48. color: #555;
  49. background-color: transparent;
  50. }
  51. /*! overlay */
  52. .drawer-overlay {
  53. position: fixed;
  54. z-index: 100;
  55. top: 0;
  56. left: 0;
  57. display: none;
  58. width: 100%;
  59. height: 100%;
  60. background-color: rgba(0, 0, 0, .2);
  61. }
  62. .drawer-open .drawer-overlay {
  63. display: block;
  64. }
  65. /*!------------------------------------*\
  66. Top
  67. \*!------------------------------------*/
  68. .drawer--top .drawer-nav {
  69. top: -100%;
  70. left: 0;
  71. width: 100%;
  72. height: auto;
  73. max-height: 100%;
  74. -webkit-transition: top .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  75. transition: top .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  76. }
  77. .drawer--top.drawer-open .drawer-nav {
  78. top: 0;
  79. }
  80. .drawer--top .drawer-hamburger,
  81. .drawer--top.drawer-open .drawer-hamburger {
  82. right: 0;
  83. }
  84. /*!------------------------------------*\
  85. Left
  86. \*!------------------------------------*/
  87. .drawer--left .drawer-nav {
  88. left: -16.25rem;
  89. -webkit-transition: left .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  90. transition: left .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  91. }
  92. .drawer--left.drawer-open .drawer-nav,
  93. .drawer--left .drawer-hamburger,
  94. .drawer--left.drawer-open .drawer-navbar .drawer-hamburger {
  95. left: 0;
  96. }
  97. .drawer--left.drawer-open .drawer-hamburger {
  98. left: 16.25rem;
  99. }
  100. /*!------------------------------------*\
  101. Right
  102. \*!------------------------------------*/
  103. .drawer--right .drawer-nav {
  104. right: -16.25rem;
  105. -webkit-transition: right .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  106. transition: right .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  107. }
  108. .drawer--right.drawer-open .drawer-nav,
  109. .drawer--right .drawer-hamburger,
  110. .drawer--right.drawer-open .drawer-navbar .drawer-hamburger {
  111. right: 0;
  112. }
  113. .drawer--right.drawer-open .drawer-hamburger {
  114. right: 16.25rem;
  115. }
  116. /*!------------------------------------*\
  117. Hamburger
  118. \*!------------------------------------*/
  119. .drawer-hamburger {
  120. position: fixed;
  121. z-index: 104;
  122. top: 0;
  123. display: block;
  124. box-sizing: content-box;
  125. width: 2rem;
  126. padding: 0;
  127. padding-top: 18px;
  128. padding-right: .75rem;
  129. padding-bottom: 30px;
  130. padding-left: .75rem;
  131. -webkit-transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  132. transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  133. -webkit-transform: translate3d(0, 0, 0);
  134. transform: translate3d(0, 0, 0);
  135. border: 0;
  136. outline: 0;
  137. background-color: transparent;
  138. }
  139. .drawer-hamburger:hover {
  140. cursor: pointer;
  141. background-color: transparent;
  142. }
  143. .drawer-hamburger-icon {
  144. position: relative;
  145. display: block;
  146. margin-top: 10px;
  147. }
  148. .drawer-hamburger-icon,
  149. .drawer-hamburger-icon:before,
  150. .drawer-hamburger-icon:after {
  151. width: 100%;
  152. height: 2px;
  153. -webkit-transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  154. transition: all .6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
  155. background-color: #222;
  156. }
  157. .drawer-hamburger-icon:before,
  158. .drawer-hamburger-icon:after {
  159. position: absolute;
  160. top: -10px;
  161. left: 0;
  162. content: ' ';
  163. }
  164. .drawer-hamburger-icon:after {
  165. top: 10px;
  166. }
  167. .drawer-open .drawer-hamburger-icon {
  168. background-color: transparent;
  169. }
  170. .drawer-open .drawer-hamburger-icon:before,
  171. .drawer-open .drawer-hamburger-icon:after {
  172. top: 0;
  173. }
  174. .drawer-open .drawer-hamburger-icon:before {
  175. -webkit-transform: rotate(45deg);
  176. transform: rotate(45deg);
  177. }
  178. .drawer-open .drawer-hamburger-icon:after {
  179. -webkit-transform: rotate(-45deg);
  180. transform: rotate(-45deg);
  181. }
  182. /*!------------------------------------*\
  183. accessibility
  184. \*!------------------------------------*/
  185. /*!
  186. * Only display content to screen readers
  187. * See: http://a11yproject.com/posts/how-to-hide-content
  188. */
  189. .sr-only {
  190. position: absolute;
  191. overflow: hidden;
  192. clip: rect(0, 0, 0, 0);
  193. width: 1px;
  194. height: 1px;
  195. margin: -1px;
  196. padding: 0;
  197. border: 0;
  198. }
  199. /*!
  200. * Use in conjunction with .sr-only to only display content when it's focused.
  201. * Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
  202. * Credit: HTML5 Boilerplate
  203. */
  204. .sr-only-focusable:active,
  205. .sr-only-focusable:focus {
  206. position: static;
  207. overflow: visible;
  208. clip: auto;
  209. width: auto;
  210. height: auto;
  211. margin: 0;
  212. }
  213. /*!------------------------------------*\
  214. Sidebar
  215. \*!------------------------------------*/
  216. .drawer--sidebar {
  217. background-color: #fff;
  218. }
  219. .drawer--sidebar .drawer-contents {
  220. background-color: #fff;
  221. }
  222. @media (min-width: 64em) {
  223. .drawer--sidebar .drawer-hamburger {
  224. display: none;
  225. visibility: hidden;
  226. }
  227. .drawer--sidebar .drawer-nav {
  228. display: block;
  229. -webkit-transform: none;
  230. transform: none;
  231. position: fixed;
  232. width: 12.5rem;
  233. height: 100%;
  234. }
  235. /*! Left */
  236. .drawer--sidebar.drawer--left .drawer-nav {
  237. left: 0;
  238. border-right: 1px solid #ddd;
  239. }
  240. .drawer--sidebar.drawer--left .drawer-contents {
  241. margin-left: 12.5rem;
  242. }
  243. /*! Right */
  244. .drawer--sidebar.drawer--right .drawer-nav {
  245. right: 0;
  246. border-left: 1px solid #ddd;
  247. }
  248. .drawer--sidebar.drawer--right .drawer-contents {
  249. margin-right: 12.5rem;
  250. }
  251. /*! container */
  252. .drawer--sidebar .drawer-container {
  253. max-width: 48rem;
  254. }
  255. }
  256. @media (min-width: 75em) {
  257. .drawer--sidebar .drawer-nav {
  258. width: 16.25rem;
  259. }
  260. .drawer--sidebar.drawer--left .drawer-contents {
  261. margin-left: 16.25rem;
  262. }
  263. .drawer--sidebar.drawer--right .drawer-contents {
  264. margin-right: 16.25rem;
  265. }
  266. /*! container */
  267. .drawer--sidebar .drawer-container {
  268. max-width: 60rem;
  269. }
  270. }
  271. /*!------------------------------------*\
  272. Navbar
  273. \*!------------------------------------*/
  274. .drawer--navbarTopGutter {
  275. padding-top: 3.75rem;
  276. }
  277. .drawer-navbar .drawer-navbar-header {
  278. border-bottom: 1px solid #ddd;
  279. background-color: #fff;
  280. }
  281. .drawer-navbar {
  282. z-index: 102;
  283. top: 0;
  284. width: 100%;
  285. }
  286. /*! .drawer-navbar modifier */
  287. .drawer-navbar--fixed {
  288. position: fixed;
  289. }
  290. .drawer-navbar-header {
  291. position: relative;
  292. z-index: 102;
  293. box-sizing: border-box;
  294. width: 100%;
  295. height: 3.75rem;
  296. padding: 0 .75rem;
  297. text-align: center;
  298. }
  299. .drawer-navbar .drawer-brand {
  300. line-height: 3.75rem;
  301. display: inline-block;
  302. padding-top: 0;
  303. padding-bottom: 0;
  304. text-decoration: none;
  305. }
  306. .drawer-navbar .drawer-brand:hover {
  307. background-color: transparent;
  308. }
  309. .drawer-navbar .drawer-nav {
  310. padding-top: 3.75rem;
  311. }
  312. .drawer-navbar .drawer-menu {
  313. padding-bottom: 7.5rem;
  314. }
  315. @media (min-width: 64em) {
  316. .drawer-navbar {
  317. height: 3.75rem;
  318. border-bottom: 1px solid #ddd;
  319. background-color: #fff;
  320. }
  321. .drawer-navbar .drawer-navbar-header {
  322. position: relative;
  323. display: block;
  324. float: left;
  325. width: auto;
  326. padding: 0;
  327. border: 0;
  328. }
  329. .drawer-navbar .drawer-menu--right {
  330. float: right;
  331. }
  332. .drawer-navbar .drawer-menu li {
  333. float: left;
  334. }
  335. .drawer-navbar .drawer-menu-item {
  336. line-height: 3.75rem;
  337. padding-top: 0;
  338. padding-bottom: 0;
  339. }
  340. .drawer-navbar .drawer-hamburger {
  341. display: none;
  342. }
  343. .drawer-navbar .drawer-nav {
  344. position: relative;
  345. left: 0;
  346. overflow: visible;
  347. width: auto;
  348. height: 3.75rem;
  349. padding-top: 0;
  350. -webkit-transform: translate3d(0, 0, 0);
  351. transform: translate3d(0, 0, 0);
  352. }
  353. .drawer-navbar .drawer-menu {
  354. padding: 0;
  355. }
  356. /*! dropdown */
  357. .drawer-navbar .drawer-dropdown-menu {
  358. position: absolute;
  359. width: 16.25rem;
  360. border: 1px solid #ddd;
  361. }
  362. .drawer-navbar .drawer-dropdown-menu-item {
  363. padding-left: .75rem;
  364. }
  365. }
  366. /*!------------------------------------*\
  367. Dropdown
  368. \*!------------------------------------*/
  369. .drawer-dropdown-menu {
  370. display: none;
  371. box-sizing: border-box;
  372. width: 100%;
  373. margin: 0;
  374. padding: 0;
  375. background-color: #fff;
  376. }
  377. .drawer-dropdown-menu > li {
  378. width: 100%;
  379. list-style: none;
  380. }
  381. .drawer-dropdown-menu-item {
  382. line-height: 3.75rem;
  383. display: block;
  384. padding: 0;
  385. padding-right: .75rem;
  386. padding-left: 1.5rem;
  387. text-decoration: none;
  388. color: #222;
  389. }
  390. .drawer-dropdown-menu-item:hover {
  391. text-decoration: underline;
  392. color: #555;
  393. background-color: transparent;
  394. }
  395. /*! open */
  396. .drawer-dropdown.open > .drawer-dropdown-menu {
  397. display: block;
  398. }
  399. /*! drawer-caret */
  400. .drawer-dropdown .drawer-caret {
  401. display: inline-block;
  402. width: 0;
  403. height: 0;
  404. margin-left: 4px;
  405. -webkit-transition: opacity .2s ease, -webkit-transform .2s ease;
  406. transition: opacity .2s ease, -webkit-transform .2s ease;
  407. transition: transform .2s ease, opacity .2s ease;
  408. transition: transform .2s ease, opacity .2s ease, -webkit-transform .2s ease;
  409. -webkit-transform: rotate(0deg);
  410. transform: rotate(0deg);
  411. vertical-align: middle;
  412. border-top: 4px solid;
  413. border-right: 4px solid transparent;
  414. border-left: 4px solid transparent;
  415. }
  416. /*! open */
  417. .drawer-dropdown.open .drawer-caret {
  418. -webkit-transform: rotate(180deg);
  419. transform: rotate(180deg);
  420. }
  421. /*!------------------------------------*\
  422. Container
  423. \*!------------------------------------*/
  424. .drawer-container {
  425. margin-right: auto;
  426. margin-left: auto;
  427. }
  428. @media (min-width: 64em) {
  429. .drawer-container {
  430. max-width: 60rem;
  431. }
  432. }
  433. @media (min-width: 75em) {
  434. .drawer-container {
  435. max-width: 70rem;
  436. }
  437. }