// Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved.
// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.

@include exports('subnav.clarity') {
  .sub-nav, /*TODO: deprecated. Remove when the clarity css naming convention is implemented.*/
    .subnav {
    display: flex;
    box-shadow: $clr-nav-shadow;
    justify-content: space-between; //nav to the first and aside to the very right
    align-items: center;
    background-color: $clr-subnav-bgColor;
    height: $clr-subnav-height;

    .nav {
      flex: 1 1 auto;
      padding-left: 1rem;
    }

    aside {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      height: $clr-subnav-height;
      padding: 0 1rem;

      & > :last-child {
        margin-right: 0;
        padding-right: 0;
      }
    }
  }
}
