@import '~antd/es/style/themes/default.less';

html,
body,
#app {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
  overflow: auto;

  .ant-layout-content {
    margin: 12px;
  }
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

iframe {
  border: none;
  padding-top: 15px;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}

.ant-pro-global-header-layout-side>div:first-child /deep/ {
  flex: 0 !important;
}

iframe {
  border: none !important;
}

:global {

  ::-webkit-scrollbar {
    height: 6px; //x轴滚动条粗细
    width: 6px; //y轴滚动条粗细
    border-bottom: 2px solid white;
  }

  //滚动条里面的小方块，能上下左右移动（取决于是垂直滚动条还是水平滚动条）
  ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    background: rgba(74, 74, 75, 0.3);
    margin-bottom: 10px;
  }

  //滚动条的轨道（里面装有thumb）滚动槽
  ::-webkit-scrollbar-track {
    box-shadow: 0;
    border-radius: 0;
    background: white; //滚动槽背景色
    border-radius: 10px; //滚动条边框半径设置
  }

  .ant-table-body {
    border-right: 1px solid rgb(240, 240, 240);

    .ant-table-row:hover>td {
      background: #aed8fa !important;
    }
  }



  .ant-table-cell {

    overflow: hidden;
    white-space: nowrap;
  }

  .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {
    line-height: 28px;
    width: 0;
  }

  .ant-tree-drop-indicator {
    bottom: 3px;
    margin-left: 6px;
  }

  .ant-tree-draggable-icon {
    display: none;
  }

  .ant-tree-switcher-icon svg {
    font-size: 14px;
    color: #767777;
  }

  .ant-table-pagination {
    padding-right: 12px;
    background: white;
    margin: 1px 0;
    padding: 8px;
    padding-right: 20px;
  }

  .ant-pagination {
    padding-right: 12px;
    background: white;
    margin: 1px 0;
    padding: 8px;
    padding-right: 20px;
  }

  .ant-tree-node-content-wrapper .anticon-folder,
  .ant-tree-icon__customize,
  .ant-tree-switcher-icon {
    color: #1890ff;
  }

  .ant-tree-node-content-wrapper {
    width: 100%;

    .ant-tree-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: block;
    }
  }

  .ant-spin-nested-loading {
    height: 100%;
  }

  .ant-spin-container {
    height: 100%;
  }
  textarea.ant-input {
   border:1px solid #d9d9d9 ;
}
}