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.

672 lines
17 KiB

10 years ago
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. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Max Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Status */
  86. /*-------------------
  87. Neutral Text
  88. --------------------*/
  89. /*-------------------
  90. Brand Colors
  91. --------------------*/
  92. /*-------------------
  93. Borders
  94. --------------------*/
  95. /*-------------------
  96. Sizes
  97. --------------------*/
  98. /*-------------------
  99. Transitions
  100. --------------------*/
  101. /*-------------------
  102. Derived Values
  103. --------------------*/
  104. /* Makes sure padded grid can fit at 320px */
  105. /* Used to match floats with text */
  106. /* Positive / Negative Dupes */
  107. /* Header Colors */
  108. /* Responsive */
  109. /* Columns */
  110. /*******************************
  111. States
  112. *******************************/
  113. /*-------------------
  114. Disabled
  115. --------------------*/
  116. /*-------------------
  117. Hover
  118. --------------------*/
  119. /*--- Colors ---*/
  120. /*--- Emotive ---*/
  121. /*--- Neutrals ---*/
  122. /*-------------------
  123. Down (:active)
  124. --------------------*/
  125. /*--- Colors ---*/
  126. /*--- Emotive ---*/
  127. /*--- Neutrals ---*/
  128. /*-------------------
  129. Active
  130. --------------------*/
  131. /*--- Standard ---*/
  132. /*--- Emotive ---*/
  133. /*--- Neutrals ---*/
  134. /*******************************
  135. Sidebar
  136. *******************************/
  137. /*------------------
  138. Load Theme
  139. -------------------*/
  140. /*******************************
  141. Site Settings
  142. *******************************/
  143. /*-------------------
  144. Paths
  145. --------------------*/
  146. /*-------------------
  147. Fonts
  148. --------------------*/
  149. /*-------------------
  150. Site Colors
  151. --------------------*/
  152. /*--- Colors ---*/
  153. /*--- Light Colors ---*/
  154. /*-------------------
  155. Page
  156. --------------------*/
  157. /*-------------------
  158. Background Colors
  159. --------------------*/
  160. /* Used for differentiating neutrals */
  161. /* Used for differentiating layers */
  162. /*-------------------
  163. Grid
  164. --------------------*/
  165. /*-------------------
  166. Breakpoints
  167. --------------------*/
  168. /*******************************
  169. Power-User
  170. *******************************/
  171. /*-------------------
  172. Icons
  173. --------------------*/
  174. /* Max Width of Icon */
  175. /*-------------------
  176. Easing
  177. --------------------*/
  178. /*--- Neutrals ---*/
  179. /*--- Colored Backgrounds ---*/
  180. /*--- Colored Text ---*/
  181. /*--- Colored Headers ---*/
  182. /*-------------------
  183. Emotive Colors
  184. --------------------*/
  185. /* Mood */
  186. /* Status */
  187. /*-------------------
  188. Neutral Text
  189. --------------------*/
  190. /*-------------------
  191. Brand Colors
  192. --------------------*/
  193. /*-------------------
  194. Borders
  195. --------------------*/
  196. /*-------------------
  197. Sizes
  198. --------------------*/
  199. /*-------------------
  200. Transitions
  201. --------------------*/
  202. /*-------------------
  203. Derived Values
  204. --------------------*/
  205. /* Makes sure padded grid can fit at 320px */
  206. /* Used to match floats with text */
  207. /* Positive / Negative Dupes */
  208. /* Header Colors */
  209. /* Responsive */
  210. /* Columns */
  211. /*******************************
  212. States
  213. *******************************/
  214. /*-------------------
  215. Disabled
  216. --------------------*/
  217. /*-------------------
  218. Hover
  219. --------------------*/
  220. /*--- Colors ---*/
  221. /*--- Emotive ---*/
  222. /*--- Neutrals ---*/
  223. /*-------------------
  224. Down (:active)
  225. --------------------*/
  226. /*--- Colors ---*/
  227. /*--- Emotive ---*/
  228. /*--- Neutrals ---*/
  229. /*-------------------
  230. Active
  231. --------------------*/
  232. /*--- Standard ---*/
  233. /*--- Emotive ---*/
  234. /*--- Neutrals ---*/
  235. /*******************************
  236. Sidebar
  237. *******************************/
  238. /*------------------
  239. Load Site
  240. -------------------*/
  241. /*******************************
  242. User Global Variables
  243. *******************************/
  244. /*******************************
  245. Overrides
  246. *******************************/
  247. /*------------------
  248. Override Loader
  249. -------------------*/
  250. /*******************************
  251. Sidebar
  252. *******************************/
  253. /* Sidebar Menu */
  254. .ui.sidebar {
  255. position: fixed;
  256. top: 0;
  257. left: 0;
  258. visibility: hidden;
  259. height: 100% !important;
  260. border-radius: 0em !important;
  261. margin: 0 !important;
  262. -webkit-transition: none;
  263. transition: none;
  264. will-change: transform;
  265. overflow-y: auto !important;
  266. -webkit-backface-visibility: hidden;
  267. backface-visibility: hidden;
  268. background: #1b1c1d;
  269. width: 260px !important;
  270. }
  271. /*--------------
  272. Direction
  273. ---------------*/
  274. .ui.top.sidebar,
  275. .ui.bottom.sidebar {
  276. width: 100% !important;
  277. height: auto !important;
  278. overflow-y: visible !important;
  279. }
  280. .ui.top.sidebar {
  281. top: 0px !important;
  282. bottom: auto !important;
  283. }
  284. .ui.right.sidebar {
  285. right: 0px !important;
  286. left: auto !important;
  287. }
  288. .ui.bottom.sidebar {
  289. top: auto !important;
  290. bottom: 0px !important;
  291. }
  292. /*--------------
  293. Body
  294. ---------------*/
  295. /* Sets 3D Perspective */
  296. .pushable {
  297. background: #333333 !important;
  298. position: relative;
  299. height: 100%;
  300. overflow-x: hidden;
  301. }
  302. /*--------------
  303. Fixed
  304. ---------------*/
  305. .pushable > .ui.fixed {
  306. position: fixed;
  307. -webkit-transition: -webkit-transform 0.5s ease;
  308. transition: transform 0.5s ease;
  309. z-index: 903;
  310. }
  311. /*--------------
  312. Pusher
  313. ---------------*/
  314. .pushable > .pusher {
  315. background: #333333;
  316. height: 100%;
  317. z-index: 901;
  318. -webkit-transition: -webkit-transform 0.5s ease;
  319. transition: transform 0.5s ease;
  320. }
  321. /*--------------
  322. Page
  323. ---------------*/
  324. .pushable > .pusher > .page {
  325. position: relative;
  326. min-height: 100%;
  327. background: #f7f7f7;
  328. }
  329. /*--------------
  330. Dimmer
  331. ---------------*/
  332. .pushable > .pusher > .page:after {
  333. position: absolute;
  334. top: 0px;
  335. right: 0px;
  336. content: '';
  337. background-color: rgba(0, 0, 0, 0.4);
  338. width: 0px;
  339. height: 0px;
  340. overflow: hidden;
  341. opacity: 0;
  342. z-index: 902;
  343. -webkit-transition: opacity 0.5s;
  344. transition: opacity 0.5s;
  345. will-change: opacity;
  346. }
  347. /*--------------
  348. Coupling
  349. ---------------*/
  350. .ui.sidebar.menu .item {
  351. border-radius: 0em !important;
  352. }
  353. /*******************************
  354. States
  355. *******************************/
  356. /*--------------
  357. Pushed
  358. ---------------*/
  359. .pushable.pushed {
  360. overflow-x: hidden;
  361. }
  362. .pushable.pushed > .fixed,
  363. .pushable.pushed > .pusher {
  364. -webkit-backface-visibility: hidden;
  365. backface-visibility: hidden;
  366. -webkit-overflow-scrolling: touch;
  367. }
  368. .pushable.active > .visible.sidebar {
  369. -webkit-overflow-scrolling: touch;
  370. -webkit-backface-visibility: hidden;
  371. backface-visibility: hidden;
  372. z-index: 904;
  373. }
  374. /*--------------
  375. Dimmed
  376. ---------------*/
  377. .pushable > .pusher > .page.dimmed:after {
  378. width: 100% !important;
  379. height: 100% !important;
  380. opacity: 1 !important;
  381. }
  382. /*--------------
  383. Animation
  384. ---------------*/
  385. .pushable.show > .pusher,
  386. .pushable.hide > .pusher {
  387. -webkit-backface-visibility: hidden;
  388. backface-visibility: hidden;
  389. }
  390. .pushable.show > .visible.sidebar,
  391. .pushable.hide > .visible.sidebar {
  392. -webkit-backface-visibility: hidden;
  393. backface-visibility: hidden;
  394. }
  395. /*--------------
  396. Visible
  397. ---------------*/
  398. .pushable > .visible.ui.sidebar {
  399. visibility: visible;
  400. }
  401. /*******************************
  402. Variations
  403. *******************************/
  404. /*--------------
  405. Styled
  406. ---------------*/
  407. .ui.styled.sidebar {
  408. background-color: #FFFFFF;
  409. padding: 1em 1.25em;
  410. border-right: 1px solid #DDDDDD;
  411. }
  412. /*******************************
  413. Animations
  414. *******************************/
  415. /*--------------
  416. Overlay
  417. ---------------*/
  418. /* Set-up */
  419. .pushable.overlay > .visible.ui.sidebar {
  420. z-index: 904;
  421. }
  422. /* Animation */
  423. .pushable.overlay.show > .visible.ui.sidebar,
  424. .pushable.overlay.hide > .visible.ui.sidebar {
  425. -webkit-transition: -webkit-transform 0.5s ease;
  426. transition: transform 0.5s ease;
  427. }
  428. /*--- Left ---*/
  429. /* Set-up */
  430. .left.pushable.overlay > .visible.ui.sidebar {
  431. -webkit-transform: translate3d(-100%, 0, 0);
  432. transform: translate3d(-100%, 0, 0);
  433. }
  434. /* Pushed */
  435. .left.pushable.overlay.pushed .visible.ui.sidebar {
  436. -webkit-transform: translate3d(0%, 0, 0);
  437. transform: translate3d(0%, 0, 0);
  438. }
  439. /*--- Right ---*/
  440. /* Set-up */
  441. .right.pushable.overlay > .visible.ui.sidebar {
  442. -webkit-transform: translate3d(100%, 0, 0);
  443. transform: translate3d(100%, 0, 0);
  444. }
  445. /* Pushed */
  446. .right.pushable.overlay.pushed .visible.ui.sidebar {
  447. -webkit-transform: translate3d(0%, 0, 0);
  448. transform: translate3d(0%, 0, 0);
  449. }
  450. /*--- Top ---*/
  451. /* Set-up */
  452. .top.pushable.overlay > .visible.ui.sidebar {
  453. -webkit-transform: translate3d(0%, -100%, 0);
  454. transform: translate3d(0%, -100%, 0);
  455. }
  456. /* Pushed */
  457. .top.pushable.overlay.pushed .visible.ui.sidebar {
  458. -webkit-transform: translate3d(0%, 0%, 0);
  459. transform: translate3d(0%, 0%, 0);
  460. }
  461. /*--- Bottom ---*/
  462. /* Set-up */
  463. .bottom.pushable.overlay > .visible.ui.sidebar {
  464. -webkit-transform: translate3d(0%, 100%, 0);
  465. transform: translate3d(0%, 100%, 0);
  466. }
  467. /* Pushed */
  468. .bottom.pushable.overlay.pushed .visible.ui.sidebar {
  469. -webkit-transform: translate3d(0%, 0%, 0);
  470. transform: translate3d(0%, 0%, 0);
  471. }
  472. /*--------------
  473. Push
  474. ---------------*/
  475. /* Set-Up */
  476. .pushable.push > .fixed,
  477. .pushable.push > .pusher {
  478. -webkit-transform: translate3d(0px, 0, 0);
  479. transform: translate3d(0px, 0, 0);
  480. }
  481. .pushable.push > .visible.ui.sidebar {
  482. -webkit-transform: translate3d(-100%, 0, 0);
  483. transform: translate3d(-100%, 0, 0);
  484. }
  485. /* Pushed */
  486. .pushable.push.pushed > .visible.ui.sidebar {
  487. -webkit-transform: translate3d(0%, 0, 0);
  488. transform: translate3d(0%, 0, 0);
  489. }
  490. .pushable.push.pushed > .fixed,
  491. .pushable.push.pushed > .pusher {
  492. -webkit-transform: translate3d(260px, 0, 0);
  493. transform: translate3d(260px, 0, 0);
  494. }
  495. .pushable.push.show > .visible.ui.sidebar,
  496. .pushable.push.hide > .visible.ui.sidebar {
  497. -webkit-transition: -webkit-transform 0.5s ease;
  498. transition: transform 0.5s ease;
  499. }
  500. /*--------------
  501. Uncover
  502. ---------------*/
  503. /* Set-up */
  504. .pushable.uncover > .fixed,
  505. .pushable.uncover > .pusher {
  506. -webkit-transform: translate3d(0px, 0px, 0px);
  507. transform: translate3d(0px, 0px, 0px);
  508. }
  509. .pushable.uncover > .pusher {
  510. z-index: 900;
  511. }
  512. .pushable.uncover > .visible.ui.sidebar {
  513. -webkit-transition: none;
  514. transition: none;
  515. }
  516. /* Pushed */
  517. /*--- Left ---*/
  518. .pushable.left.uncover.pushed > .fixed,
  519. .pushable.left.uncover.pushed > .pusher {
  520. -webkit-transform: translate3d(260px, 0, 0);
  521. transform: translate3d(260px, 0, 0);
  522. }
  523. /*--- Right ---*/
  524. .pushable.right.uncover.pushed > .fixed,
  525. .pushable.right.uncover.pushed > .pusher {
  526. -webkit-transform: translate3d(-260px, 0, 0);
  527. transform: translate3d(-260px, 0, 0);
  528. }
  529. /*--------------
  530. Slide Along
  531. ---------------*/
  532. /* Set-up */
  533. .pushable.slide.along > .fixed,
  534. .pushable.slide.along > .pusher {
  535. -webkit-transform: translate3d(0px, 0, 0);
  536. transform: translate3d(0px, 0, 0);
  537. }
  538. .pushable.slide.along > .pusher {
  539. z-index: 900;
  540. }
  541. .pushable.slide.along > .visible.ui.sidebar {
  542. -webkit-transform: translate3d(-50%, 0, 0);
  543. transform: translate3d(-50%, 0, 0);
  544. }
  545. /* Pushed */
  546. .pushable.slide.along.pushed > .fixed,
  547. .pushable.slide.along.pushed > .pusher {
  548. -webkit-transform: translate3d(260px, 0, 0);
  549. transform: translate3d(260px, 0, 0);
  550. }
  551. .pushable.slide.along.pushed > .visible.ui.sidebar {
  552. -webkit-transform: translate3d(0%, 0, 0);
  553. transform: translate3d(0%, 0, 0);
  554. }
  555. .pushable.slide.along.show > .visible.ui.sidebar,
  556. .pushable.slide.along.hide > .visible.ui.sidebar {
  557. -webkit-transition: -webkit-transform 0.5s ease;
  558. transition: transform 0.5s ease;
  559. }
  560. /*--------------
  561. Slide Out
  562. ---------------*/
  563. /* Set-up */
  564. .pushable.slide.out > .fixed,
  565. .pushable.slide.out > .pusher {
  566. -webkit-transform: translate3d(0px, 0, 0);
  567. transform: translate3d(0px, 0, 0);
  568. }
  569. .pushable.slide.out > .visible.ui.sidebar {
  570. -webkit-transform: translate3d(50%, 0, 0);
  571. transform: translate3d(50%, 0, 0);
  572. }
  573. /* Pushed */
  574. .pushable.slide.out.pushed > .fixed,
  575. .pushable.slide.out.pushed > .pusher {
  576. -webkit-transform: translate3d(260px, 0, 0);
  577. transform: translate3d(260px, 0, 0);
  578. }
  579. .pushable.slide.out.pushed .visible.ui.sidebar {
  580. -webkit-transform: translate3d(0%, 0, 0);
  581. transform: translate3d(0%, 0, 0);
  582. }
  583. .pushable.slide.out.show > .visible.ui.sidebar,
  584. .pushable.slide.out.hide > .visible.ui.sidebar {
  585. -webkit-transition: -webkit-transform 0.5s ease;
  586. transition: transform 0.5s ease;
  587. }
  588. /*--------------
  589. Scale Down
  590. ---------------*/
  591. /* Set-up */
  592. .pushable.scale.down > .fixed {
  593. -webkit-transform: translate3d(0px, 0, 0);
  594. transform: translate3d(0px, 0, 0);
  595. }
  596. .pushable.scale.down > .pusher {
  597. z-index: 900;
  598. -webkit-transform-origin: 75% 50%;
  599. -ms-transform-origin: 75% 50%;
  600. transform-origin: 75% 50%;
  601. overflow: hidden;
  602. }
  603. .pushable.scale.down > .visible.ui.sidebar {
  604. -webkit-transform: translate3d(-100%, 0, 0);
  605. transform: translate3d(-100%, 0, 0);
  606. z-index: 904;
  607. }
  608. /* Pushed */
  609. .pushable.scale.down.pushed > .pusher {
  610. -webkit-transform: scale(0.75);
  611. -ms-transform: scale(0.75);
  612. transform: scale(0.75);
  613. }
  614. .pushable.scale.down.pushed > .visible.ui.sidebar {
  615. -webkit-transform: translate3d(0, 0, 0);
  616. transform: translate3d(0, 0, 0);
  617. }
  618. .pushable.scale.down.pushed > .fixed {
  619. -webkit-transform: translate3d(260px, 0, 0);
  620. transform: translate3d(260px, 0, 0);
  621. }
  622. /* 3D transition cant have duration set until animation */
  623. .pushable.scale.down.show > .visible.ui.sidebar,
  624. .pushable.scale.down.hide > .visible.ui.sidebar {
  625. -webkit-transition: -webkit-transform 0.5s ease;
  626. transition: transform 0.5s ease;
  627. }
  628. /*--------------
  629. Safe Mode
  630. ---------------*/
  631. /* Set-Up */
  632. .pushable.safe > .pusher {
  633. position: relative;
  634. -webkit-transform: none !important;
  635. -ms-transform: none !important;
  636. transform: none !important;
  637. -webkit-transition: none !important;
  638. transition: none !important;
  639. }
  640. .pushable.safe > .pusher {
  641. -webkit-transform: none !important;
  642. -ms-transform: none !important;
  643. transform: none !important;
  644. -webkit-transition: none !important;
  645. transition: none !important;
  646. }
  647. /* Pushed */
  648. .pushable.safe.pushed {
  649. margin-left: 260px !important;
  650. }
  651. .pushable.safe.pushed > .visible.ui.sidebar {
  652. margin-left: -260px;
  653. }
  654. .pushable.safe.pushed > .fixed {
  655. margin-left: 260px !important;
  656. }
  657. .pushable.safe.show,
  658. .pushable.safe.hide,
  659. .pushable.safe.show > .fixed,
  660. .pushable.safe.hide > .fixed {
  661. -webkit-transition: margin 0.5s ease !important;
  662. transition: margin 0.5s ease !important;
  663. }