/*!
 * Copyright (c) 2020 Eclipse Foundation, Inc.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 * 
 * Contributors:
 *   Eric Poirier <eric.poirier@eclipse-foundation.org>
 * 
 * SPDX-License-Identifier: EPL-2.0
*/


.sidebar-block {
  margin-top:50px;
  .sidebar-block-item {
    margin-bottom:@sidebar-block-item-margin-bottom;
    margin-right:0;
    margin-left:0;
    background-color: @sidebar-block-item-bg-color;
    padding-top:17px;
    padding-bottom:10px;
    &.active {
      background-color: @sidebar-block-item-active-bg-color;
      a {
        color:@sidebar-block-item-active-a-color;
      }
      &:hover {
        background-color: @sidebar-block-item-active-a-bg-color-hover;
      }
    }
    &:hover:not(.active) {
      background-color: @sidebar-block-item-bg-color-hover;
      a {
        color:@sidebar-block-item-a-color;
      }
    }
  }
  .sidebar-block-sub-items {
    background-color:@sidebar-block-sub-items-bg-color;
    margin-top:@sidebar-block-sub-items-margin-top;
    margin-right:0;
    margin-left:0;
    border:@sidebar-block-sub-items-border;
    a {
      &:hover {
        font-weight:bold;
      }
    }
  }
  .sidebar-block-sub-item {
    padding:0 0 8px 15px;
    margin-bottom:0;
    a.active {
      .sidebar-block-text {
        font-weight:bold;
      }
    }
    &:first-child {
      padding-top:15px;
    }
    &:last-child {
      padding-bottom:15px;
    }
  }
  a {
    display: block;
    color:@sidebar-block-a-color;
    .sidebar-block-icon {
      width:@sidebar-block-a-icon-width;
      height:@sidebar-block-a-icon-height;
      stroke-width: 1;
      margin:@sidebar-block-a-icon-margin;
    }
    .sidebar-block-text {
      padding:2px 0 0;
    }
  }
}