index.less 3.52 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 {
  background: #fff;
}

/* Webkit 浏览器(Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 5px; /* 或者 height: 12px; 对于水平滚动条 */
}

::-webkit-scrollbar-thumb {
  background-color: #1D295B; /* 滚动条的颜色 */
  border-radius: 6px; /* 滚动条的圆角 */
}


::-webkit-scrollbar-track {
  background-color: #314484; /* 滚动条轨道的颜色 */
  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;
}

.sxjx-content-main {
  background: #f7f7f7;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}


// 有头部有底部
.sxjx-layout-main {
  padding-top: calc(88px + constant(safe-area-inset-top));
  padding-top: calc(88px + env(safe-area-inset-top));
  padding-bottom: calc(120px + constant(safe-area-inset-bottom));
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

// 有头部没有底部
.sxjx-layout-main-unfoot {
  padding-top: calc(88px + constant(safe-area-inset-top));
  padding-top: calc(88px + env(safe-area-inset-top));
}

// 没有头部有底部
.sxjx-layout-main-unhead {
  padding-bottom: calc(120px + constant(safe-area-inset-bottom));
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}