control-sidebar.less 2.9 KB

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