/* You can add global styles to this file, and also import other style files */
@dark_color: #001529;
@dark_color_hover: lighten(@dark_color, 20);
@light_dark_color: #393d49;
@select_color: #10aeff;

@default_color: white;
.rh-default-color {
  background-color: @default_color;
}

.rh-dark-color {
  background-color: @dark_color;
}
.rh-full {
  padding: 0px;
  margin: 0px;
  height: 100%;
  width: 100%;
}

.rh-border {
  padding: 2px;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
}

.rh-full-width {
  width: 100%;
}

.rh-color-default {
  // margin: 2px 3px;
  color: darkcyan;
}

.rh-color-primary {
  // margin: 2px 3px;
  color: blue;
}

.rh-color-danger {
  // margin: 2px 3px;
  color: red;
}
.rh-color-hint {
  // margin: 2px 3px;
  color: orange;
}

.rh-color-success {
  // margin: 2px 3px;
  color: green;
}

.rh-default-theme {
  color: black;
  background-color: white;
}

.rh-dark-theme {
  color: whitesmoke;
  background-color: #001529;
}

.rh-margin-small {
  margin-left: 8px;
}

.rh-margin-default {
  margin-left: 16px;
}

.rh-margin-large {
  margin-left: 32px;
}

.rh-margin-top-small {
  margin-top: 8px;
}

.rh-margin-top-default {
  margin-top: 16px;
}

.rh-margin-top-large {
  margin-top: 32px;
}

.rh-margin-bottom-small {
  margin-bottom: 8px;
}

.rh-margin-bottom-default {
  margin-bottom: 16px;
}

.rh-margin-bottom-large {
  margin-bottom: 32px;
}

.rh-margin-right-small {
  margin-right: 8px;
}

.rh-margin-right-default {
  margin-right: 16px;
}

.rh-margin-right-large {
  margin-right: 32px;
}

.rh-margin-left-small {
  margin-left: 8px;
}

.rh-margin-left-default {
  margin-left: 16px;
}

.rh-margin-left-large {
  margin-left: 32px;
}

.rh-text-center {
  text-align: center;
}

.rh-tag-big {
  width: 100px;
  height: 48px;
  line-height: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}

// 清除浮动，需要在外层的container附加此样式
.rh-clearfix {
  display: block;
  zoom: 1;

  &:after {
    content: '   ';
    font-size: 0;
    height: 0;
    clear: both;
    visibility: hidden;
  }
}

// ****** tree*************

.rh-tree-node {
  cursor: pointer;
  line-height: 24px;
  margin-left: 4px;
  display: inline-block;
  user-select: none;

  // margin: 0 -800px;
  // padding: 0 800px;
  &.active {
    background: #e7f7ff;
    color: #fff;
  }
}

//***************table样式**********************//

// 奇偶行变色
nz-table.rh-table-striped tbody tr:nth-child(odd) {
  td {
    background: rgba(210, 226, 234);
  }
  background: rgba(210, 226, 234);
}

.table-text-center {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

// 设置长单词拆分换行
.text-wrap {
  white-space: normal;
  word-break: break-all;
  word-wrap: break-word;
}

// 全局样式？

// th {
//   white-space: normal !important;
//   word-break: break-all !important;
//   word-wrap: break-word !important;
// }

// td {
//   white-space: normal !important;
//   word-break: break-all !important;
//   word-wrap: break-word !important;
// }

/* 表格内容居中，超出部分显示为省略号 */
nz-table.rh-table-ellipsis {
  table-layout: fixed;

  tr {
    th {
      .table-text-center();
    }

    td {
      .table-text-center();
    }
  }
}

nz-table.rh-table-default {
  tr {
    th {
      white-space: normal !important;
      word-break: break-all !important;
      word-wrap: break-word !important;
    }

    td {
      white-space: normal !important;
      word-break: break-all !important;
      word-wrap: break-word !important;
    }
  }
}

//************结束table样式****************

.rh-selector-width-deafult {
  min-width: 120px;
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Roboto, 'Helvetica Neue', sans-serif;
}
