/*
 * Copyright 2023 Harness, Inc.
 *
 * 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.
 */

.thread {
  margin-bottom: var(--spacing-medium);
  --layout-spacing: var(--spacing-2) !important;

  .content {
    padding-left: 25px;
    position: relative;

    > ::before {
      position: absolute;
      top: -8px;
      left: 7px;
      content: '';
      width: 1px;
      height: calc(100% + 18px);
      border: 1px dashed var(--grey-200);
      opacity: 0.7;
    }

    &.hideGutter > ::before {
      display: none;
    }
    &.hideTitleGutter > ::before {
      display: none;
    }
  }
}

.titleContent {
  padding-left: 25px;
  position: relative;

  > ::before {
    position: absolute;
    top: 28px;
    left: 15px;
    content: '';
    width: 1px;
    height: 25px;
    border: 1px dashed var(--grey-200);
    opacity: 0.7;
    z-index: 2;
  }
  &.hideTitleGutter > ::before {
    display: none;
  }
}
.inCommentBox {
  padding-left: 25px;
  position: relative;

  > ::after {
    position: absolute;
    bottom: -10px;
    left: 15px;
    content: '';
    width: 1px;
    height: 22px;
    border: 1px dashed var(--grey-200);
    opacity: 0.7;
    z-index: 2;
  }
}

.threadLessSpace {
  margin-bottom: var(--spacing-small) !important;
  --layout-spacing: var(--spacing-2) !important;

  .content {
    padding-left: 25px;
    position: relative;
    --layout-spacing: var(--spacing-2) !important;

    > ::before {
      position: absolute;
      top: -8px;
      left: 9px;
      content: '';
      width: 1px;
      height: calc(100% + 18px);
      border: 1px dashed var(--grey-200);
      opacity: 0.7;
    }

    &.hideGutter > ::before {
      display: none;
    }
    &.hideTitleGutter > ::before {
      display: none;
    }
  }
}
