// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@import "refactor/common-refactor.scss";

.workspace-header-left {
  display: flex;
  align-items: center;
  padding: $s-12 $s-12 $s-8 $s-12;
  min-height: $s-52;
}

.main-icon {
  @include flexCenter;
  width: $s-32;
  height: $s-32;
  min-height: $s-32;
  margin-right: $s-4;
  svg {
    min-height: $s-32;
    width: $s-32;
    fill: var(--icon-foreground-hover);
  }
}

.project-tree {
  position: relative;
  flex-grow: 1;
  height: $s-32;
  min-height: $s-32;
  max-width: calc(100% - $s-64);
}

.project-name,
.file-name {
  @include uppercaseTitleTipography;
  @include textEllipsis;
  height: $s-16;
  width: 100%;
  padding-bottom: $s-2;
  color: var(--title-foreground-color);
  cursor: pointer;
}

.file-name {
  @include smallTitleTipography;
  text-transform: none;
  color: var(--title-foreground-color-hover);
}

.file-name-input {
  @include flexCenter;
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  border-radius: $br-4;
  background-color: var(--input-background-color);
  font-size: $fs-14;
  color: var(--input-foreground-color);
  z-index: $z-index-20;
  white-space: break-spaces;
  &:focus {
    outline: none;
  }
}

.shared-badge {
  @include flexCenter;
  width: $s-16;
  height: $s-32;
  margin-right: $s-4;
  svg {
    stroke: var(--button-secondary-foreground-color-rest);
    fill: none;
    height: $s-16;
    width: $s-16;
  }
}
