/*
 * 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 {
  .BreadcrumbsWrapper {
    display: flex;
    align-items: center;
  }

  .Breadcrumbs {
    display: inline-flex;
    text-overflow: ellipsis;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%; // do not let to exceed parent width
    align-items: center;
    .icon-container {
      display: flex;
      cursor: pointer;
      font-weight: 600;

      &-breadcrumb-more {
        height: 20px;
        width: 20px;
        padding: 0;
        color: var(--icon--primary);
      }
    }
    .spacing {
      margin: 0 6px 0 4px;
    }
    span {
      font-weight: 600;
    }
    .addMinWidth {
      min-width: fit-content;
    }
    .crumb {
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--text--link);
    }
    .long-crumb {
      // these will need to be removed once a character limit is added.
      max-width: 600px;
      overflow: hidden;
      text-overflow: ellipsis;
      a,
      span {
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
  }
  .menu-crumb {
    overflow: hidden;
    text-overflow: ellipsis;
    a {
      color: var(--text--primary) !important;
      text-decoration: none !important;
    }
  }
  .paper {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 240px;
    box-shadow: var(--dremio--shadow--layer-1) !important;
    max-height: 300px !important;
  }

  .shortMaxWidth {
    max-width: 280px;
  }
  .margin-left {
    margin-left: var(--dremio--spacing--05);
  }
}
