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.

626 lines
15 KiB

9 years ago
7 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
  1. /*!
  2. * # Semantic UI 2.2.12 - Sidebar
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Released under the MIT license
  7. * http://opensource.org/licenses/MIT
  8. *
  9. */
  10. /*******************************
  11. Sidebar
  12. *******************************/
  13. /* Sidebar Menu */
  14. .ui.sidebar {
  15. position: fixed;
  16. top: 0;
  17. left: 0;
  18. -webkit-backface-visibility: hidden;
  19. backface-visibility: hidden;
  20. -webkit-transition: none;
  21. transition: none;
  22. will-change: transform;
  23. -webkit-transform: translate3d(0, 0, 0);
  24. transform: translate3d(0, 0, 0);
  25. visibility: hidden;
  26. -webkit-overflow-scrolling: touch;
  27. height: 100% !important;
  28. max-height: 100%;
  29. border-radius: 0em !important;
  30. margin: 0em !important;
  31. overflow-y: auto !important;
  32. z-index: 102;
  33. }
  34. /* GPU Layers for Child Elements */
  35. .ui.sidebar > * {
  36. -webkit-backface-visibility: hidden;
  37. backface-visibility: hidden;
  38. }
  39. /*--------------
  40. Direction
  41. ---------------*/
  42. .ui.left.sidebar {
  43. right: auto;
  44. left: 0px;
  45. -webkit-transform: translate3d(-100%, 0, 0);
  46. transform: translate3d(-100%, 0, 0);
  47. }
  48. .ui.right.sidebar {
  49. right: 0px !important;
  50. left: auto !important;
  51. -webkit-transform: translate3d(100%, 0%, 0);
  52. transform: translate3d(100%, 0%, 0);
  53. }
  54. .ui.top.sidebar,
  55. .ui.bottom.sidebar {
  56. width: 100% !important;
  57. height: auto !important;
  58. }
  59. .ui.top.sidebar {
  60. top: 0px !important;
  61. bottom: auto !important;
  62. -webkit-transform: translate3d(0, -100%, 0);
  63. transform: translate3d(0, -100%, 0);
  64. }
  65. .ui.bottom.sidebar {
  66. top: auto !important;
  67. bottom: 0px !important;
  68. -webkit-transform: translate3d(0, 100%, 0);
  69. transform: translate3d(0, 100%, 0);
  70. }
  71. /*--------------
  72. Pushable
  73. ---------------*/
  74. .pushable {
  75. height: 100%;
  76. overflow-x: hidden;
  77. padding: 0em !important;
  78. }
  79. /* Whole Page */
  80. body.pushable {
  81. background: #545454 !important;
  82. }
  83. /* Page Context */
  84. .pushable:not(body) {
  85. -webkit-transform: translate3d(0, 0, 0);
  86. transform: translate3d(0, 0, 0);
  87. }
  88. .pushable:not(body) > .ui.sidebar,
  89. .pushable:not(body) > .fixed,
  90. .pushable:not(body) > .pusher:after {
  91. position: absolute;
  92. }
  93. /*--------------
  94. Fixed
  95. ---------------*/
  96. .pushable > .fixed {
  97. position: fixed;
  98. -webkit-backface-visibility: hidden;
  99. backface-visibility: hidden;
  100. -webkit-transition: -webkit-transform 500ms ease;
  101. transition: -webkit-transform 500ms ease;
  102. transition: transform 500ms ease;
  103. transition: transform 500ms ease, -webkit-transform 500ms ease;
  104. will-change: transform;
  105. z-index: 101;
  106. }
  107. /*--------------
  108. Page
  109. ---------------*/
  110. .pushable > .pusher {
  111. position: relative;
  112. -webkit-backface-visibility: hidden;
  113. backface-visibility: hidden;
  114. overflow: hidden;
  115. min-height: 100%;
  116. -webkit-transition: -webkit-transform 500ms ease;
  117. transition: -webkit-transform 500ms ease;
  118. transition: transform 500ms ease;
  119. transition: transform 500ms ease, -webkit-transform 500ms ease;
  120. z-index: 2;
  121. }
  122. body.pushable > .pusher {
  123. background: #FFFFFF;
  124. }
  125. /* Pusher should inherit background from context */
  126. .pushable > .pusher {
  127. background: inherit;
  128. }
  129. /*--------------
  130. Dimmer
  131. ---------------*/
  132. .pushable > .pusher:after {
  133. position: fixed;
  134. top: 0px;
  135. right: 0px;
  136. content: '';
  137. background-color: rgba(0, 0, 0, 0.4);
  138. overflow: hidden;
  139. opacity: 0;
  140. -webkit-transition: opacity 500ms;
  141. transition: opacity 500ms;
  142. will-change: opacity;
  143. z-index: 1000;
  144. }
  145. /*--------------
  146. Coupling
  147. ---------------*/
  148. .ui.sidebar.menu .item {
  149. border-radius: 0em !important;
  150. }
  151. /*******************************
  152. States
  153. *******************************/
  154. /*--------------
  155. Dimmed
  156. ---------------*/
  157. .pushable > .pusher.dimmed:after {
  158. width: 100% !important;
  159. height: 100% !important;
  160. opacity: 1 !important;
  161. }
  162. /*--------------
  163. Animating
  164. ---------------*/
  165. .ui.animating.sidebar {
  166. visibility: visible;
  167. }
  168. /*--------------
  169. Visible
  170. ---------------*/
  171. .ui.visible.sidebar {
  172. visibility: visible;
  173. -webkit-transform: translate3d(0, 0, 0);
  174. transform: translate3d(0, 0, 0);
  175. }
  176. /* Shadow Direction */
  177. .ui.left.visible.sidebar,
  178. .ui.right.visible.sidebar {
  179. box-shadow: 0px 0px 20px rgba(34, 36, 38, 0.15);
  180. }
  181. .ui.top.visible.sidebar,
  182. .ui.bottom.visible.sidebar {
  183. box-shadow: 0px 0px 20px rgba(34, 36, 38, 0.15);
  184. }
  185. /* Visible On Load */
  186. .ui.visible.left.sidebar ~ .fixed,
  187. .ui.visible.left.sidebar ~ .pusher {
  188. -webkit-transform: translate3d(260px, 0, 0);
  189. transform: translate3d(260px, 0, 0);
  190. }
  191. .ui.visible.right.sidebar ~ .fixed,
  192. .ui.visible.right.sidebar ~ .pusher {
  193. -webkit-transform: translate3d(-260px, 0, 0);
  194. transform: translate3d(-260px, 0, 0);
  195. }
  196. .ui.visible.top.sidebar ~ .fixed,
  197. .ui.visible.top.sidebar ~ .pusher {
  198. -webkit-transform: translate3d(0, 36px, 0);
  199. transform: translate3d(0, 36px, 0);
  200. }
  201. .ui.visible.bottom.sidebar ~ .fixed,
  202. .ui.visible.bottom.sidebar ~ .pusher {
  203. -webkit-transform: translate3d(0, -36px, 0);
  204. transform: translate3d(0, -36px, 0);
  205. }
  206. /* opposite sides visible forces content overlay */
  207. .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .fixed,
  208. .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher,
  209. .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .fixed,
  210. .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher {
  211. -webkit-transform: translate3d(0, 0, 0);
  212. transform: translate3d(0, 0, 0);
  213. }
  214. /*--------------
  215. iOS
  216. ---------------*/
  217. /*******************************
  218. Variations
  219. *******************************/
  220. /*--------------
  221. Width
  222. ---------------*/
  223. /* Left / Right */
  224. .ui.thin.left.sidebar,
  225. .ui.thin.right.sidebar {
  226. width: 150px;
  227. }
  228. .ui[class*="very thin"].left.sidebar,
  229. .ui[class*="very thin"].right.sidebar {
  230. width: 60px;
  231. }
  232. .ui.left.sidebar,
  233. .ui.right.sidebar {
  234. width: 260px;
  235. }
  236. .ui.wide.left.sidebar,
  237. .ui.wide.right.sidebar {
  238. width: 350px;
  239. }
  240. .ui[class*="very wide"].left.sidebar,
  241. .ui[class*="very wide"].right.sidebar {
  242. width: 475px;
  243. }
  244. /* Left Visible */
  245. .ui.visible.thin.left.sidebar ~ .fixed,
  246. .ui.visible.thin.left.sidebar ~ .pusher {
  247. -webkit-transform: translate3d(150px, 0, 0);
  248. transform: translate3d(150px, 0, 0);
  249. }
  250. .ui.visible[class*="very thin"].left.sidebar ~ .fixed,
  251. .ui.visible[class*="very thin"].left.sidebar ~ .pusher {
  252. -webkit-transform: translate3d(60px, 0, 0);
  253. transform: translate3d(60px, 0, 0);
  254. }
  255. .ui.visible.wide.left.sidebar ~ .fixed,
  256. .ui.visible.wide.left.sidebar ~ .pusher {
  257. -webkit-transform: translate3d(350px, 0, 0);
  258. transform: translate3d(350px, 0, 0);
  259. }
  260. .ui.visible[class*="very wide"].left.sidebar ~ .fixed,
  261. .ui.visible[class*="very wide"].left.sidebar ~ .pusher {
  262. -webkit-transform: translate3d(475px, 0, 0);
  263. transform: translate3d(475px, 0, 0);
  264. }
  265. /* Right Visible */
  266. .ui.visible.thin.right.sidebar ~ .fixed,
  267. .ui.visible.thin.right.sidebar ~ .pusher {
  268. -webkit-transform: translate3d(-150px, 0, 0);
  269. transform: translate3d(-150px, 0, 0);
  270. }
  271. .ui.visible[class*="very thin"].right.sidebar ~ .fixed,
  272. .ui.visible[class*="very thin"].right.sidebar ~ .pusher {
  273. -webkit-transform: translate3d(-60px, 0, 0);
  274. transform: translate3d(-60px, 0, 0);
  275. }
  276. .ui.visible.wide.right.sidebar ~ .fixed,
  277. .ui.visible.wide.right.sidebar ~ .pusher {
  278. -webkit-transform: translate3d(-350px, 0, 0);
  279. transform: translate3d(-350px, 0, 0);
  280. }
  281. .ui.visible[class*="very wide"].right.sidebar ~ .fixed,
  282. .ui.visible[class*="very wide"].right.sidebar ~ .pusher {
  283. -webkit-transform: translate3d(-475px, 0, 0);
  284. transform: translate3d(-475px, 0, 0);
  285. }
  286. /*******************************
  287. Animations
  288. *******************************/
  289. /*--------------
  290. Overlay
  291. ---------------*/
  292. /* Set-up */
  293. .ui.overlay.sidebar {
  294. z-index: 102;
  295. }
  296. /* Initial */
  297. .ui.left.overlay.sidebar {
  298. -webkit-transform: translate3d(-100%, 0%, 0);
  299. transform: translate3d(-100%, 0%, 0);
  300. }
  301. .ui.right.overlay.sidebar {
  302. -webkit-transform: translate3d(100%, 0%, 0);
  303. transform: translate3d(100%, 0%, 0);
  304. }
  305. .ui.top.overlay.sidebar {
  306. -webkit-transform: translate3d(0%, -100%, 0);
  307. transform: translate3d(0%, -100%, 0);
  308. }
  309. .ui.bottom.overlay.sidebar {
  310. -webkit-transform: translate3d(0%, 100%, 0);
  311. transform: translate3d(0%, 100%, 0);
  312. }
  313. /* Animation */
  314. .animating.ui.overlay.sidebar,
  315. .ui.visible.overlay.sidebar {
  316. -webkit-transition: -webkit-transform 500ms ease;
  317. transition: -webkit-transform 500ms ease;
  318. transition: transform 500ms ease;
  319. transition: transform 500ms ease, -webkit-transform 500ms ease;
  320. }
  321. /* End - Sidebar */
  322. .ui.visible.left.overlay.sidebar {
  323. -webkit-transform: translate3d(0%, 0%, 0);
  324. transform: translate3d(0%, 0%, 0);
  325. }
  326. .ui.visible.right.overlay.sidebar {
  327. -webkit-transform: translate3d(0%, 0%, 0);
  328. transform: translate3d(0%, 0%, 0);
  329. }
  330. .ui.visible.top.overlay.sidebar {
  331. -webkit-transform: translate3d(0%, 0%, 0);
  332. transform: translate3d(0%, 0%, 0);
  333. }
  334. .ui.visible.bottom.overlay.sidebar {
  335. -webkit-transform: translate3d(0%, 0%, 0);
  336. transform: translate3d(0%, 0%, 0);
  337. }
  338. /* End - Pusher */
  339. .ui.visible.overlay.sidebar ~ .fixed,
  340. .ui.visible.overlay.sidebar ~ .pusher {
  341. -webkit-transform: none !important;
  342. transform: none !important;
  343. }
  344. /*--------------
  345. Push
  346. ---------------*/
  347. /* Initial */
  348. .ui.push.sidebar {
  349. -webkit-transition: -webkit-transform 500ms ease;
  350. transition: -webkit-transform 500ms ease;
  351. transition: transform 500ms ease;
  352. transition: transform 500ms ease, -webkit-transform 500ms ease;
  353. z-index: 102;
  354. }
  355. /* Sidebar - Initial */
  356. .ui.left.push.sidebar {
  357. -webkit-transform: translate3d(-100%, 0, 0);
  358. transform: translate3d(-100%, 0, 0);
  359. }
  360. .ui.right.push.sidebar {
  361. -webkit-transform: translate3d(100%, 0, 0);
  362. transform: translate3d(100%, 0, 0);
  363. }
  364. .ui.top.push.sidebar {
  365. -webkit-transform: translate3d(0%, -100%, 0);
  366. transform: translate3d(0%, -100%, 0);
  367. }
  368. .ui.bottom.push.sidebar {
  369. -webkit-transform: translate3d(0%, 100%, 0);
  370. transform: translate3d(0%, 100%, 0);
  371. }
  372. /* End */
  373. .ui.visible.push.sidebar {
  374. -webkit-transform: translate3d(0%, 0, 0);
  375. transform: translate3d(0%, 0, 0);
  376. }
  377. /*--------------
  378. Uncover
  379. ---------------*/
  380. /* Initial */
  381. .ui.uncover.sidebar {
  382. -webkit-transform: translate3d(0, 0, 0);
  383. transform: translate3d(0, 0, 0);
  384. z-index: 1;
  385. }
  386. /* End */
  387. .ui.visible.uncover.sidebar {
  388. -webkit-transform: translate3d(0, 0, 0);
  389. transform: translate3d(0, 0, 0);
  390. -webkit-transition: -webkit-transform 500ms ease;
  391. transition: -webkit-transform 500ms ease;
  392. transition: transform 500ms ease;
  393. transition: transform 500ms ease, -webkit-transform 500ms ease;
  394. }
  395. /*--------------
  396. Slide Along
  397. ---------------*/
  398. /* Initial */
  399. .ui.slide.along.sidebar {
  400. z-index: 1;
  401. }
  402. /* Sidebar - Initial */
  403. .ui.left.slide.along.sidebar {
  404. -webkit-transform: translate3d(-50%, 0, 0);
  405. transform: translate3d(-50%, 0, 0);
  406. }
  407. .ui.right.slide.along.sidebar {
  408. -webkit-transform: translate3d(50%, 0, 0);
  409. transform: translate3d(50%, 0, 0);
  410. }
  411. .ui.top.slide.along.sidebar {
  412. -webkit-transform: translate3d(0, -50%, 0);
  413. transform: translate3d(0, -50%, 0);
  414. }
  415. .ui.bottom.slide.along.sidebar {
  416. -webkit-transform: translate3d(0%, 50%, 0);
  417. transform: translate3d(0%, 50%, 0);
  418. }
  419. /* Animation */
  420. .ui.animating.slide.along.sidebar {
  421. -webkit-transition: -webkit-transform 500ms ease;
  422. transition: -webkit-transform 500ms ease;
  423. transition: transform 500ms ease;
  424. transition: transform 500ms ease, -webkit-transform 500ms ease;
  425. }
  426. /* End */
  427. .ui.visible.slide.along.sidebar {
  428. -webkit-transform: translate3d(0%, 0, 0);
  429. transform: translate3d(0%, 0, 0);
  430. }
  431. /*--------------
  432. Slide Out
  433. ---------------*/
  434. /* Initial */
  435. .ui.slide.out.sidebar {
  436. z-index: 1;
  437. }
  438. /* Sidebar - Initial */
  439. .ui.left.slide.out.sidebar {
  440. -webkit-transform: translate3d(50%, 0, 0);
  441. transform: translate3d(50%, 0, 0);
  442. }
  443. .ui.right.slide.out.sidebar {
  444. -webkit-transform: translate3d(-50%, 0, 0);
  445. transform: translate3d(-50%, 0, 0);
  446. }
  447. .ui.top.slide.out.sidebar {
  448. -webkit-transform: translate3d(0%, 50%, 0);
  449. transform: translate3d(0%, 50%, 0);
  450. }
  451. .ui.bottom.slide.out.sidebar {
  452. -webkit-transform: translate3d(0%, -50%, 0);
  453. transform: translate3d(0%, -50%, 0);
  454. }
  455. /* Animation */
  456. .ui.animating.slide.out.sidebar {
  457. -webkit-transition: -webkit-transform 500ms ease;
  458. transition: -webkit-transform 500ms ease;
  459. transition: transform 500ms ease;
  460. transition: transform 500ms ease, -webkit-transform 500ms ease;
  461. }
  462. /* End */
  463. .ui.visible.slide.out.sidebar {
  464. -webkit-transform: translate3d(0%, 0, 0);
  465. transform: translate3d(0%, 0, 0);
  466. }
  467. /*--------------
  468. Scale Down
  469. ---------------*/
  470. /* Initial */
  471. .ui.scale.down.sidebar {
  472. -webkit-transition: -webkit-transform 500ms ease;
  473. transition: -webkit-transform 500ms ease;
  474. transition: transform 500ms ease;
  475. transition: transform 500ms ease, -webkit-transform 500ms ease;
  476. z-index: 102;
  477. }
  478. /* Sidebar - Initial */
  479. .ui.left.scale.down.sidebar {
  480. -webkit-transform: translate3d(-100%, 0, 0);
  481. transform: translate3d(-100%, 0, 0);
  482. }
  483. .ui.right.scale.down.sidebar {
  484. -webkit-transform: translate3d(100%, 0, 0);
  485. transform: translate3d(100%, 0, 0);
  486. }
  487. .ui.top.scale.down.sidebar {
  488. -webkit-transform: translate3d(0%, -100%, 0);
  489. transform: translate3d(0%, -100%, 0);
  490. }
  491. .ui.bottom.scale.down.sidebar {
  492. -webkit-transform: translate3d(0%, 100%, 0);
  493. transform: translate3d(0%, 100%, 0);
  494. }
  495. /* Pusher - Initial */
  496. .ui.scale.down.left.sidebar ~ .pusher {
  497. -webkit-transform-origin: 75% 50%;
  498. transform-origin: 75% 50%;
  499. }
  500. .ui.scale.down.right.sidebar ~ .pusher {
  501. -webkit-transform-origin: 25% 50%;
  502. transform-origin: 25% 50%;
  503. }
  504. .ui.scale.down.top.sidebar ~ .pusher {
  505. -webkit-transform-origin: 50% 75%;
  506. transform-origin: 50% 75%;
  507. }
  508. .ui.scale.down.bottom.sidebar ~ .pusher {
  509. -webkit-transform-origin: 50% 25%;
  510. transform-origin: 50% 25%;
  511. }
  512. /* Animation */
  513. .ui.animating.scale.down > .visible.ui.sidebar {
  514. -webkit-transition: -webkit-transform 500ms ease;
  515. transition: -webkit-transform 500ms ease;
  516. transition: transform 500ms ease;
  517. transition: transform 500ms ease, -webkit-transform 500ms ease;
  518. }
  519. .ui.visible.scale.down.sidebar ~ .pusher,
  520. .ui.animating.scale.down.sidebar ~ .pusher {
  521. display: block !important;
  522. width: 100%;
  523. height: 100%;
  524. overflow: hidden !important;
  525. }
  526. /* End */
  527. .ui.visible.scale.down.sidebar {
  528. -webkit-transform: translate3d(0, 0, 0);
  529. transform: translate3d(0, 0, 0);
  530. }
  531. .ui.visible.scale.down.sidebar ~ .pusher {
  532. -webkit-transform: scale(0.75);
  533. transform: scale(0.75);
  534. }
  535. /*******************************
  536. Theme Overrides
  537. *******************************/
  538. /*******************************
  539. Site Overrides
  540. *******************************/