_control-sidebar.scss 2.3 KB

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