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.

627 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
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
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.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. html.ios,
  224. html.ios body {
  225. height: initial !important;
  226. }
  227. /*******************************
  228. Variations
  229. *******************************/
  230. /*--------------
  231. Width
  232. ---------------*/
  233. /* Left / Right */
  234. .ui[class*="very thin"].left.sidebar,
  235. .ui[class*="very thin"].right.sidebar {
  236. width: 60px;
  237. }
  238. .ui.thin.left.sidebar,
  239. .ui.thin.right.sidebar {
  240. width: 150px;
  241. }
  242. .ui.left.sidebar,
  243. .ui.right.sidebar {
  244. width: 260px;
  245. }
  246. .ui.wide.left.sidebar,
  247. .ui.wide.right.sidebar {
  248. width: 350px;
  249. }
  250. .ui[class*="very wide"].left.sidebar,
  251. .ui[class*="very wide"].right.sidebar {
  252. width: 475px;
  253. }
  254. /* Left Visible */
  255. .ui.visible[class*="very thin"].left.sidebar ~ .fixed,
  256. .ui.visible[class*="very thin"].left.sidebar ~ .pusher {
  257. -webkit-transform: translate3d(60px, 0, 0);
  258. transform: translate3d(60px, 0, 0);
  259. }
  260. .ui.visible.thin.left.sidebar ~ .fixed,
  261. .ui.visible.thin.left.sidebar ~ .pusher {
  262. -webkit-transform: translate3d(150px, 0, 0);
  263. transform: translate3d(150px, 0, 0);
  264. }
  265. .ui.visible.wide.left.sidebar ~ .fixed,
  266. .ui.visible.wide.left.sidebar ~ .pusher {
  267. -webkit-transform: translate3d(350px, 0, 0);
  268. transform: translate3d(350px, 0, 0);
  269. }
  270. .ui.visible[class*="very wide"].left.sidebar ~ .fixed,
  271. .ui.visible[class*="very wide"].left.sidebar ~ .pusher {
  272. -webkit-transform: translate3d(475px, 0, 0);
  273. transform: translate3d(475px, 0, 0);
  274. }
  275. /* Right Visible */
  276. .ui.visible[class*="very thin"].right.sidebar ~ .fixed,
  277. .ui.visible[class*="very thin"].right.sidebar ~ .pusher {
  278. -webkit-transform: translate3d(-60px, 0, 0);
  279. transform: translate3d(-60px, 0, 0);
  280. }
  281. .ui.visible.thin.right.sidebar ~ .fixed,
  282. .ui.visible.thin.right.sidebar ~ .pusher {
  283. -webkit-transform: translate3d(-150px, 0, 0);
  284. transform: translate3d(-150px, 0, 0);
  285. }
  286. .ui.visible.wide.right.sidebar ~ .fixed,
  287. .ui.visible.wide.right.sidebar ~ .pusher {
  288. -webkit-transform: translate3d(-350px, 0, 0);
  289. transform: translate3d(-350px, 0, 0);
  290. }
  291. .ui.visible[class*="very wide"].right.sidebar ~ .fixed,
  292. .ui.visible[class*="very wide"].right.sidebar ~ .pusher {
  293. -webkit-transform: translate3d(-475px, 0, 0);
  294. transform: translate3d(-475px, 0, 0);
  295. }
  296. /*******************************
  297. Animations
  298. *******************************/
  299. /*--------------
  300. Overlay
  301. ---------------*/
  302. /* Set-up */
  303. .ui.overlay.sidebar {
  304. z-index: 102;
  305. }
  306. /* Initial */
  307. .ui.left.overlay.sidebar {
  308. -webkit-transform: translate3d(-100%, 0%, 0);
  309. transform: translate3d(-100%, 0%, 0);
  310. }
  311. .ui.right.overlay.sidebar {
  312. -webkit-transform: translate3d(100%, 0%, 0);
  313. transform: translate3d(100%, 0%, 0);
  314. }
  315. .ui.top.overlay.sidebar {
  316. -webkit-transform: translate3d(0%, -100%, 0);
  317. transform: translate3d(0%, -100%, 0);
  318. }
  319. .ui.bottom.overlay.sidebar {
  320. -webkit-transform: translate3d(0%, 100%, 0);
  321. transform: translate3d(0%, 100%, 0);
  322. }
  323. /* Animation */
  324. .animating.ui.overlay.sidebar,
  325. .ui.visible.overlay.sidebar {
  326. -webkit-transition: -webkit-transform 500ms ease;
  327. transition: transform 500ms ease;
  328. }
  329. /* End - Sidebar */
  330. .ui.visible.left.overlay.sidebar {
  331. -webkit-transform: translate3d(0%, 0%, 0);
  332. transform: translate3d(0%, 0%, 0);
  333. }
  334. .ui.visible.right.overlay.sidebar {
  335. -webkit-transform: translate3d(0%, 0%, 0);
  336. transform: translate3d(0%, 0%, 0);
  337. }
  338. .ui.visible.top.overlay.sidebar {
  339. -webkit-transform: translate3d(0%, 0%, 0);
  340. transform: translate3d(0%, 0%, 0);
  341. }
  342. .ui.visible.bottom.overlay.sidebar {
  343. -webkit-transform: translate3d(0%, 0%, 0);
  344. transform: translate3d(0%, 0%, 0);
  345. }
  346. /* End - Pusher */
  347. .ui.visible.overlay.sidebar ~ .fixed,
  348. .ui.visible.overlay.sidebar ~ .pusher {
  349. -webkit-transform: none !important;
  350. -ms-transform: none !important;
  351. transform: none !important;
  352. }
  353. /*--------------
  354. Push
  355. ---------------*/
  356. /* Initial */
  357. .ui.push.sidebar {
  358. -webkit-transition: -webkit-transform 500ms ease;
  359. transition: transform 500ms ease;
  360. z-index: 102;
  361. }
  362. /* Sidebar - Initial */
  363. .ui.left.push.sidebar {
  364. -webkit-transform: translate3d(-100%, 0, 0);
  365. transform: translate3d(-100%, 0, 0);
  366. }
  367. .ui.right.push.sidebar {
  368. -webkit-transform: translate3d(100%, 0, 0);
  369. transform: translate3d(100%, 0, 0);
  370. }
  371. .ui.top.push.sidebar {
  372. -webkit-transform: translate3d(0%, -100%, 0);
  373. transform: translate3d(0%, -100%, 0);
  374. }
  375. .ui.bottom.push.sidebar {
  376. -webkit-transform: translate3d(0%, 100%, 0);
  377. transform: translate3d(0%, 100%, 0);
  378. }
  379. /* End */
  380. .ui.visible.push.sidebar {
  381. -webkit-transform: translate3d(0%, 0, 0);
  382. transform: translate3d(0%, 0, 0);
  383. }
  384. /*--------------
  385. Uncover
  386. ---------------*/
  387. /* Initial */
  388. .ui.uncover.sidebar {
  389. -webkit-transform: translate3d(0, 0, 0);
  390. transform: translate3d(0, 0, 0);
  391. z-index: 1;
  392. }
  393. /* End */
  394. .ui.visible.uncover.sidebar {
  395. -webkit-transform: translate3d(0, 0, 0);
  396. transform: translate3d(0, 0, 0);
  397. -webkit-transition: -webkit-transform 500ms ease;
  398. transition: transform 500ms ease;
  399. }
  400. /*--------------
  401. Slide Along
  402. ---------------*/
  403. /* Initial */
  404. .ui.slide.along.sidebar {
  405. z-index: 1;
  406. }
  407. /* Sidebar - Initial */
  408. .ui.left.slide.along.sidebar {
  409. -webkit-transform: translate3d(-50%, 0, 0);
  410. transform: translate3d(-50%, 0, 0);
  411. }
  412. .ui.right.slide.along.sidebar {
  413. -webkit-transform: translate3d(50%, 0, 0);
  414. transform: translate3d(50%, 0, 0);
  415. }
  416. .ui.top.slide.along.sidebar {
  417. -webkit-transform: translate3d(0, -50%, 0);
  418. transform: translate3d(0, -50%, 0);
  419. }
  420. .ui.bottom.slide.along.sidebar {
  421. -webkit-transform: translate3d(0%, 50%, 0);
  422. transform: translate3d(0%, 50%, 0);
  423. }
  424. /* Animation */
  425. .ui.animating.slide.along.sidebar {
  426. -webkit-transition: -webkit-transform 500ms ease;
  427. transition: transform 500ms ease;
  428. }
  429. /* End */
  430. .ui.visible.slide.along.sidebar {
  431. -webkit-transform: translate3d(0%, 0, 0);
  432. transform: translate3d(0%, 0, 0);
  433. }
  434. /*--------------
  435. Slide Out
  436. ---------------*/
  437. /* Initial */
  438. .ui.slide.out.sidebar {
  439. z-index: 1;
  440. }
  441. /* Sidebar - Initial */
  442. .ui.left.slide.out.sidebar {
  443. -webkit-transform: translate3d(50%, 0, 0);
  444. transform: translate3d(50%, 0, 0);
  445. }
  446. .ui.right.slide.out.sidebar {
  447. -webkit-transform: translate3d(-50%, 0, 0);
  448. transform: translate3d(-50%, 0, 0);
  449. }
  450. .ui.top.slide.out.sidebar {
  451. -webkit-transform: translate3d(0%, 50%, 0);
  452. transform: translate3d(0%, 50%, 0);
  453. }
  454. .ui.bottom.slide.out.sidebar {
  455. -webkit-transform: translate3d(0%, -50%, 0);
  456. transform: translate3d(0%, -50%, 0);
  457. }
  458. /* Animation */
  459. .ui.animating.slide.out.sidebar {
  460. -webkit-transition: -webkit-transform 500ms ease;
  461. transition: transform 500ms ease;
  462. }
  463. /* End */
  464. .ui.visible.slide.out.sidebar {
  465. -webkit-transform: translate3d(0%, 0, 0);
  466. transform: translate3d(0%, 0, 0);
  467. }
  468. /*--------------
  469. Scale Down
  470. ---------------*/
  471. /* Initial */
  472. .ui.scale.down.sidebar {
  473. -webkit-transition: -webkit-transform 500ms ease;
  474. transition: transform 500ms ease;
  475. z-index: 102;
  476. }
  477. /* Sidebar - Initial */
  478. .ui.left.scale.down.sidebar {
  479. -webkit-transform: translate3d(-100%, 0, 0);
  480. transform: translate3d(-100%, 0, 0);
  481. }
  482. .ui.right.scale.down.sidebar {
  483. -webkit-transform: translate3d(100%, 0, 0);
  484. transform: translate3d(100%, 0, 0);
  485. }
  486. .ui.top.scale.down.sidebar {
  487. -webkit-transform: translate3d(0%, -100%, 0);
  488. transform: translate3d(0%, -100%, 0);
  489. }
  490. .ui.bottom.scale.down.sidebar {
  491. -webkit-transform: translate3d(0%, 100%, 0);
  492. transform: translate3d(0%, 100%, 0);
  493. }
  494. /* Pusher - Initial */
  495. .ui.scale.down.left.sidebar ~ .pusher {
  496. -webkit-transform-origin: 75% 50%;
  497. -ms-transform-origin: 75% 50%;
  498. transform-origin: 75% 50%;
  499. }
  500. .ui.scale.down.right.sidebar ~ .pusher {
  501. -webkit-transform-origin: 25% 50%;
  502. -ms-transform-origin: 25% 50%;
  503. transform-origin: 25% 50%;
  504. }
  505. .ui.scale.down.top.sidebar ~ .pusher {
  506. -webkit-transform-origin: 50% 75%;
  507. -ms-transform-origin: 50% 75%;
  508. transform-origin: 50% 75%;
  509. }
  510. .ui.scale.down.bottom.sidebar ~ .pusher {
  511. -webkit-transform-origin: 50% 25%;
  512. -ms-transform-origin: 50% 25%;
  513. transform-origin: 50% 25%;
  514. }
  515. /* Animation */
  516. .ui.animating.scale.down > .visible.ui.sidebar {
  517. -webkit-transition: -webkit-transform 500ms ease;
  518. transition: transform 500ms ease;
  519. }
  520. .ui.visible.scale.down.sidebar ~ .pusher,
  521. .ui.animating.scale.down.sidebar ~ .pusher {
  522. display: block !important;
  523. width: 100%;
  524. height: 100%;
  525. overflow: hidden !important;
  526. }
  527. /* End */
  528. .ui.visible.scale.down.sidebar {
  529. -webkit-transform: translate3d(0, 0, 0);
  530. transform: translate3d(0, 0, 0);
  531. }
  532. .ui.visible.scale.down.sidebar ~ .pusher {
  533. -webkit-transform: scale(0.75);
  534. -ms-transform: scale(0.75);
  535. transform: scale(0.75);
  536. }
  537. /*******************************
  538. Theme Overrides
  539. *******************************/
  540. /*******************************
  541. Site Overrides
  542. *******************************/