/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */

@import "theme";

.handler {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: block;
  padding: 12px 0;
  border: 1px solid @border-color-split;
  background: @background-color-light;
  font-size: 14px;
  transform: translateY(-50%);

  &.close {
    left: -16px;
    margin-top: -25px;
  }

  &.full {
    left: -16px;
    margin-top: 25px;
  }

  &:hover {
    background: @primary-color;
    color: #fff;
  }
}

:host {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: block;
  width: 60%;
  height: 100%;
  border-left: solid 1px @border-color-split;
  background: @component-background;

  &.full-width {
    width: 100%;
    border-left: none;

    .handler {
      &.close {
        left: -1px;
      }

      &.full {
        display: none;
      }
    }
  }

  ::ng-deep {
    .ant-tabs-bar {
      margin: 0;
    }

    .ant-tabs-tab:first-of-type {
      margin: 0 0 0 @margin-md;
    }
  }
}

.drawer-content {
  overflow: auto;
  height: calc(~"100% - 38px");
}
