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.

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