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.

645 lines
15 KiB

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