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.

186 lines
4.2 KiB

10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Sidebar
  3. * http://github.com/jlukic/semantic-ui/
  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. body {
  15. -webkit-transition: margin 0.3s ease, -webkit-transform 0.3s ease /*rtl:append:,
  16. padding 0.3s ease*/;
  17. -moz-transition: margin 0.3s ease, -moz-transform 0.3s ease /*rtl:append:,
  18. padding 0.3s ease*/;
  19. transition: margin 0.3s ease, transform 0.3s ease /*rtl:append:,
  20. padding 0.3s ease*/;
  21. }
  22. .ui.sidebar {
  23. position: fixed;
  24. margin: 0 !important;
  25. height: 100% !important;
  26. border-radius: 0px !important;
  27. -webkit-box-sizing: border-box;
  28. -moz-box-sizing: border-box;
  29. -ms-box-sizing: border-box;
  30. box-sizing: border-box;
  31. -ms-overflow-y: auto;
  32. overflow-y: auto;
  33. top: 0px;
  34. left: 0px;
  35. z-index: 999;
  36. -webkit-transition: margin-left 0.3s ease, margin-top 0.3s ease;
  37. -moz-transition: margin-left 0.3s ease, margin-top 0.3s ease;
  38. transition: margin-left 0.3s ease, margin-top 0.3s ease;
  39. }
  40. /*-------------------
  41. Coupling
  42. --------------------*/
  43. body.pushed.scrolling.ui.dimmable {
  44. position: static;
  45. }
  46. /*******************************
  47. Types
  48. *******************************/
  49. /*-------------------
  50. Direction
  51. --------------------*/
  52. .ui.right.very.thin.sidebar,
  53. .ui.right.thin.sidebar,
  54. .ui.right.sidebar,
  55. .ui.right.wide.sidebar,
  56. .ui.right.very.wide.sidebar {
  57. left: 100%;
  58. margin: 0px !important;
  59. }
  60. .ui.top.sidebar {
  61. width: 100% !important;
  62. }
  63. .ui.bottom.sidebar {
  64. width: 100% !important;
  65. top: 100%;
  66. margin: 0px !important;
  67. }
  68. /*******************************
  69. States
  70. *******************************/
  71. .ui.active.sidebar {
  72. margin-left: 0px !important;
  73. }
  74. .ui.active.top.sidebar,
  75. .ui.active.bottom.sidebar {
  76. margin-top: 0px !important;
  77. }
  78. /*******************************
  79. Variations
  80. *******************************/
  81. /*-------------------
  82. Formatted
  83. --------------------*/
  84. .ui.styled.sidebar {
  85. padding: 1em 1.5em;
  86. background-color: #FFFFFF;
  87. -webkit-box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1);
  88. box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1);
  89. }
  90. .ui.styled.very.thin.sidebar {
  91. padding: 0.5em;
  92. }
  93. .ui.styled.thin.sidebar {
  94. padding: 1em;
  95. }
  96. /*-------------------
  97. Floating
  98. --------------------*/
  99. .ui.floating.sidebar {
  100. -webkit-box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2);
  101. box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2);
  102. }
  103. .ui.right.floating.sidebar {
  104. -webkit-box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.2);
  105. box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.2);
  106. }
  107. .ui.top.floating.sidebar {
  108. -webkit-box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
  109. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
  110. }
  111. .ui.bottom.floating.sidebar {
  112. -webkit-box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
  113. box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
  114. }
  115. /*-------------------
  116. Width
  117. --------------------*/
  118. /* Very Thin */
  119. .ui.very.thin.sidebar {
  120. width: 60px !important;
  121. margin-left: -60px !important;
  122. }
  123. .ui.active.very.thin.sidebar {
  124. margin-left: 0px !important;
  125. }
  126. .ui.active.right.very.thin.sidebar {
  127. margin-left: -60px !important;
  128. }
  129. /* Thin */
  130. .ui.thin.sidebar {
  131. width: 200px !important;
  132. margin-left: -200px !important;
  133. }
  134. .ui.active.thin.sidebar {
  135. margin-left: 0px !important;
  136. }
  137. .ui.active.right.thin.sidebar {
  138. margin-left: -200px !important;
  139. }
  140. /* Standard */
  141. .ui.sidebar {
  142. width: 275px !important;
  143. margin-left: -275px !important;
  144. }
  145. .ui.active.sidebar {
  146. margin-left: 0px !important;
  147. }
  148. .ui.active.right.sidebar {
  149. margin-left: -275px !important;
  150. }
  151. /* Wide */
  152. .ui.wide.sidebar {
  153. width: 350px !important;
  154. margin-left: -350px !important;
  155. }
  156. .ui.active.wide.sidebar {
  157. margin-left: 0px !important;
  158. }
  159. .ui.active.right.wide.sidebar {
  160. margin-left: -350px !important;
  161. }
  162. /* Very Wide */
  163. .ui.very.wide.sidebar {
  164. width: 475px !important;
  165. margin-left: -475px !important;
  166. }
  167. .ui.active.very.wide.sidebar {
  168. margin-left: 0px !important;
  169. }
  170. .ui.active.right.very.wide.sidebar {
  171. margin-left: -475px !important;
  172. }
  173. /*-------------------
  174. Height
  175. --------------------*/
  176. /* Standard */
  177. .ui.top.sidebar {
  178. margin: -40px 0px 0px 0px !important;
  179. }
  180. .ui.top.sidebar,
  181. .ui.bottom.sidebar {
  182. height: 40px !important;
  183. }
  184. .ui.active.bottom.sidebar {
  185. margin-top: -40px !important;
  186. }