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.

512 lines
11 KiB

10 years ago
10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git#1.0
  4. *
  5. *
  6. * Copyright 2014 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. visibility: hidden;
  20. height: 100% !important;
  21. border-radius: 0em !important;
  22. margin: 0 !important;
  23. -webkit-transition: none;
  24. transition: none;
  25. will-change: transform;
  26. overflow-y: auto !important;
  27. -webkit-backface-visibility: hidden;
  28. backface-visibility: hidden;
  29. background: #1b1c1d;
  30. width: 260px !important;
  31. }
  32. /*--------------
  33. Direction
  34. ---------------*/
  35. .ui.top.sidebar,
  36. .ui.bottom.sidebar {
  37. width: 100% !important;
  38. height: auto !important;
  39. overflow-y: visible !important;
  40. }
  41. .ui.top.sidebar {
  42. top: 0px !important;
  43. bottom: auto !important;
  44. }
  45. .ui.right.sidebar {
  46. right: 0px !important;
  47. left: auto !important;
  48. }
  49. .ui.bottom.sidebar {
  50. top: auto !important;
  51. bottom: 0px !important;
  52. }
  53. /*--------------
  54. Body
  55. ---------------*/
  56. /* Sets 3D Perspective */
  57. .pushable {
  58. background: #333333 !important;
  59. position: relative;
  60. height: 100%;
  61. overflow-x: hidden;
  62. }
  63. /*--------------
  64. Fixed
  65. ---------------*/
  66. .pushable > .ui.fixed {
  67. position: fixed;
  68. -webkit-transition: -webkit-transform 0.5s ease;
  69. transition: transform 0.5s ease;
  70. z-index: 903;
  71. }
  72. /*--------------
  73. Pusher
  74. ---------------*/
  75. .pushable > .pusher {
  76. background: #333333;
  77. height: 100%;
  78. z-index: 901;
  79. -webkit-transition: -webkit-transform 0.5s ease;
  80. transition: transform 0.5s ease;
  81. }
  82. /*--------------
  83. Page
  84. ---------------*/
  85. .pushable > .pusher > .page {
  86. position: relative;
  87. min-height: 100%;
  88. background: #f7f7f7;
  89. }
  90. /*--------------
  91. Dimmer
  92. ---------------*/
  93. .pushable > .pusher > .page:after {
  94. position: absolute;
  95. top: 0px;
  96. right: 0px;
  97. content: '';
  98. background-color: rgba(0, 0, 0, 0.4);
  99. width: 0px;
  100. height: 0px;
  101. overflow: hidden;
  102. opacity: 0;
  103. z-index: 902;
  104. -webkit-transition: opacity 0.5s;
  105. transition: opacity 0.5s;
  106. will-change: opacity;
  107. }
  108. /*--------------
  109. Coupling
  110. ---------------*/
  111. .ui.sidebar.menu .item {
  112. border-radius: 0em !important;
  113. }
  114. /*******************************
  115. States
  116. *******************************/
  117. /*--------------
  118. Pushed
  119. ---------------*/
  120. .pushable.pushed {
  121. overflow-x: hidden;
  122. }
  123. .pushable.pushed > .fixed,
  124. .pushable.pushed > .pusher {
  125. -webkit-backface-visibility: hidden;
  126. backface-visibility: hidden;
  127. -webkit-overflow-scrolling: touch;
  128. }
  129. .pushable.active > .visible.sidebar {
  130. -webkit-overflow-scrolling: touch;
  131. -webkit-backface-visibility: hidden;
  132. backface-visibility: hidden;
  133. z-index: 904;
  134. }
  135. /*--------------
  136. Dimmed
  137. ---------------*/
  138. .pushable > .pusher > .page.dimmed:after {
  139. width: 100% !important;
  140. height: 100% !important;
  141. opacity: 1 !important;
  142. }
  143. /*--------------
  144. Animation
  145. ---------------*/
  146. .pushable.show > .pusher,
  147. .pushable.hide > .pusher {
  148. -webkit-backface-visibility: hidden;
  149. backface-visibility: hidden;
  150. }
  151. .pushable.show > .visible.sidebar,
  152. .pushable.hide > .visible.sidebar {
  153. -webkit-backface-visibility: hidden;
  154. backface-visibility: hidden;
  155. }
  156. /*--------------
  157. Visible
  158. ---------------*/
  159. .pushable > .visible.ui.sidebar {
  160. visibility: visible;
  161. }
  162. /*******************************
  163. Variations
  164. *******************************/
  165. /*--------------
  166. Styled
  167. ---------------*/
  168. .ui.styled.sidebar {
  169. background-color: #FFFFFF;
  170. padding: 1em 1.25em;
  171. border-right: 1px solid #DDDDDD;
  172. }
  173. /*******************************
  174. Animations
  175. *******************************/
  176. /*--------------
  177. Overlay
  178. ---------------*/
  179. /* Set-up */
  180. .pushable.overlay > .visible.ui.sidebar {
  181. z-index: 904;
  182. }
  183. /* Animation */
  184. .pushable.overlay.show > .visible.ui.sidebar,
  185. .pushable.overlay.hide > .visible.ui.sidebar {
  186. -webkit-transition: -webkit-transform 0.5s ease;
  187. transition: transform 0.5s ease;
  188. }
  189. /*--- Left ---*/
  190. /* Set-up */
  191. .left.pushable.overlay > .visible.ui.sidebar {
  192. -webkit-transform: translate3d(-100%, 0, 0);
  193. transform: translate3d(-100%, 0, 0);
  194. }
  195. /* Pushed */
  196. .left.pushable.overlay.pushed .visible.ui.sidebar {
  197. -webkit-transform: translate3d(0%, 0, 0);
  198. transform: translate3d(0%, 0, 0);
  199. }
  200. /*--- Right ---*/
  201. /* Set-up */
  202. .right.pushable.overlay > .visible.ui.sidebar {
  203. -webkit-transform: translate3d(100%, 0, 0);
  204. transform: translate3d(100%, 0, 0);
  205. }
  206. /* Pushed */
  207. .right.pushable.overlay.pushed .visible.ui.sidebar {
  208. -webkit-transform: translate3d(0%, 0, 0);
  209. transform: translate3d(0%, 0, 0);
  210. }
  211. /*--- Top ---*/
  212. /* Set-up */
  213. .top.pushable.overlay > .visible.ui.sidebar {
  214. -webkit-transform: translate3d(0%, -100%, 0);
  215. transform: translate3d(0%, -100%, 0);
  216. }
  217. /* Pushed */
  218. .top.pushable.overlay.pushed .visible.ui.sidebar {
  219. -webkit-transform: translate3d(0%, 0%, 0);
  220. transform: translate3d(0%, 0%, 0);
  221. }
  222. /*--- Bottom ---*/
  223. /* Set-up */
  224. .bottom.pushable.overlay > .visible.ui.sidebar {
  225. -webkit-transform: translate3d(0%, 100%, 0);
  226. transform: translate3d(0%, 100%, 0);
  227. }
  228. /* Pushed */
  229. .bottom.pushable.overlay.pushed .visible.ui.sidebar {
  230. -webkit-transform: translate3d(0%, 0%, 0);
  231. transform: translate3d(0%, 0%, 0);
  232. }
  233. /*--------------
  234. Push
  235. ---------------*/
  236. /* Set-Up */
  237. .pushable.push > .fixed,
  238. .pushable.push > .pusher {
  239. -webkit-transform: translate3d(0px, 0, 0);
  240. transform: translate3d(0px, 0, 0);
  241. }
  242. .pushable.push > .visible.ui.sidebar {
  243. -webkit-transform: translate3d(-100%, 0, 0);
  244. transform: translate3d(-100%, 0, 0);
  245. }
  246. /* Pushed */
  247. .pushable.push.pushed > .visible.ui.sidebar {
  248. -webkit-transform: translate3d(0%, 0, 0);
  249. transform: translate3d(0%, 0, 0);
  250. }
  251. .pushable.push.pushed > .fixed,
  252. .pushable.push.pushed > .pusher {
  253. -webkit-transform: translate3d(260px, 0, 0);
  254. transform: translate3d(260px, 0, 0);
  255. }
  256. .pushable.push.show > .visible.ui.sidebar,
  257. .pushable.push.hide > .visible.ui.sidebar {
  258. -webkit-transition: -webkit-transform 0.5s ease;
  259. transition: transform 0.5s ease;
  260. }
  261. /*--------------
  262. Uncover
  263. ---------------*/
  264. /* Set-up */
  265. .pushable.uncover > .fixed,
  266. .pushable.uncover > .pusher {
  267. -webkit-transform: translate3d(0px, 0px, 0px);
  268. transform: translate3d(0px, 0px, 0px);
  269. }
  270. .pushable.uncover > .pusher {
  271. z-index: 900;
  272. }
  273. .pushable.uncover > .visible.ui.sidebar {
  274. -webkit-transition: none;
  275. transition: none;
  276. }
  277. /* Pushed */
  278. /*--- Left ---*/
  279. .pushable.left.uncover.pushed > .fixed,
  280. .pushable.left.uncover.pushed > .pusher {
  281. -webkit-transform: translate3d(260px, 0, 0);
  282. transform: translate3d(260px, 0, 0);
  283. }
  284. /*--- Right ---*/
  285. .pushable.right.uncover.pushed > .fixed,
  286. .pushable.right.uncover.pushed > .pusher {
  287. -webkit-transform: translate3d(-260px, 0, 0);
  288. transform: translate3d(-260px, 0, 0);
  289. }
  290. /*--------------
  291. Slide Along
  292. ---------------*/
  293. /* Set-up */
  294. .pushable.slide.along > .fixed,
  295. .pushable.slide.along > .pusher {
  296. -webkit-transform: translate3d(0px, 0, 0);
  297. transform: translate3d(0px, 0, 0);
  298. }
  299. .pushable.slide.along > .pusher {
  300. z-index: 900;
  301. }
  302. .pushable.slide.along > .visible.ui.sidebar {
  303. -webkit-transform: translate3d(-50%, 0, 0);
  304. transform: translate3d(-50%, 0, 0);
  305. }
  306. /* Pushed */
  307. .pushable.slide.along.pushed > .fixed,
  308. .pushable.slide.along.pushed > .pusher {
  309. -webkit-transform: translate3d(260px, 0, 0);
  310. transform: translate3d(260px, 0, 0);
  311. }
  312. .pushable.slide.along.pushed > .visible.ui.sidebar {
  313. -webkit-transform: translate3d(0%, 0, 0);
  314. transform: translate3d(0%, 0, 0);
  315. }
  316. .pushable.slide.along.show > .visible.ui.sidebar,
  317. .pushable.slide.along.hide > .visible.ui.sidebar {
  318. -webkit-transition: -webkit-transform 0.5s ease;
  319. transition: transform 0.5s ease;
  320. }
  321. /*--------------
  322. Slide Out
  323. ---------------*/
  324. /* Set-up */
  325. .pushable.slide.out > .fixed,
  326. .pushable.slide.out > .pusher {
  327. -webkit-transform: translate3d(0px, 0, 0);
  328. transform: translate3d(0px, 0, 0);
  329. }
  330. .pushable.slide.out > .visible.ui.sidebar {
  331. -webkit-transform: translate3d(50%, 0, 0);
  332. transform: translate3d(50%, 0, 0);
  333. }
  334. /* Pushed */
  335. .pushable.slide.out.pushed > .fixed,
  336. .pushable.slide.out.pushed > .pusher {
  337. -webkit-transform: translate3d(260px, 0, 0);
  338. transform: translate3d(260px, 0, 0);
  339. }
  340. .pushable.slide.out.pushed .visible.ui.sidebar {
  341. -webkit-transform: translate3d(0%, 0, 0);
  342. transform: translate3d(0%, 0, 0);
  343. }
  344. .pushable.slide.out.show > .visible.ui.sidebar,
  345. .pushable.slide.out.hide > .visible.ui.sidebar {
  346. -webkit-transition: -webkit-transform 0.5s ease;
  347. transition: transform 0.5s ease;
  348. }
  349. /*--------------
  350. Scale Down
  351. ---------------*/
  352. /* Set-up */
  353. .pushable.scale.down > .fixed {
  354. -webkit-transform: translate3d(0px, 0, 0);
  355. transform: translate3d(0px, 0, 0);
  356. }
  357. .pushable.scale.down > .pusher {
  358. z-index: 900;
  359. -webkit-transform-origin: 75% 50%;
  360. -ms-transform-origin: 75% 50%;
  361. transform-origin: 75% 50%;
  362. overflow: hidden;
  363. }
  364. .pushable.scale.down > .visible.ui.sidebar {
  365. -webkit-transform: translate3d(-100%, 0, 0);
  366. transform: translate3d(-100%, 0, 0);
  367. z-index: 904;
  368. }
  369. /* Pushed */
  370. .pushable.scale.down.pushed > .pusher {
  371. -webkit-transform: scale(0.75);
  372. -ms-transform: scale(0.75);
  373. transform: scale(0.75);
  374. }
  375. .pushable.scale.down.pushed > .visible.ui.sidebar {
  376. -webkit-transform: translate3d(0, 0, 0);
  377. transform: translate3d(0, 0, 0);
  378. }
  379. .pushable.scale.down.pushed > .fixed {
  380. -webkit-transform: translate3d(260px, 0, 0);
  381. transform: translate3d(260px, 0, 0);
  382. }
  383. /* 3D transition cant have duration set until animation */
  384. .pushable.scale.down.show > .visible.ui.sidebar,
  385. .pushable.scale.down.hide > .visible.ui.sidebar {
  386. -webkit-transition: -webkit-transform 0.5s ease;
  387. transition: transform 0.5s ease;
  388. }
  389. /*--------------
  390. Safe Mode
  391. ---------------*/
  392. /* Set-Up */
  393. .pushable.safe > .pusher {
  394. position: relative;
  395. -webkit-transform: none !important;
  396. -ms-transform: none !important;
  397. transform: none !important;
  398. -webkit-transition: none !important;
  399. transition: none !important;
  400. }
  401. .pushable.safe > .pusher {
  402. -webkit-transform: none !important;
  403. -ms-transform: none !important;
  404. transform: none !important;
  405. -webkit-transition: none !important;
  406. transition: none !important;
  407. }
  408. /* Pushed */
  409. .pushable.safe.pushed {
  410. margin-left: 260px !important;
  411. }
  412. .pushable.safe.pushed > .visible.ui.sidebar {
  413. margin-left: -260px;
  414. }
  415. .pushable.safe.pushed > .fixed {
  416. margin-left: 260px !important;
  417. }
  418. .pushable.safe.show,
  419. .pushable.safe.hide,
  420. .pushable.safe.show > .fixed,
  421. .pushable.safe.hide > .fixed {
  422. -webkit-transition: margin 0.5s ease !important;
  423. transition: margin 0.5s ease !important;
  424. }