_control-sidebar.scss 2.2 KB

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