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.

250 lines
4.5 KiB

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