Darep/Beatstream

View on GitHub
app/assets/stylesheets/components/_sidebar.scss

Summary

Maintainability
Test Coverage
#sidebar {
  background: #eaeaea;
  border-right: 1px solid #d4d4d4;
  font-size: 11px;
  height: 100%;
  width: 189px;

  ul {
    @include box-shadow(0 1px 0 #fff);
    border-bottom: 1px solid #c7c7c7;
    list-style: none;
    margin: 0 -20px 15px;
    padding: 0 0 10px;
  }

  li {
    display: block;
    height: 28px;
    line-height: 28px;
    position: relative;
    z-index: 0;

    &.hover a {
      color: #222;
    }

    a {
      color: #777;
      display: block;
      padding: 0 20px;
      text-decoration: none;

      &:after {
        background: #aaa;
        content: '';
        display: block;
        height: 28px;
        position: absolute;
        left: 0;
        top: 0;
        width: 5px;
      }
    }
  }

  .count {
    float: right;
    font-weight: 400;
  }

  a:hover {
    color: #222;
  }

  .common {
    font-size: 13px;
    font-weight: 700;

    a {
      color: #222;
    }
  }

  .none {
    @include border-radius(8px);
    border: 2px dashed #bbb;
    color: #666;
    margin: 15px 0;
    padding: 10px 12px;
  }
}

#sidebar-wrap {
  min-width: 100px;
  padding: 10px 20px;
}