/*
 *
 *  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 '~antd/es/style/themes/default.less';

.main {
  //width: 100%;
  //background: @component-background;
}
.card {
  margin-bottom: 24px;
  :global {
    .ant-legacy-form-item .ant-legacy-form-item-control-wrapper {
      width: 100%;
    }
  }
}

.card{
  background-color: #ffffff;
}



:global {

  /* --- tool窗口 滚动条 --- start */
  .scrollbars-tool{
    height: calc((100vh - 116px)/2 - 32px)!important;
  }
  /* --- tool窗口 滚动条 --- end */
  /* --- 水平 tabs --- start */
  .ant-tabs-top > .ant-tabs-nav, .ant-tabs-bottom > .ant-tabs-nav, .ant-tabs-top > div > .ant-tabs-nav, .ant-tabs-bottom > div > .ant-tabs-nav {
    margin: 0;
  }
  .ant-tabs-card.ant-tabs-small>.ant-tabs-nav .ant-tabs-tab {
    padding: 4px 8px;
  }
  .ant-tabs-small>.ant-tabs-nav .ant-tabs-tab {
    padding: 5px 0;
    font-size: 14px;
  }
  .ant-tabs-editable-card .ant-tabs-tab .anticon {
    margin-right: 4px;
    vertical-align: text-top;
  }
  /* --- 水平 tabs --- end */
  /* --- card 内偏移样式 --- start */
  #studio_card > .ant-card-body {
    padding: 0px;
  }
  /* --- card 内偏移样式 --- end */
  /* --- list toolbar隐藏滚动条 --- start */
  .ant-pro-table-list-toolbar {
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1;
  }
  /* --- list toolbar隐藏滚动条 --- end */
  /* --- list toolbar修改内偏移 --- start */
  .ant-pro-table-list-toolbar-container {
    padding: 0;
  }
  /* --- list toolbar修改内偏移 --- end */
  /* --- prodescription item宽度 --- start */
  /*.ant-descriptions-item-content {
    width: 100%;
  }*/
  /* --- prodescription item宽度 --- end */
  /* --- table 宽度 --- start */
  .ant-table-wrapper {
    width: 100%;
  }
  /* --- table 宽度 --- end */
  /* --- 右键菜单选项 高度 --- start */
  .ant-menu-vertical > .ant-menu-item, .ant-menu-vertical-left > .ant-menu-item, .ant-menu-vertical-right > .ant-menu-item, .ant-menu-inline > .ant-menu-item, .ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title, .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
    height: 30px;
    line-height: 30px;
  }
  /* --- 右键菜单选项 高度 --- end */
}

/* --- tabs 垂直样式 --- start */
.vertical-tabs{
  :global {
    .ant-tabs-left>.ant-tabs-nav, .ant-tabs-right>.ant-tabs-nav, .ant-tabs-left>div>.ant-tabs-nav, .ant-tabs-right>div>.ant-tabs-nav {
      min-width: 20px;
    }

    .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab, .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab, .ant-tabs-left>div>.ant-tabs-nav .ant-tabs-tab, .ant-tabs-right>div>.ant-tabs-nav .ant-tabs-tab {
      padding: 5px 5px;
    }

    .ant-tabs-tab-btn {
      writing-mode: vertical-lr;
    }

    .ant-tabs-tab .anticon {
      margin-right: 0;
    }

    .anticon {
      vertical-align: 0;
    }

    .ant-tabs-left > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane, .ant-tabs-left > div > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {
      padding-left: 10px;
    }

    .ant-tabs-right > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane, .ant-tabs-right > div > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {
      padding-right: 10px;
    }
    .ant-tabs > .ant-tabs-nav .ant-tabs-nav-more, .ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-more {
      padding: 8px;
    }

    /* --- 树文字显示  --- start */
    .ant-tree-node-content-wrapper{
      white-space: nowrap;
      //max-width: 100%;
      height: 15px;
      overflow: hidden;
      text-overflow-ellipsis: true;
    }
    .ant-tree.ant-tree-directory .ant-tree-treenode-selected::before, .ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover::before {
      background: rgba(21, 115, 204, 0.58);
      //background: linear-gradient(112.72013189013455deg, rgba(240, 94, 7,1) 4.927083333333334%,rgba(30, 189, 177,1) 97.84374999999999%);
      top: -3px;
      //background: linear-gradient(151.47483992787556deg, rgba(97, 116, 180,1) 28.044290288153682%,rgba(229, 151, 64,1) 78.3110992529349%);
    }
  }
}
/* --- tabs 垂直样式 --- end */

