control-sidebar.less 1.6 KB
Newer Older
A
Abdullah Almsaeed 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
/*
 * Component: Control sidebar. By deafult, this is the right sidebar.
 */
.control-sidebar {
  position: absolute;
  top: @navbar-height;
  right: 0;
  width: @control-sidebar-width;
  z-index: 1010;
  background: @sidebar-dark-bg;
  color: @sidebar-dark-color;
  //Make it hide in small screens
  @media (max-width: @screen-sm) {
    .translate(@control-sidebar-width, 0);    
  }
  //Tab panes
  > .tab-content {
    padding: 10px 15px;   
  }
}
//Control sidebar tabs
.control-sidebar-tabs {
  border-bottom: darken(@sidebar-dark-bg, 3%);
  > li {
    > a {
      .border-radius(0)!important;         
      background: darken(@sidebar-dark-bg, 5%);
      color: @sidebar-dark-color;    
      //Hover and active states
      &,
      &:hover {
        border-right: none;
        border-left: 1px solid darken(@sidebar-dark-bg, 7%)!important;
        border-bottom: 1px solid darken(@sidebar-dark-bg, 7%)!important;
      }
      &:hover,
        &:focus,
        &:active {
        border-top: none;
        background: darken(@sidebar-dark-bg, 3%);
      }
      .icon {
        font-size: 16px;
      }
    }
    //Active state
    &.active {
      > a {
        &,
        &:hover,
          &:focus,
          &:active {
          border-top: none!important;
          border-right: none!important;
          border-bottom: none!important;
          background: @sidebar-dark-bg;
          color: #fff;          
        }
      }
    }
  }  
}
//Headings in the sidebar content
.control-sidebar-heading {
  color: #fff;
}

.content-wrapper,
.right-side,
.main-footer {
  margin-right: @control-sidebar-width;
  @media (max-width: @screen-sm) {
    margin-right: 0;
  }
}