control-sidebar.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * Component: Control sidebar. By deafult, this is the right sidebar.
  3. */
  4. //The sidebar's backhround control class
  5. //This is a hack to make the background visible while scrolling
  6. .control-sidebar-bg {
  7. position: fixed;
  8. z-index: 900;
  9. top: 0;
  10. right: 0;
  11. bottom: 0;
  12. width: @control-sidebar-width;
  13. background: @sidebar-dark-bg;
  14. }
  15. //Transitions
  16. .control-sidebar-bg,
  17. .control-sidebar {
  18. .translate(@control-sidebar-width, 0);
  19. .transition-transform(@transition-speed ease-in-out);
  20. }
  21. .control-sidebar {
  22. position: absolute;
  23. top: @navbar-height;
  24. right: 0;
  25. width: @control-sidebar-width;
  26. z-index: 1010;
  27. color: @sidebar-dark-color;
  28. //Fix position after header collapse
  29. @media (max-width: @screen-sm) {
  30. top: @navbar-height + 50;
  31. }
  32. //Tab panes
  33. > .tab-content {
  34. padding: 10px 15px;
  35. }
  36. //Open state with slide over content effect
  37. &.control-sidebar-open {
  38. &,
  39. + .control-sidebar-bg {
  40. .translate(0, 0);
  41. }
  42. }
  43. }
  44. //Open without silde over content
  45. .control-sidebar-open {
  46. .control-sidebar-bg,
  47. .control-sidebar {
  48. .translate(0,0);
  49. }
  50. @media(min-width: @screen-sm) {
  51. .content-wrapper,
  52. .right-side,
  53. .main-footer {
  54. margin-right: @control-sidebar-width;
  55. }
  56. }
  57. }
  58. //Control sidebar tabs
  59. .control-sidebar-tabs {
  60. border-bottom: darken(@sidebar-dark-bg, 3%);
  61. > li {
  62. > a {
  63. .border-radius(0)!important;
  64. background: darken(@sidebar-dark-bg, 5%);
  65. color: @sidebar-dark-color;
  66. //Hover and active states
  67. &,
  68. &:hover {
  69. border-top: none;
  70. border-right: none;
  71. border-left: 1px solid darken(@sidebar-dark-bg, 7%)!important;
  72. border-bottom: 1px solid darken(@sidebar-dark-bg, 7%)!important;
  73. }
  74. &:hover,
  75. &:focus,
  76. &:active {
  77. background: darken(@sidebar-dark-bg, 3%);
  78. }
  79. .icon {
  80. font-size: 16px;
  81. }
  82. }
  83. //Active state
  84. &.active {
  85. > a {
  86. &,
  87. &:hover,
  88. &:focus,
  89. &:active {
  90. border-top: none!important;
  91. border-right: none!important;
  92. border-bottom: none!important;
  93. background: @sidebar-dark-bg;
  94. color: #fff;
  95. }
  96. }
  97. }
  98. }
  99. //Remove resposiveness on small screens
  100. @media(max-width: @screen-sm) {
  101. display: table;
  102. >li {
  103. display: table-cell!important;
  104. }
  105. }
  106. }
  107. //Headings in the sidebar content
  108. .control-sidebar-heading {
  109. color: #fff;
  110. font-weight: 400;
  111. font-size: 16px;
  112. padding: 10px 0;
  113. margin-bottom: 10px;
  114. }
  115. //Subheadings
  116. .control-sidebar-subheading {
  117. display: block;
  118. color: #fff;
  119. font-weight: 400;
  120. font-size: 14px;
  121. }
  122. //Control Sidebar Menu
  123. .control-sidebar-menu {
  124. list-style: none;
  125. padding: 0;
  126. margin: 0 -15px;
  127. > li > a {
  128. .clearfix();
  129. display: block;
  130. padding: 10px 15px;
  131. &:hover {
  132. background: @sidebar-dark-hover-bg;
  133. }
  134. > .control-sidebar-subheading {
  135. margin-top: 0;
  136. }
  137. }
  138. .menu-icon {
  139. float: left;
  140. width: 35px;
  141. height: 35px;
  142. border-radius: 50%;
  143. text-align: center;
  144. line-height: 35px;
  145. }
  146. .menu-info {
  147. margin-left: 45px;
  148. margin-top: 3px;
  149. > .control-sidebar-subheading {
  150. margin: 0;
  151. }
  152. > p {
  153. margin: 0;
  154. color: @sidebar-dark-color;
  155. font-size: 11px;
  156. }
  157. }
  158. .progress {
  159. margin: 0;
  160. }
  161. }