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.

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