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.

147 lines
2.8 KiB

  1. /*******************************
  2. Semantic Module: Sidebar
  3. Author: Jack Lukic
  4. Notes: First Commit March 25, 2013
  5. Sidebar Menu System
  6. *******************************/
  7. /*******************************
  8. Sidebar
  9. *******************************/
  10. body {
  11. -webkit-transition:
  12. margin 0.3s ease,
  13. -webkit-transform 0.3s ease
  14. ;
  15. -moz-transition:
  16. margin 0.3s ease,
  17. -moz-transform 0.3s ease
  18. ;
  19. -o-transition:
  20. margin 0.3s ease,
  21. transform 0.3s ease
  22. ;
  23. -ms-transition:
  24. margin 0.3s ease,
  25. transform 0.3s ease
  26. ;
  27. transition:
  28. margin 0.3s ease,
  29. transform 0.3s ease
  30. ;
  31. }
  32. .ui.sidebar {
  33. position: fixed;
  34. margin: 0 !important;
  35. width: 275px !important;
  36. height: 100% !important;
  37. -webkit-border-radius: 0px !important;
  38. -moz-border-radius: 0px !important;
  39. border-radius: 0px !important;
  40. -ms-overflow-y: auto;
  41. overflow-y: auto;
  42. top: 0px;
  43. left: 0px;
  44. z-index: 999;
  45. -webkit-transition:
  46. margin-left 0.3s ease,
  47. margin-top 0.3s ease
  48. ;
  49. -moz-transition:
  50. margin-left 0.3s ease,
  51. margin-top 0.3s ease
  52. ;
  53. -o-transition:
  54. margin-left 0.3s ease,
  55. margin-top 0.3s ease
  56. ;
  57. -ms-transition:
  58. margin-left 0.3s ease,
  59. margin-top 0.3s ease
  60. ;
  61. transition:
  62. margin-left 0.3s ease,
  63. margin-top 0.3s ease
  64. ;
  65. }
  66. /*******************************
  67. Types
  68. *******************************/
  69. .ui.sidebar {
  70. margin-left: -275px !important;
  71. }
  72. .ui.right.sidebar {
  73. left: 100%;
  74. margin: 0px !important;
  75. }
  76. .ui.top.sidebar {
  77. margin: -40px 0px 0px 0px !important;
  78. width: 100% !important;
  79. height: 40px !important;
  80. }
  81. .ui.bottom.sidebar {
  82. width: 100% !important;
  83. height: 40px !important;
  84. top: 100%;
  85. margin: 0px !important;
  86. }
  87. /*******************************
  88. States
  89. *******************************/
  90. .ui.active.sidebar {
  91. margin-left: 0px !important;
  92. }
  93. .ui.active.right.sidebar {
  94. margin-left: -275px !important;
  95. }
  96. .ui.active.top.sidebar {
  97. margin-top: 0px !important;
  98. }
  99. .ui.active.bottom.sidebar {
  100. margin-top: -40px !important;
  101. }
  102. /*******************************
  103. Variations
  104. *******************************/
  105. .ui.floating.sidebar {
  106. -webkit-box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
  107. -moz-box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
  108. box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.2);
  109. }
  110. .ui.right.floating.sidebar {
  111. -webkit-box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
  112. -moz-box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
  113. box-shadow: -3px 0px 3px rgba(0, 0, 0, 0.2);
  114. }
  115. .ui.top.floating.sidebar {
  116. -webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
  117. -moz-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
  118. box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
  119. }
  120. .ui.bottom.floating.sidebar {
  121. -webkit-box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
  122. -moz-box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
  123. box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.2);
  124. }