index.less 3.18 KB
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

p {
  margin: 0;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

#root {
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow: hidden;
}

.custom-tooltip {
  opacity: 1 !important;
  .rc-tooltip-arrow {
    border-top-color: #fff !important;
    bottom: 4px !important;
  }
  .rc-tooltip-content {
    .rc-tooltip-inner {
      background-color: #fff;
      min-height: 0;
      padding: 4px 6px;
      line-height: 16px;
      color: #666;
    }
  }
}
//
///* Webkit 浏览器(Chrome, Safari, Edge) */
//::-webkit-scrollbar {
//  width: 5px; /* 或者 height: 12px; 对于水平滚动条 */
//}
//
//::-webkit-scrollbar-thumb {
//  background-color: #fafafa; /* 滚动条的颜色 */
//  border-radius: 6px; /* 滚动条的圆角 */
//}
//
//
//::-webkit-scrollbar-track {
//  background-color: #fafafa; /* 滚动条轨道的颜色 */
//  border-radius: 6px; /* 轨道的圆角 */
//}


// 一行省略
.omit1 {
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  overflow-wrap:break-word;
  word-break: break-all;
}

// 两行省略
.omit2 {
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap:break-word;
  word-break: break-all;
}

// 三行省略
.omit3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-wrap:break-word;
  word-break: break-all;
}
//四行省略
.omit4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow-wrap:break-word;
  word-break: break-all;
}

//四行省略
.omit5 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow-wrap:break-word;
  word-break: break-all;
}

// 六行省略
.omit6 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow-wrap:break-word;
  word-break: break-all;
}