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.

570 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 Defaults
  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. /* Status */
  87. /* Darkened Headers */
  88. /*-------------------
  89. Neutral Text
  90. --------------------*/
  91. /*-------------------
  92. Brand Colors
  93. --------------------*/
  94. /*-------------------
  95. Grid Columns
  96. --------------------*/
  97. /*-------------------
  98. Borders
  99. --------------------*/
  100. /*-------------------
  101. Sizes
  102. --------------------*/
  103. /*-------------------
  104. Transitions
  105. --------------------*/
  106. /*******************************
  107. States
  108. *******************************/
  109. /*-------------------
  110. Disabled
  111. --------------------*/
  112. /*-------------------
  113. Hover
  114. --------------------*/
  115. /*--- Colors ---*/
  116. /*--- Emotive ---*/
  117. /*--- Neutrals ---*/
  118. /*-------------------
  119. Down (:active)
  120. --------------------*/
  121. /*--- Colors ---*/
  122. /*--- Emotive ---*/
  123. /*--- Neutrals ---*/
  124. /*-------------------
  125. Active
  126. --------------------*/
  127. /*--- Standard ---*/
  128. /*--- Emotive ---*/
  129. /*--- Neutrals ---*/
  130. /*******************************
  131. Sidebar
  132. *******************************/
  133. /*------------------
  134. Load Theme
  135. -------------------*/
  136. /*------------------
  137. Load Site
  138. -------------------*/
  139. /*******************************
  140. User Global Variables
  141. *******************************/
  142. /*******************************
  143. Overrides
  144. *******************************/
  145. /*------------------
  146. Override Loader
  147. -------------------*/
  148. /*******************************
  149. Sidebar
  150. *******************************/
  151. /* Sidebar Menu */
  152. .ui.sidebar {
  153. position: fixed;
  154. top: 0;
  155. left: 0;
  156. visibility: hidden;
  157. height: 100% !important;
  158. border-radius: 0em !important;
  159. margin: 0 !important;
  160. -webkit-transition: none;
  161. transition: none;
  162. will-change: transform;
  163. overflow-y: auto !important;
  164. -webkit-backface-visibility: hidden;
  165. backface-visibility: hidden;
  166. background: #1b1c1d;
  167. width: 260px !important;
  168. }
  169. /*--------------
  170. Direction
  171. ---------------*/
  172. .ui.top.sidebar,
  173. .ui.bottom.sidebar {
  174. width: 100% !important;
  175. height: auto !important;
  176. overflow-y: visible !important;
  177. }
  178. .ui.top.sidebar {
  179. top: 0px !important;
  180. bottom: auto !important;
  181. }
  182. .ui.right.sidebar {
  183. right: 0px !important;
  184. left: auto !important;
  185. }
  186. .ui.bottom.sidebar {
  187. top: auto !important;
  188. bottom: 0px !important;
  189. }
  190. /*--------------
  191. Body
  192. ---------------*/
  193. /* Sets 3D Perspective */
  194. .pushable {
  195. background: #333333 !important;
  196. position: relative;
  197. height: 100%;
  198. overflow-x: hidden;
  199. }
  200. /*--------------
  201. Fixed
  202. ---------------*/
  203. .pushable > .ui.fixed {
  204. position: fixed;
  205. -webkit-transition: -webkit-transform 0.5s ease;
  206. transition: transform 0.5s ease;
  207. z-index: 903;
  208. }
  209. /*--------------
  210. Pusher
  211. ---------------*/
  212. .pushable > .pusher {
  213. background: #333333;
  214. height: 100%;
  215. z-index: 901;
  216. -webkit-transition: -webkit-transform 0.5s ease;
  217. transition: transform 0.5s ease;
  218. }
  219. /*--------------
  220. Page
  221. ---------------*/
  222. .pushable > .pusher > .page {
  223. position: relative;
  224. min-height: 100%;
  225. background: #f7f7f7;
  226. }
  227. /*--------------
  228. Dimmer
  229. ---------------*/
  230. .pushable > .pusher > .page:after {
  231. position: absolute;
  232. top: 0px;
  233. right: 0px;
  234. content: '';
  235. background-color: rgba(0, 0, 0, 0.4);
  236. width: 0px;
  237. height: 0px;
  238. overflow: hidden;
  239. opacity: 0;
  240. z-index: 902;
  241. -webkit-transition: opacity 0.5s;
  242. transition: opacity 0.5s;
  243. will-change: opacity;
  244. }
  245. /*--------------
  246. Coupling
  247. ---------------*/
  248. .ui.sidebar.menu .item {
  249. border-radius: 0em !important;
  250. }
  251. /*******************************
  252. States
  253. *******************************/
  254. /*--------------
  255. Pushed
  256. ---------------*/
  257. .pushable.pushed {
  258. overflow-x: hidden;
  259. }
  260. .pushable.pushed > .fixed,
  261. .pushable.pushed > .pusher {
  262. -webkit-backface-visibility: hidden;
  263. backface-visibility: hidden;
  264. -webkit-overflow-scrolling: touch;
  265. }
  266. .pushable.active > .visible.sidebar {
  267. -webkit-overflow-scrolling: touch;
  268. -webkit-backface-visibility: hidden;
  269. backface-visibility: hidden;
  270. z-index: 904;
  271. }
  272. /*--------------
  273. Dimmed
  274. ---------------*/
  275. .pushable > .pusher > .page.dimmed:after {
  276. width: 100% !important;
  277. height: 100% !important;
  278. opacity: 1 !important;
  279. }
  280. /*--------------
  281. Animation
  282. ---------------*/
  283. .pushable.show > .pusher,
  284. .pushable.hide > .pusher {
  285. -webkit-backface-visibility: hidden;
  286. backface-visibility: hidden;
  287. }
  288. .pushable.show > .visible.sidebar,
  289. .pushable.hide > .visible.sidebar {
  290. -webkit-backface-visibility: hidden;
  291. backface-visibility: hidden;
  292. }
  293. /*--------------
  294. Visible
  295. ---------------*/
  296. .pushable > .visible.ui.sidebar {
  297. visibility: visible;
  298. }
  299. /*******************************
  300. Variations
  301. *******************************/
  302. /*--------------
  303. Styled
  304. ---------------*/
  305. .ui.styled.sidebar {
  306. background-color: #FFFFFF;
  307. padding: 1em 1.25em;
  308. border-right: 1px solid #DDDDDD;
  309. }
  310. /*******************************
  311. Animations
  312. *******************************/
  313. /*--------------
  314. Overlay
  315. ---------------*/
  316. /* Set-up */
  317. .pushable.overlay > .visible.ui.sidebar {
  318. z-index: 904;
  319. }
  320. /* Animation */
  321. .pushable.overlay.show > .visible.ui.sidebar,
  322. .pushable.overlay.hide > .visible.ui.sidebar {
  323. -webkit-transition: -webkit-transform 0.5s ease;
  324. transition: transform 0.5s ease;
  325. }
  326. /*--- Left ---*/
  327. /* Set-up */
  328. .left.pushable.overlay > .visible.ui.sidebar {
  329. -webkit-transform: translate3d(-100%, 0, 0);
  330. transform: translate3d(-100%, 0, 0);
  331. }
  332. /* Pushed */
  333. .left.pushable.overlay.pushed .visible.ui.sidebar {
  334. -webkit-transform: translate3d(0%, 0, 0);
  335. transform: translate3d(0%, 0, 0);
  336. }
  337. /*--- Right ---*/
  338. /* Set-up */
  339. .right.pushable.overlay > .visible.ui.sidebar {
  340. -webkit-transform: translate3d(100%, 0, 0);
  341. transform: translate3d(100%, 0, 0);
  342. }
  343. /* Pushed */
  344. .right.pushable.overlay.pushed .visible.ui.sidebar {
  345. -webkit-transform: translate3d(0%, 0, 0);
  346. transform: translate3d(0%, 0, 0);
  347. }
  348. /*--- Top ---*/
  349. /* Set-up */
  350. .top.pushable.overlay > .visible.ui.sidebar {
  351. -webkit-transform: translate3d(0%, -100%, 0);
  352. transform: translate3d(0%, -100%, 0);
  353. }
  354. /* Pushed */
  355. .top.pushable.overlay.pushed .visible.ui.sidebar {
  356. -webkit-transform: translate3d(0%, 0%, 0);
  357. transform: translate3d(0%, 0%, 0);
  358. }
  359. /*--- Bottom ---*/
  360. /* Set-up */
  361. .bottom.pushable.overlay > .visible.ui.sidebar {
  362. -webkit-transform: translate3d(0%, 100%, 0);
  363. transform: translate3d(0%, 100%, 0);
  364. }
  365. /* Pushed */
  366. .bottom.pushable.overlay.pushed .visible.ui.sidebar {
  367. -webkit-transform: translate3d(0%, 0%, 0);
  368. transform: translate3d(0%, 0%, 0);
  369. }
  370. /*--------------
  371. Push
  372. ---------------*/
  373. /* Set-Up */
  374. .pushable.push > .fixed,
  375. .pushable.push > .pusher {
  376. -webkit-transform: translate3d(0px, 0, 0);
  377. transform: translate3d(0px, 0, 0);
  378. }
  379. .pushable.push > .visible.ui.sidebar {
  380. -webkit-transform: translate3d(-100%, 0, 0);
  381. transform: translate3d(-100%, 0, 0);
  382. }
  383. /* Pushed */
  384. .pushable.push.pushed > .visible.ui.sidebar {
  385. -webkit-transform: translate3d(0%, 0, 0);
  386. transform: translate3d(0%, 0, 0);
  387. }
  388. .pushable.push.pushed > .fixed,
  389. .pushable.push.pushed > .pusher {
  390. -webkit-transform: translate3d(260px, 0, 0);
  391. transform: translate3d(260px, 0, 0);
  392. }
  393. .pushable.push.show > .visible.ui.sidebar,
  394. .pushable.push.hide > .visible.ui.sidebar {
  395. -webkit-transition: -webkit-transform 0.5s ease;
  396. transition: transform 0.5s ease;
  397. }
  398. /*--------------
  399. Uncover
  400. ---------------*/
  401. /* Set-up */
  402. .pushable.uncover > .fixed,
  403. .pushable.uncover > .pusher {
  404. -webkit-transform: translate3d(0px, 0px, 0px);
  405. transform: translate3d(0px, 0px, 0px);
  406. }
  407. .pushable.uncover > .pusher {
  408. z-index: 900;
  409. }
  410. .pushable.uncover > .visible.ui.sidebar {
  411. -webkit-transition: none;
  412. transition: none;
  413. }
  414. /* Pushed */
  415. /*--- Left ---*/
  416. .pushable.left.uncover.pushed > .fixed,
  417. .pushable.left.uncover.pushed > .pusher {
  418. -webkit-transform: translate3d(260px, 0, 0);
  419. transform: translate3d(260px, 0, 0);
  420. }
  421. /*--- Right ---*/
  422. .pushable.right.uncover.pushed > .fixed,
  423. .pushable.right.uncover.pushed > .pusher {
  424. -webkit-transform: translate3d(-260px, 0, 0);
  425. transform: translate3d(-260px, 0, 0);
  426. }
  427. /*--------------
  428. Slide Along
  429. ---------------*/
  430. /* Set-up */
  431. .pushable.slide.along > .fixed,
  432. .pushable.slide.along > .pusher {
  433. -webkit-transform: translate3d(0px, 0, 0);
  434. transform: translate3d(0px, 0, 0);
  435. }
  436. .pushable.slide.along > .pusher {
  437. z-index: 900;
  438. }
  439. .pushable.slide.along > .visible.ui.sidebar {
  440. -webkit-transform: translate3d(-50%, 0, 0);
  441. transform: translate3d(-50%, 0, 0);
  442. }
  443. /* Pushed */
  444. .pushable.slide.along.pushed > .fixed,
  445. .pushable.slide.along.pushed > .pusher {
  446. -webkit-transform: translate3d(260px, 0, 0);
  447. transform: translate3d(260px, 0, 0);
  448. }
  449. .pushable.slide.along.pushed > .visible.ui.sidebar {
  450. -webkit-transform: translate3d(0%, 0, 0);
  451. transform: translate3d(0%, 0, 0);
  452. }
  453. .pushable.slide.along.show > .visible.ui.sidebar,
  454. .pushable.slide.along.hide > .visible.ui.sidebar {
  455. -webkit-transition: -webkit-transform 0.5s ease;
  456. transition: transform 0.5s ease;
  457. }
  458. /*--------------
  459. Slide Out
  460. ---------------*/
  461. /* Set-up */
  462. .pushable.slide.out > .fixed,
  463. .pushable.slide.out > .pusher {
  464. -webkit-transform: translate3d(0px, 0, 0);
  465. transform: translate3d(0px, 0, 0);
  466. }
  467. .pushable.slide.out > .visible.ui.sidebar {
  468. -webkit-transform: translate3d(50%, 0, 0);
  469. transform: translate3d(50%, 0, 0);
  470. }
  471. /* Pushed */
  472. .pushable.slide.out.pushed > .fixed,
  473. .pushable.slide.out.pushed > .pusher {
  474. -webkit-transform: translate3d(260px, 0, 0);
  475. transform: translate3d(260px, 0, 0);
  476. }
  477. .pushable.slide.out.pushed .visible.ui.sidebar {
  478. -webkit-transform: translate3d(0%, 0, 0);
  479. transform: translate3d(0%, 0, 0);
  480. }
  481. .pushable.slide.out.show > .visible.ui.sidebar,
  482. .pushable.slide.out.hide > .visible.ui.sidebar {
  483. -webkit-transition: -webkit-transform 0.5s ease;
  484. transition: transform 0.5s ease;
  485. }
  486. /*--------------
  487. Scale Down
  488. ---------------*/
  489. /* Set-up */
  490. .pushable.scale.down > .fixed {
  491. -webkit-transform: translate3d(0px, 0, 0);
  492. transform: translate3d(0px, 0, 0);
  493. }
  494. .pushable.scale.down > .pusher {
  495. z-index: 900;
  496. -webkit-transform-origin: 75% 50%;
  497. -ms-transform-origin: 75% 50%;
  498. transform-origin: 75% 50%;
  499. overflow: hidden;
  500. }
  501. .pushable.scale.down > .visible.ui.sidebar {
  502. -webkit-transform: translate3d(-100%, 0, 0);
  503. transform: translate3d(-100%, 0, 0);
  504. z-index: 904;
  505. }
  506. /* Pushed */
  507. .pushable.scale.down.pushed > .pusher {
  508. -webkit-transform: scale(0.75);
  509. -ms-transform: scale(0.75);
  510. transform: scale(0.75);
  511. }
  512. .pushable.scale.down.pushed > .visible.ui.sidebar {
  513. -webkit-transform: translate3d(0, 0, 0);
  514. transform: translate3d(0, 0, 0);
  515. }
  516. .pushable.scale.down.pushed > .fixed {
  517. -webkit-transform: translate3d(260px, 0, 0);
  518. transform: translate3d(260px, 0, 0);
  519. }
  520. /* 3D transition cant have duration set until animation */
  521. .pushable.scale.down.show > .visible.ui.sidebar,
  522. .pushable.scale.down.hide > .visible.ui.sidebar {
  523. -webkit-transition: -webkit-transform 0.5s ease;
  524. transition: transform 0.5s ease;
  525. }
  526. /*--------------
  527. Safe Mode
  528. ---------------*/
  529. /* Set-Up */
  530. .pushable.safe > .pusher {
  531. position: relative;
  532. -webkit-transform: none !important;
  533. -ms-transform: none !important;
  534. transform: none !important;
  535. -webkit-transition: none !important;
  536. transition: none !important;
  537. }
  538. .pushable.safe > .pusher {
  539. -webkit-transform: none !important;
  540. -ms-transform: none !important;
  541. transform: none !important;
  542. -webkit-transition: none !important;
  543. transition: none !important;
  544. }
  545. /* Pushed */
  546. .pushable.safe.pushed {
  547. margin-left: 260px !important;
  548. }
  549. .pushable.safe.pushed > .visible.ui.sidebar {
  550. margin-left: -260px;
  551. }
  552. .pushable.safe.pushed > .fixed {
  553. margin-left: 260px !important;
  554. }
  555. .pushable.safe.show,
  556. .pushable.safe.hide,
  557. .pushable.safe.show > .fixed,
  558. .pushable.safe.hide > .fixed {
  559. -webkit-transition: margin 0.5s ease !important;
  560. transition: margin 0.5s ease !important;
  561. }