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.

623 lines
14 KiB

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