
/**
 * 1. Match height of logo in side bar, but allow it to expand to accommodate
 *    dropdown.
 */
.kuiLocalNav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 69px; /* 1 */
  color: $localNavTextColor;
  background-color: $localNavBackgroundColor;
  line-height: $globalLineHeight;
  border-bottom: solid 1px $globalColorLightGray;

  @include darkTheme {
    color: $localNavTextColor--darkTheme;
    background-color: $localNavBackgroundColor--darkTheme;
    border-color: darken($localNavBackgroundColor--darkTheme, 10%);
  }
}

/**
 * 1. Allow row to expand if the content is so long that it wraps.
 */
.kuiLocalNavRow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 29px; /* 1 */
}

.kuiLocalNavRow__section {
  display: flex;
  align-items: stretch;
}

/**
 * 1. We make this row flex-start because it usually contains a search input, which may expand
 *    beyond the height of this container. We can't use `align-items: center`, because this would
 *    cause the search input to overflow both on the top and bottom; `align-items: flex-start`
 *    makes it only overflow on the bottom. But this means we need to manually center the content
 *    of this container using padding.
 */
.kuiLocalNavRow--secondary {
  padding: 0 $localNavSideSpacing 10px; /* 1 */
  align-items: flex-start; /* 1 */
}
