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.

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