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.

188 lines
4.4 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, -webkit-transform 0.3s ease;
  16. -moz-transition: margin 0.3s ease, -moz-transform 0.3s ease;
  17. -o-transition: margin 0.3s ease,
  18. transform 0.3s ease
  19. ;
  20. -ms-transition: margin 0.3s ease,
  21. transform 0.3s ease
  22. ;
  23. transition: margin 0.3s ease,
  24. transform 0.3s ease
  25. ;
  26. }
  27. .ui.sidebar {
  28. position: fixed;
  29. margin: 0 !important;
  30. height: 100% !important;
  31. -webkit-border-radius: !important 0px;
  32. -moz-border-radius: !important 0px;
  33. border-radius: !important 0px;
  34. -webkit-box-sizing: border-box;
  35. -moz-box-sizing: border-box;
  36. -ms-box-sizing: border-box;
  37. box-sizing: border-box;
  38. -ms-overflow-y: auto;
  39. overflow-y: auto;
  40. top: 0px;
  41. right: 0px;
  42. z-index: 999;
  43. -webkit-transition: margin-right 0.3s ease, margin-top 0.3s ease;
  44. -moz-transition: margin-right 0.3s ease, margin-top 0.3s ease;
  45. -o-transition: margin-right 0.3s ease, margin-top 0.3s ease;
  46. -ms-transition: margin-right 0.3s ease, margin-top 0.3s ease;
  47. transition: margin-right 0.3s ease, margin-top 0.3s ease;
  48. }
  49. /*******************************
  50. Types
  51. *******************************/
  52. /*-------------------
  53. Direction
  54. --------------------*/
  55. .ui.right.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. box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.1);
  87. }
  88. .ui.styled.very.thin.sidebar {
  89. padding: 0.5em;
  90. }
  91. .ui.styled.thin.sidebar {
  92. padding: 1em;
  93. }
  94. /*-------------------
  95. Floating
  96. --------------------*/
  97. .ui.floating.sidebar {
  98. -webkit-box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2);
  99. -moz-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. -moz-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. -moz-box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
  110. box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
  111. }
  112. .ui.bottom.floating.sidebar {
  113. -webkit-box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
  114. -moz-box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
  115. box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
  116. }
  117. /*-------------------
  118. Width
  119. --------------------*/
  120. /* Very Thin */
  121. .ui.very.thin.sidebar {
  122. width: 60px !important;
  123. margin-right: -60px !important;
  124. }
  125. .ui.active.very.thin.sidebar {
  126. margin-right: 0px !important;
  127. }
  128. .ui.active.right.very.thin.sidebar {
  129. margin-right: -60px !important;
  130. }
  131. /* Thin */
  132. .ui.thin.sidebar {
  133. width: 200px !important;
  134. margin-right: -200px !important;
  135. }
  136. .ui.active.thin.sidebar {
  137. margin-right: 0px !important;
  138. }
  139. .ui.active.right.thin.sidebar {
  140. margin-right: -200px !important;
  141. }
  142. /* Standard */
  143. .ui.sidebar {
  144. width: 275px !important;
  145. margin-right: -275px !important;
  146. }
  147. .ui.active.sidebar {
  148. margin-right: 0px !important;
  149. }
  150. .ui.active.right.sidebar {
  151. margin-right: -275px !important;
  152. }
  153. /* Wide */
  154. .ui.wide.sidebar {
  155. width: 350px !important;
  156. margin-right: -350px !important;
  157. }
  158. .ui.active.wide.sidebar {
  159. margin-right: 0px !important;
  160. }
  161. .ui.active.right.wide.sidebar {
  162. margin-right: -350px !important;
  163. }
  164. /* Very Wide */
  165. .ui.very.wide.sidebar {
  166. width: 475px !important;
  167. margin-right: -475px !important;
  168. }
  169. .ui.active.very.wide.sidebar {
  170. margin-right: 0px !important;
  171. }
  172. .ui.active.right.very.wide.sidebar {
  173. margin-right: -475px !important;
  174. }
  175. /*-------------------
  176. Height
  177. --------------------*/
  178. /* Standard */
  179. .ui.top.sidebar {
  180. margin: -40px 0px 0px 0px !important;
  181. }
  182. .ui.top.sidebar,
  183. .ui.bottom.sidebar {
  184. height: 40px !important;
  185. }
  186. .ui.active.bottom.sidebar {
  187. margin-top: -40px !important;
  188. }