/*
 * Copyright (c) 2018 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:
 *   Christopher Guindon <chris.guindon@eclipse-foundation.org>
 * 
 * SPDX-License-Identifier: EPL-2.0
*/

// accounts.eclipse.org/user Drupal sub menus

.solstice-sub-menu {
  .search-form {
    .form-group {
      margin: 3px 0;
    }
  }
  li {
    padding-bottom: 0;
    a {
      border-radius: 0;
      &:link, &:visited {
        font-weight: 300;
      }
    }
  }
  &.solstice-sub-menu-default {
    background: @site-login-user-menu-background;
    color: @site-login-user-menu-color;
    border-bottom:1px solid #a5a5a5;
    border-top:1px solid #a5a5a5;
    padding-top:3px;
    .nav > li {
      > a {
        margin-bottom:3px;
        &:link, &:visited {
          color: @site-login-user-menu-color;
          background-color:transparent;
        }
        &:hover, &:focus {
          border-bottom: 3px solid lighten(@gray, 50%);
          background-color:transparent;
          margin-bottom:0;
        }
        &:active, &.active {
          border-bottom: 3px solid @brand-primary;
          background-color:transparent;
          margin-bottom:0;
        }
        &.item-danger {
          color: darken(@red, 10%);
          font-weight: bold;
        }
      }
    }
  }
  &.solstice-sub-menu-secondary{
    background: #cacaca;
    color: @site-login-user-menu-color;
    border-bottom: 1px solid #a5a5a5;
    padding-top:3px;
    .nav > li {
      > a {
        margin-bottom:3px;
        &:link, &:visited {
          color: @site-login-user-menu-color;
        }
        &:hover, &:focus {
          border-bottom: 3px solid lighten(@gray, 50%);
          background-color:transparent;
          margin-bottom:0;
        }
        &:active, &.active {
          border-bottom: 3px solid @brand-primary;
          background-color:transparent;
          margin-bottom:0;
        }
      }
    }
  }
  .solstice-sub-menu-dropdown {
    margin-top: 0;
    border-top: 1px solid #a5a5a5;
    font-size: 12px;
    font-weight: 300;
    min-width: 200px;
    a:hover{
      color:#7b7b7b;
    }
  }
}