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.

571 lines
15 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Sidebar
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Default
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /* Used to match floats with text */
  57. /*-------------------
  58. Background Colors
  59. --------------------*/
  60. /* Used for differentiating neutrals */
  61. /* Used for differentiating layers */
  62. /*-------------------
  63. Grid
  64. --------------------*/
  65. /*-------------------
  66. Breakpoints
  67. --------------------*/
  68. /*******************************
  69. Power-User
  70. *******************************/
  71. /*-------------------
  72. Icons
  73. --------------------*/
  74. /* Max Width of Icon */
  75. /*-------------------
  76. Easing
  77. --------------------*/
  78. /*--- Neutrals ---*/
  79. /*--- Colored Backgrounds ---*/
  80. /*--- Colored Text ---*/
  81. /*--- Colored Headers ---*/
  82. /*-------------------
  83. Emotive Colors
  84. --------------------*/
  85. /* Mood */
  86. /* Solid Background Color */
  87. /* Status */
  88. /* Darkened Headers */
  89. /*-------------------
  90. Neutral Text
  91. --------------------*/
  92. /*-------------------
  93. Brand Colors
  94. --------------------*/
  95. /*-------------------
  96. Grid Columns
  97. --------------------*/
  98. /*-------------------
  99. Borders
  100. --------------------*/
  101. /*-------------------
  102. Sizes
  103. --------------------*/
  104. /*-------------------
  105. Transitions
  106. --------------------*/
  107. /*******************************
  108. States
  109. *******************************/
  110. /*-------------------
  111. Disabled
  112. --------------------*/
  113. /*-------------------
  114. Hover
  115. --------------------*/
  116. /*--- Colors ---*/
  117. /*--- Emotive ---*/
  118. /*--- Neutrals ---*/
  119. /*-------------------
  120. Down (:active)
  121. --------------------*/
  122. /*--- Colors ---*/
  123. /*--- Emotive ---*/
  124. /*--- Neutrals ---*/
  125. /*-------------------
  126. Active
  127. --------------------*/
  128. /*--- Standard ---*/
  129. /*--- Emotive ---*/
  130. /*--- Neutrals ---*/
  131. /*******************************
  132. Sidebar
  133. *******************************/
  134. /*------------------
  135. Load Theme
  136. -------------------*/
  137. /*------------------
  138. Load Site
  139. -------------------*/
  140. /*******************************
  141. User Global Variables
  142. *******************************/
  143. /*******************************
  144. Overrides
  145. *******************************/
  146. /*------------------
  147. Override Mix-in
  148. -------------------*/
  149. /*******************************
  150. Sidebar
  151. *******************************/
  152. /* Sidebar Menu */
  153. .ui.sidebar {
  154. position: fixed;
  155. top: 0;
  156. left: 0;
  157. visibility: hidden;
  158. height: 100% !important;
  159. border-radius: 0em !important;
  160. margin: 0 !important;
  161. -webkit-transition: none;
  162. transition: none;
  163. will-change: transform;
  164. overflow-y: auto !important;
  165. -webkit-backface-visibility: hidden;
  166. backface-visibility: hidden;
  167. background: #1b1c1d;
  168. width: 260px !important;
  169. }
  170. /*--------------
  171. Direction
  172. ---------------*/
  173. .ui.top.sidebar,
  174. .ui.bottom.sidebar {
  175. width: 100% !important;
  176. height: auto !important;
  177. overflow-y: visible !important;
  178. }
  179. .ui.top.sidebar {
  180. top: 0px !important;
  181. bottom: auto !important;
  182. }
  183. .ui.right.sidebar {
  184. right: 0px !important;
  185. left: auto !important;
  186. }
  187. .ui.bottom.sidebar {
  188. top: auto !important;
  189. bottom: 0px !important;
  190. }
  191. /*--------------
  192. Body
  193. ---------------*/
  194. /* Sets 3D Perspective */
  195. .pushable {
  196. background: #333333 !important;
  197. position: relative;
  198. height: 100%;
  199. overflow-x: hidden;
  200. }
  201. /*--------------
  202. Fixed
  203. ---------------*/
  204. .pushable > .ui.fixed {
  205. position: fixed;
  206. -webkit-transition: -webkit-transform 0.5s ease;
  207. transition: transform 0.5s ease;
  208. z-index: 903;
  209. }
  210. /*--------------
  211. Pusher
  212. ---------------*/
  213. .pushable > .pusher {
  214. background: #333333;
  215. height: 100%;
  216. z-index: 901;
  217. -webkit-transition: -webkit-transform 0.5s ease;
  218. transition: transform 0.5s ease;
  219. }
  220. /*--------------
  221. Page
  222. ---------------*/
  223. .pushable > .pusher > .page {
  224. position: relative;
  225. min-height: 100%;
  226. background: #f7f7f7;
  227. }
  228. /*--------------
  229. Dimmer
  230. ---------------*/
  231. .pushable > .pusher > .page:after {
  232. position: absolute;
  233. top: 0px;
  234. right: 0px;
  235. content: '';
  236. background-color: rgba(0, 0, 0, 0.4);
  237. width: 0px;
  238. height: 0px;
  239. overflow: hidden;
  240. opacity: 0;
  241. z-index: 902;
  242. -webkit-transition: opacity 0.5s;
  243. transition: opacity 0.5s;
  244. will-change: opacity;
  245. }
  246. /*--------------
  247. Coupling
  248. ---------------*/
  249. .ui.sidebar.menu .item {
  250. border-radius: 0em !important;
  251. }
  252. /*******************************
  253. States
  254. *******************************/
  255. /*--------------
  256. Pushed
  257. ---------------*/
  258. .pushable.pushed {
  259. overflow-x: hidden;
  260. }
  261. .pushable.pushed > .fixed,
  262. .pushable.pushed > .pusher {
  263. -webkit-backface-visibility: hidden;
  264. backface-visibility: hidden;
  265. -webkit-overflow-scrolling: touch;
  266. }
  267. .pushable.active > .visible.sidebar {
  268. -webkit-overflow-scrolling: touch;
  269. -webkit-backface-visibility: hidden;
  270. backface-visibility: hidden;
  271. z-index: 904;
  272. }
  273. /*--------------
  274. Dimmed
  275. ---------------*/
  276. .pushable > .pusher > .page.dimmed:after {
  277. width: 100% !important;
  278. height: 100% !important;
  279. opacity: 1 !important;
  280. }
  281. /*--------------
  282. Animation
  283. ---------------*/
  284. .pushable.show > .pusher,
  285. .pushable.hide > .pusher {
  286. -webkit-backface-visibility: hidden;
  287. backface-visibility: hidden;
  288. }
  289. .pushable.show > .visible.sidebar,
  290. .pushable.hide > .visible.sidebar {
  291. -webkit-backface-visibility: hidden;
  292. backface-visibility: hidden;
  293. }
  294. /*--------------
  295. Visible
  296. ---------------*/
  297. .pushable > .visible.ui.sidebar {
  298. visibility: visible;
  299. }
  300. /*******************************
  301. Variations
  302. *******************************/
  303. /*--------------
  304. Styled
  305. ---------------*/
  306. .ui.styled.sidebar {
  307. background-color: #FFFFFF;
  308. padding: 1em 1.25em;
  309. border-right: 1px solid #DDDDDD;
  310. }
  311. /*******************************
  312. Animations
  313. *******************************/
  314. /*--------------
  315. Overlay
  316. ---------------*/
  317. /* Set-up */
  318. .pushable.overlay > .visible.ui.sidebar {
  319. z-index: 904;
  320. }
  321. /* Animation */
  322. .pushable.overlay.show > .visible.ui.sidebar,
  323. .pushable.overlay.hide > .visible.ui.sidebar {
  324. -webkit-transition: -webkit-transform 0.5s ease;
  325. transition: transform 0.5s ease;
  326. }
  327. /*--- Left ---*/
  328. /* Set-up */
  329. .left.pushable.overlay > .visible.ui.sidebar {
  330. -webkit-transform: translate3d(-100%, 0, 0);
  331. transform: translate3d(-100%, 0, 0);
  332. }
  333. /* Pushed */
  334. .left.pushable.overlay.pushed .visible.ui.sidebar {
  335. -webkit-transform: translate3d(0%, 0, 0);
  336. transform: translate3d(0%, 0, 0);
  337. }
  338. /*--- Right ---*/
  339. /* Set-up */
  340. .right.pushable.overlay > .visible.ui.sidebar {
  341. -webkit-transform: translate3d(100%, 0, 0);
  342. transform: translate3d(100%, 0, 0);
  343. }
  344. /* Pushed */
  345. .right.pushable.overlay.pushed .visible.ui.sidebar {
  346. -webkit-transform: translate3d(0%, 0, 0);
  347. transform: translate3d(0%, 0, 0);
  348. }
  349. /*--- Top ---*/
  350. /* Set-up */
  351. .top.pushable.overlay > .visible.ui.sidebar {
  352. -webkit-transform: translate3d(0%, -100%, 0);
  353. transform: translate3d(0%, -100%, 0);
  354. }
  355. /* Pushed */
  356. .top.pushable.overlay.pushed .visible.ui.sidebar {
  357. -webkit-transform: translate3d(0%, 0%, 0);
  358. transform: translate3d(0%, 0%, 0);
  359. }
  360. /*--- Bottom ---*/
  361. /* Set-up */
  362. .bottom.pushable.overlay > .visible.ui.sidebar {
  363. -webkit-transform: translate3d(0%, 100%, 0);
  364. transform: translate3d(0%, 100%, 0);
  365. }
  366. /* Pushed */
  367. .bottom.pushable.overlay.pushed .visible.ui.sidebar {
  368. -webkit-transform: translate3d(0%, 0%, 0);
  369. transform: translate3d(0%, 0%, 0);
  370. }
  371. /*--------------
  372. Push
  373. ---------------*/
  374. /* Set-Up */
  375. .pushable.push > .fixed,
  376. .pushable.push > .pusher {
  377. -webkit-transform: translate3d(0px, 0, 0);
  378. transform: translate3d(0px, 0, 0);
  379. }
  380. .pushable.push > .visible.ui.sidebar {
  381. -webkit-transform: translate3d(-100%, 0, 0);
  382. transform: translate3d(-100%, 0, 0);
  383. }
  384. /* Pushed */
  385. .pushable.push.pushed > .visible.ui.sidebar {
  386. -webkit-transform: translate3d(0%, 0, 0);
  387. transform: translate3d(0%, 0, 0);
  388. }
  389. .pushable.push.pushed > .fixed,
  390. .pushable.push.pushed > .pusher {
  391. -webkit-transform: translate3d(260px, 0, 0);
  392. transform: translate3d(260px, 0, 0);
  393. }
  394. .pushable.push.show > .visible.ui.sidebar,
  395. .pushable.push.hide > .visible.ui.sidebar {
  396. -webkit-transition: -webkit-transform 0.5s ease;
  397. transition: transform 0.5s ease;
  398. }
  399. /*--------------
  400. Uncover
  401. ---------------*/
  402. /* Set-up */
  403. .pushable.uncover > .fixed,
  404. .pushable.uncover > .pusher {
  405. -webkit-transform: translate3d(0px, 0px, 0px);
  406. transform: translate3d(0px, 0px, 0px);
  407. }
  408. .pushable.uncover > .pusher {
  409. z-index: 900;
  410. }
  411. .pushable.uncover > .visible.ui.sidebar {
  412. -webkit-transition: none;
  413. transition: none;
  414. }
  415. /* Pushed */
  416. /*--- Left ---*/
  417. .pushable.left.uncover.pushed > .fixed,
  418. .pushable.left.uncover.pushed > .pusher {
  419. -webkit-transform: translate3d(260px, 0, 0);
  420. transform: translate3d(260px, 0, 0);
  421. }
  422. /*--- Right ---*/
  423. .pushable.right.uncover.pushed > .fixed,
  424. .pushable.right.uncover.pushed > .pusher {
  425. -webkit-transform: translate3d(-260px, 0, 0);
  426. transform: translate3d(-260px, 0, 0);
  427. }
  428. /*--------------
  429. Slide Along
  430. ---------------*/
  431. /* Set-up */
  432. .pushable.slide.along > .fixed,
  433. .pushable.slide.along > .pusher {
  434. -webkit-transform: translate3d(0px, 0, 0);
  435. transform: translate3d(0px, 0, 0);
  436. }
  437. .pushable.slide.along > .pusher {
  438. z-index: 900;
  439. }
  440. .pushable.slide.along > .visible.ui.sidebar {
  441. -webkit-transform: translate3d(-50%, 0, 0);
  442. transform: translate3d(-50%, 0, 0);
  443. }
  444. /* Pushed */
  445. .pushable.slide.along.pushed > .fixed,
  446. .pushable.slide.along.pushed > .pusher {
  447. -webkit-transform: translate3d(260px, 0, 0);
  448. transform: translate3d(260px, 0, 0);
  449. }
  450. .pushable.slide.along.pushed > .visible.ui.sidebar {
  451. -webkit-transform: translate3d(0%, 0, 0);
  452. transform: translate3d(0%, 0, 0);
  453. }
  454. .pushable.slide.along.show > .visible.ui.sidebar,
  455. .pushable.slide.along.hide > .visible.ui.sidebar {
  456. -webkit-transition: -webkit-transform 0.5s ease;
  457. transition: transform 0.5s ease;
  458. }
  459. /*--------------
  460. Slide Out
  461. ---------------*/
  462. /* Set-up */
  463. .pushable.slide.out > .fixed,
  464. .pushable.slide.out > .pusher {
  465. -webkit-transform: translate3d(0px, 0, 0);
  466. transform: translate3d(0px, 0, 0);
  467. }
  468. .pushable.slide.out > .visible.ui.sidebar {
  469. -webkit-transform: translate3d(50%, 0, 0);
  470. transform: translate3d(50%, 0, 0);
  471. }
  472. /* Pushed */
  473. .pushable.slide.out.pushed > .fixed,
  474. .pushable.slide.out.pushed > .pusher {
  475. -webkit-transform: translate3d(260px, 0, 0);
  476. transform: translate3d(260px, 0, 0);
  477. }
  478. .pushable.slide.out.pushed .visible.ui.sidebar {
  479. -webkit-transform: translate3d(0%, 0, 0);
  480. transform: translate3d(0%, 0, 0);
  481. }
  482. .pushable.slide.out.show > .visible.ui.sidebar,
  483. .pushable.slide.out.hide > .visible.ui.sidebar {
  484. -webkit-transition: -webkit-transform 0.5s ease;
  485. transition: transform 0.5s ease;
  486. }
  487. /*--------------
  488. Scale Down
  489. ---------------*/
  490. /* Set-up */
  491. .pushable.scale.down > .fixed {
  492. -webkit-transform: translate3d(0px, 0, 0);
  493. transform: translate3d(0px, 0, 0);
  494. }
  495. .pushable.scale.down > .pusher {
  496. z-index: 900;
  497. -webkit-transform-origin: 75% 50%;
  498. -ms-transform-origin: 75% 50%;
  499. transform-origin: 75% 50%;
  500. overflow: hidden;
  501. }
  502. .pushable.scale.down > .visible.ui.sidebar {
  503. -webkit-transform: translate3d(-100%, 0, 0);
  504. transform: translate3d(-100%, 0, 0);
  505. z-index: 904;
  506. }
  507. /* Pushed */
  508. .pushable.scale.down.pushed > .pusher {
  509. -webkit-transform: scale(0.75);
  510. -ms-transform: scale(0.75);
  511. transform: scale(0.75);
  512. }
  513. .pushable.scale.down.pushed > .visible.ui.sidebar {
  514. -webkit-transform: translate3d(0, 0, 0);
  515. transform: translate3d(0, 0, 0);
  516. }
  517. .pushable.scale.down.pushed > .fixed {
  518. -webkit-transform: translate3d(260px, 0, 0);
  519. transform: translate3d(260px, 0, 0);
  520. }
  521. /* 3D transition cant have duration set until animation */
  522. .pushable.scale.down.show > .visible.ui.sidebar,
  523. .pushable.scale.down.hide > .visible.ui.sidebar {
  524. -webkit-transition: -webkit-transform 0.5s ease;
  525. transition: transform 0.5s ease;
  526. }
  527. /*--------------
  528. Safe Mode
  529. ---------------*/
  530. /* Set-Up */
  531. .pushable.safe > .pusher {
  532. position: relative;
  533. -webkit-transform: none !important;
  534. -ms-transform: none !important;
  535. transform: none !important;
  536. -webkit-transition: none !important;
  537. transition: none !important;
  538. }
  539. .pushable.safe > .pusher {
  540. -webkit-transform: none !important;
  541. -ms-transform: none !important;
  542. transform: none !important;
  543. -webkit-transition: none !important;
  544. transition: none !important;
  545. }
  546. /* Pushed */
  547. .pushable.safe.pushed {
  548. margin-left: 260px !important;
  549. }
  550. .pushable.safe.pushed > .visible.ui.sidebar {
  551. margin-left: -260px;
  552. }
  553. .pushable.safe.pushed > .fixed {
  554. margin-left: 260px !important;
  555. }
  556. .pushable.safe.show,
  557. .pushable.safe.hide,
  558. .pushable.safe.show > .fixed,
  559. .pushable.safe.hide > .fixed {
  560. -webkit-transition: margin 0.5s ease !important;
  561. transition: margin 0.5s ease !important;
  562. }