_control-sidebar.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. //
  2. // Component: Control Sidebar
  3. //
  4. html.control-sidebar-animate {
  5. overflow-x: hidden;
  6. }
  7. .control-sidebar {
  8. bottom: $main-footer-height;
  9. position: absolute;
  10. top: $main-header-height;
  11. z-index: $zindex-control-sidebar;
  12. &,
  13. &::before {
  14. bottom: $main-footer-height;
  15. display: none;
  16. right: -$control-sidebar-width;
  17. width: $control-sidebar-width;
  18. @include transition(
  19. right $transition-speed $transition-fn,
  20. display $transition-speed $transition-fn
  21. );
  22. }
  23. &::before {
  24. content: "";
  25. display: block;
  26. position: fixed;
  27. top: 0;
  28. z-index: -1;
  29. }
  30. }
  31. body.text-sm {
  32. .control-sidebar {
  33. bottom: $main-footer-height-sm;
  34. top: $main-header-height-sm;
  35. }
  36. }
  37. .main-header.text-sm ~ .control-sidebar {
  38. top: $main-header-height-sm;
  39. }
  40. .main-footer.text-sm ~ .control-sidebar {
  41. bottom: $main-footer-height-sm;
  42. }
  43. .control-sidebar-push-slide {
  44. .content-wrapper,
  45. .main-footer {
  46. @include transition(margin-right $transition-speed $transition-fn);
  47. }
  48. }
  49. // Control sidebar open state
  50. .control-sidebar-open {
  51. .control-sidebar {
  52. display: block !important;
  53. &,
  54. &::before {
  55. right: 0;
  56. }
  57. }
  58. &.control-sidebar-push,
  59. &.control-sidebar-push-slide {
  60. .content-wrapper,
  61. .main-footer {
  62. margin-right: $control-sidebar-width;
  63. }
  64. }
  65. }
  66. // Control sidebar slide over content state
  67. .control-sidebar-slide-open {
  68. .control-sidebar {
  69. display: block;
  70. &,
  71. &::before {
  72. right: 0;
  73. @include transition(
  74. right $transition-speed $transition-fn,
  75. display $transition-speed $transition-fn
  76. );
  77. }
  78. }
  79. &.control-sidebar-push,
  80. &.control-sidebar-push-slide {
  81. .content-wrapper,
  82. .main-footer {
  83. margin-right: $control-sidebar-width;
  84. }
  85. }
  86. }
  87. // Dark skin
  88. .control-sidebar-dark {
  89. background-color: $sidebar-dark-bg;
  90. &,
  91. a,
  92. .nav-link {
  93. color: $sidebar-dark-color;
  94. }
  95. a:hover {
  96. color: $sidebar-dark-hover-color;
  97. }
  98. // Headers and labels
  99. h1,
  100. h2,
  101. h3,
  102. h4,
  103. h5,
  104. h6,
  105. label {
  106. color: $sidebar-dark-hover-color;
  107. }
  108. // Tabs
  109. .nav-tabs {
  110. background-color: $sidebar-dark-hover-bg;
  111. border-bottom: 0;
  112. margin-bottom: 5px;
  113. .nav-item {
  114. margin: 0;
  115. }
  116. .nav-link {
  117. border-radius: 0;
  118. padding: 10px 20px;
  119. position: relative;
  120. text-align: center;
  121. &,
  122. &:hover,
  123. &:active,
  124. &:focus,
  125. &.active {
  126. border: 0;
  127. }
  128. &:hover,
  129. &:active,
  130. &:focus,
  131. &.active {
  132. border-bottom-color: transparent;
  133. border-left-color: transparent;
  134. border-top-color: transparent;
  135. color: $sidebar-dark-hover-color;
  136. }
  137. &.active {
  138. background-color: $sidebar-dark-bg;
  139. }
  140. }
  141. }
  142. .tab-pane {
  143. padding: 10px 15px;
  144. }
  145. }
  146. // Light skin
  147. .control-sidebar-light {
  148. color: lighten($sidebar-light-color, 10%);
  149. // Background
  150. background-color: $sidebar-light-bg;
  151. border-left: $main-header-bottom-border;
  152. }