/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:global {
  .branch-body {
    display: flex;
    flex-direction: column;
    height: 100%;

    &-header {
      display: flex;
      align-items: center;
      margin-top: 16px;
      &-project-name {
        font-weight: 600;
      }
    }

    &-search {
      display: flex;
      width: 30%;
      margin-left: auto;
      min-width: 348px;
      .branch-button {
        margin-right: 16px;
      }
    }

    &-default-branch {
      margin: 16px;
      height: 119px;
      .branch-list-container [role="grid"] {
        overflow: hidden !important;
      }
      .branch-list {
        overflow: hidden;
      }
    }
    &-all-branch-list {
      margin: 24px 16px 0 16px;
      overflow: auto;
      max-height: 65.5vh;
      // Add min-height to prevent flex: 1 item from overflowing
      //https://stackoverflow.com/questions/42130384/why-should-i-specify-height-0-even-if-i-specified-flex-basis-0-in-css3-flexbox
      min-height: 0;

      .branch-list-container {
        overflow: auto;
      }
    }
  }
}
