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.

242 lines
4.4 KiB

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