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.

263 lines
4.8 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
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. @type : 'module';
  15. @element : 'sidebar';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Sidebar
  19. *******************************/
  20. body {
  21. transition: @bodyTransition;
  22. }
  23. .ui.sidebar {
  24. position: fixed;
  25. margin: 0 !important;
  26. height: 100% !important;
  27. border-radius: 0px !important;
  28. overflow-y: @overflowY;
  29. top: 0px;
  30. left: 0px;
  31. z-index: @zIndex;
  32. transition: @sidebarTransition;
  33. }
  34. /*-------------------
  35. Coupling
  36. --------------------*/
  37. body.pushed.scrolling.ui.dimmable {
  38. position: @dimmableSidebarPosition;
  39. }
  40. /*******************************
  41. Types
  42. *******************************/
  43. /*-------------------
  44. Direction
  45. --------------------*/
  46. .ui.right.very.thin.sidebar,
  47. .ui.right.thin.sidebar,
  48. .ui.right.sidebar,
  49. .ui.right.wide.sidebar,
  50. .ui.right.very.wide.sidebar {
  51. left: 100%;
  52. margin: 0px !important;
  53. }
  54. .ui.top.sidebar {
  55. width: 100% !important;
  56. }
  57. .ui.bottom.sidebar {
  58. width: 100% !important;
  59. top: 100%;
  60. margin: 0px !important;
  61. }
  62. /*******************************
  63. States
  64. *******************************/
  65. .ui.active.sidebar {
  66. margin-left: 0px !important;
  67. }
  68. .ui.active.top.sidebar,
  69. .ui.active.bottom.sidebar {
  70. margin-top: 0px !important;
  71. }
  72. /*******************************
  73. Variations
  74. *******************************/
  75. /*-------------------
  76. Formatted
  77. --------------------*/
  78. .ui.styled.sidebar {
  79. padding: @styledVerticalPadding @styledHorizontalPadding;
  80. background-color: @styledBackground;
  81. box-shadow: @styledBoxShadow;
  82. }
  83. .ui.styled.thin.sidebar {
  84. padding: @styledThinPadding;
  85. }
  86. .ui.styled.very.thin.sidebar {
  87. padding: @styledVeryThinPadding;
  88. }
  89. /*-------------------
  90. Floating
  91. --------------------*/
  92. .ui.floating.sidebar {
  93. box-shadow: @floatingLeftBoxShadow;
  94. }
  95. .ui.right.floating.sidebar {
  96. box-shadow: @floatingRightBoxShadow;
  97. }
  98. .ui.top.floating.sidebar {
  99. box-shadow: @floatingTopBoxShadow;
  100. }
  101. .ui.bottom.floating.sidebar {
  102. box-shadow: @floatingBottomBoxShadow
  103. }
  104. /*-------------------
  105. Width
  106. --------------------*/
  107. /* Very Thin */
  108. .ui.very.thin.sidebar {
  109. width: @veryThinWidth !important;
  110. margin-left: -@veryThinWidth !important;
  111. }
  112. .ui.active.very.thin.sidebar {
  113. margin-left: 0px !important;
  114. }
  115. .ui.active.right.very.thin.sidebar {
  116. margin-left: -@veryThinWidth !important;
  117. }
  118. /* Thin */
  119. .ui.thin.sidebar {
  120. width: @thinWidth !important;
  121. margin-left: -@thinWidth !important;
  122. }
  123. .ui.active.thin.sidebar {
  124. margin-left: 0px !important;
  125. }
  126. .ui.active.right.thin.sidebar {
  127. margin-left: -@thinWidth !important;
  128. }
  129. /* Standard */
  130. .ui.sidebar {
  131. width: @width !important;
  132. margin-left: -@width !important;
  133. }
  134. .ui.active.sidebar {
  135. margin-left: 0px !important;
  136. }
  137. .ui.active.right.sidebar {
  138. margin-left: -@width !important;
  139. }
  140. /* Wide */
  141. .ui.wide.sidebar {
  142. width: @wideWidth !important;
  143. margin-left: -@wideWidth !important;
  144. }
  145. .ui.active.wide.sidebar {
  146. margin-left: 0px !important;
  147. }
  148. .ui.active.right.wide.sidebar {
  149. margin-left: -@wideWidth !important;
  150. }
  151. /* Very Wide */
  152. .ui.very.wide.sidebar {
  153. width: @veryWideWidth !important;
  154. margin-left: -@veryWideWidth !important;
  155. }
  156. .ui.active.very.wide.sidebar {
  157. margin-left: 0px !important;
  158. }
  159. .ui.active.right.very.wide.sidebar {
  160. margin-left: -@veryWideWidth !important;
  161. }
  162. /*-------------------
  163. Height
  164. --------------------*/
  165. /* Very Thin */
  166. .ui.very.thin.top.sidebar {
  167. margin: -@veryThinHeight 0px 0px 0px !important;
  168. }
  169. .ui.very.thin.top.sidebar,
  170. .ui.very.thin.bottom.sidebar {
  171. height: @veryThinHeight !important;
  172. }
  173. .ui.very.thin.active.bottom.sidebar {
  174. margin-top: -@veryThinHeight !important;
  175. }
  176. /* Thin */
  177. .ui.thin.top.sidebar {
  178. margin: -@thinHeight 0px 0px 0px !important;
  179. }
  180. .ui.thin.top.sidebar,
  181. .ui.thin.bottom.sidebar {
  182. height: @thinHeight !important;
  183. }
  184. .ui.thin.active.bottom.sidebar {
  185. margin-top: -@thinHeight !important;
  186. }
  187. /* Standard */
  188. .ui.top.sidebar {
  189. margin: -@height 0px 0px 0px !important;
  190. }
  191. .ui.top.sidebar,
  192. .ui.bottom.sidebar {
  193. height: @height !important;
  194. }
  195. .ui.active.bottom.sidebar {
  196. margin-top: -@height !important;
  197. }
  198. /* Tall */
  199. .ui.tall.top.sidebar {
  200. margin: -@tallHeight 0px 0px 0px !important;
  201. }
  202. .ui.tall.top.sidebar,
  203. .ui.tall.bottom.sidebar {
  204. height: @tallHeight !important;
  205. }
  206. .ui.tall.active.bottom.sidebar {
  207. margin-top: -@tallHeight !important;
  208. }
  209. /* Very Tall */
  210. .ui.very.tall.top.sidebar {
  211. margin: -@veryTallHeight 0px 0px 0px !important;
  212. }
  213. .ui.very.tall.top.sidebar,
  214. .ui.very.tall.bottom.sidebar {
  215. height: @veryTallHeight !important;
  216. }
  217. .ui.very.tall.active.bottom.sidebar {
  218. margin-top: -@veryTallHeight !important;
  219. }
  220. .loadUIOverrides();