_control-sidebar.scss 2.2 KB

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