@import '@teambit/base-ui.layout.breakpoints/_breakpoints.scss';

.topBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.leftSide {
  display: flex;
  align-items: center;
  height: 100%;
  flex-grow: 1;
  min-width: 0;
}

.navigation {
  list-style: none;
  height: 100%;
  padding-left: 28px;
  @media screen and (max-width: $br-md) {
    padding-left: 0;
  }

  li {
    display: block;
    margin-right: 16px;
    height: 100%;
  }

  // show desktop nav on larger res
  &.desktopNav {
    display: flex;
    @media screen and (max-width: $br-md) {
      display: none;
    }
  }

  // show mobile nav on smaller res
  &.mobileNav {
    align-items: center;
    display: none;
    @media screen and (max-width: $br-lg) {
      display: flex;
      margin-right: 8px;
    }
  }
}

.rightSide {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 16px;

  > * {
    margin-right: 12px;
  }

  @media screen and (max-width: $br-lg) {
    > * {
      margin-right: 8px;
    }
  }
  .widget {
    font-size: 17px;
  }
}

.useBox,
.versionDropdown {
  --bit-drawer-margin: 10px;
}

.componentVersionMenu {
  width: 500px;
}
.componentVersionMenuWorkspace {
  width: 350px;
}

.tab {
  > div {
    color: var(--on-background-color, #2b2b2b);
    padding: 0;
  }
}
.topBarNav {
  height: 100%;

  &.noBorder::after {
    display: none;
  }
}

.hideOnMobile {
  @media screen and (max-width: $br-md) {
    display: none;
  }
}

.useBoxContainer {
  width: 500px !important;
  border: 1px solid var(--border-medium-color, #ededed);
}
