// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
@mixin topbar(
  $toolbar-margin,
  $toolbar-width,
  $sidetab-width,
  $toolbar-height: 36px
) {
  .sanddance-explorer-topbar {
    background-color: #fff;
    border-bottom: 1px solid $toolbar-border;
    display: grid;
    grid-template-columns: $toolbar-width auto;
    height: $toolbar-height;
    .logo {
      color: $highlight-color;
      display: grid;
      grid-template-columns: $sidetab-width auto;
      padding: 6px 0;
      svg {
        fill: $highlight-color;
        height: 24px;
        margin: 0 auto;
        width: 24px;
      }
      a {
        color: inherit;
        font-size: 14px;
        font-weight: bold;
        line-height: 24px;
        text-decoration: none;
      }
    }
  }

  //contain the commandbar so it can be measured
  .sanddance-explorer-commandbar {
    position: relative;
    > div {
      left: 0;
      position: absolute;
      right: 0;
    }
    .ms-CommandBar {
      height: $toolbar-height;
    }
  }

  .dark-theme .sanddance-explorer-topbar {
    background-color: #000;
    .logo {
      color: #00b4f0;
    }
  }
}
