index.less 7.08 KB
@import '~@/variable.less';
.indexCenter {
  height: 100vh;
  // overflow-y: auto;
  padding:60px 10px 0 10px;
  background: #888;
  .linkStyle a{
    color: #000;
  }
  .linkStyle a:hover{
    text-decoration: underline;
    //color:#1890ff;
  }
  .tdSpan{
    font-weight: 600;
  }
  .tdSpan2{
    font-weight: 600;
  }
  .tdSpan1{
    font-weight: 600;
    color: #ff0000;
    font-size: 14px;
  }
  .divSpan{
    text-align: center;
  }
#kpi{
    //height:calc(100vh * 0.64 );
    height:calc(100vh - 120px ); /* 主页没有图表区域 */
    .extraCheckBox {
      margin-right: 20px!important;
    }
    .kpi {
      position: relative;
      .extraCalc {
        position: absolute;
        left: 120px;
        top: 14px;
        z-index: 5;
        height: 24px;
        line-height: 24px;
        p {
          display: inline-block;
          margin-right: 15px;
          font-size: 13px;
        }
        p:last-child span {
          border-right: 0;
        }
        span {
          color: #1890FF;
          margin-left: 3px;
          padding-right: 15px;
          //border-right: 1px solid rgba(0, 0, 0, 0.65);
        }
        .slaveTabs {
          margin: 0!important;
        }
        .slaveTabs > div:first-child {
          margin-bottom: 20px!important;
        }
        .tabsNative span {
          margin-left: 5px;
        }
      }
      .extraWrap {
        width: 100%;
        padding: 12px 24px 12px 0;
        :global{
          //.ant-card-head-title{
          //  padding-left: 0;
          //}
        }
      }
      .indexTabs {
        width: 100%;
        display: flex;
        .navType {
          width: 230px;
          height: 100%;
          .tableTreeTitle {
            position: relative;
            width: 100%;
            height: 37px;
            padding: 8px 8px;
            font-weight: 600;
            white-space: nowrap;
            background-color: #e6e6e6;
            border: 1px solid #d9d9d9;
            border-right: 0;
            &:after {
              position: absolute;
              top: 50%;
              right: 0;
              width: 1px;
              height: 1.6em;
              background-color: rgba(0, 0, 0, 0.06);
              -webkit-transform: translateY(-50%);
              transform: translateY(-50%);
              -webkit-transition: background-color 0.3s;
              transition: background-color 0.3s;
              content: '';
            }
          }
          .tableTree {
            width: 100%;
            height: 100%;
            border: 1px solid #d9d9d9;
            border-top: 0;
            height: calc(100vh - 235px);
            overflow: auto;
            // border-right: 0;
            &::-webkit-scrollbar {
              width: 8px;
              height: 8px;
            }
            &::-webkit-scrollbar-corner {
              background: #cccccc;
            }
            &::-webkit-scrollbar-thumb {
              background: #cccccc;
            }
            &::-webkit-scrollbar-track {
              background: #f5f5f5;
            }

            :global {
              .anticon-folder, .anticon-folder-open {
                color: rgb(255, 176, 44);
              }
              .ant-tree-switcher_open {
                .anticon-folder {
                  display: none;
                }
              }
              .ant-tree-switcher_close {
                .anticon-folder-open {
                  display: none;
                }
              }
            }
          }
        }
        .indexPageTable {
          width: calc(100vw - 506px);
          :global {
            .ant-table-body[style*='max-height: calc(100vh - 235px)'] {
              height: calc(100vh - 235px);
            }
          }
        }
      }

      /* 定义keyframe动画,命名为blink */
      @keyframes blink{
        0%{opacity: 1;}

        100%{opacity: 0;}
      }
      /* 添加兼容性前缀 */
      @-webkit-keyframes blink {
        0% { opacity: 1; }
        100% { opacity: 0; }
      }
      @-moz-keyframes blink {
        0% { opacity: 1; }
        100% { opacity: 0; }
      }
      @-ms-keyframes blink {
        0% {opacity: 1; }
        100% { opacity: 0;}
      }
      @-o-keyframes blink {
        0% { opacity: 1; }
        100% { opacity: 0; }
      }
      /* 定义blink类*/
      .blink{
        color: red;
        animation: blink 1s linear infinite;
        /* 其它浏览器兼容性前缀 */
        -webkit-animation: blink 1s linear infinite;
        -moz-animation: blink 1s linear infinite;
        -ms-animation: blink 1s linear infinite;
        -o-animation: blink 1s linear infinite;
      }

    }
    :global{
      .ant-card{
        height: 100%;
      }
      #kpiTable{
        tbody tr:not(.selected-record-row):not(.ant-table-expanded-row-level-1):hover {
          background: none!important;
        }
        tbody tr:not(.selected-record-row):not(.ant-table-expanded-row-level-1):hover td {
          background: none!important;
        }

        tbody tr.evenRow:not(.selected-record-row):not(.ant-table-expanded-row-level-1):hover {
          background: #f5f5f5!important;
        }
        tbody tr.evenRow:not(.selected-record-row):not(.ant-table-expanded-row-level-1):hover td {
          background: #f5f5f5!important;
        }

        .ant-table-cell{
          th{
            word-break: break-all;
            white-space: nowrap;
          }
        }
        td{
          padding: 4px;
          font-size: 13px;
          border-left: 1px solid #d9d9d9;
          max-width: 200px;
        }
      }
    }
    #slaveTabs{
      .ant-tabs-nav-animated {
        margin-top: 0!important;
      }
    }
  }
  .indexFooter {
    text-align: center;
    padding: 10px 50px!important;
  }
}


:global{
  #commonOpt{
    .ant-card-body {
      padding: 5px 4px 0 24px!important;
      max-height: ~'calc(100% - 42px)';
    }
    .ant-menu-item-selected:after {
      border: 0!important;
    }
    .ant-menu-inline .ant-menu-item:last-child {
      margin: 0!important;
    }
  }

  /* 主页没有图表区域 *   */
  .commonChar {
    padding-bottom: 0px!important;
  }
  /* 奇行 *   */
  .oddRow {
    background-color: #ffffff!important;
  }
  /* 偶行 *   */
  .evenRow{
    background-color: #f5f5f5;
  }
}

.commonOpt{
  span{
    font-size: 13px;
  }
  :global{
    .ant-menu-inline .ant-menu-selected::after, .ant-menu-inline .ant-menu-item-selected::after{
      display: none;
    }
  }
  .comParameter {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
  }
  .comParameterTitle {
    width: calc(100% - 15px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .comParameterClose{
    float: right;
    // margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: 0.3s ease;
  }
  & > div > div {
    margin-left: 10px;
  }
  ul {
    border-right: 0!important;
  }
  li {
    position: relative;
    padding: 0!important;
    span{
      transition: 0.3s ease;
    }
    &:hover{
      .comParameterClose{
        opacity: 1;
        visibility: visible;
        transform: translateX(0px);
      }
    }
  }
}