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.

625 lines
14 KiB

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