common.scss 3.38 KB
$windowWidth :1220px;
$navHeight:42px;
img {
  width: 100%;
  height: 100%;
  vertical-align: top;
}

a {
  text-decoration: none;
}

::-webkit-scrollbar-track-piece {
  background-color: #fff
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px
}

::-webkit-scrollbar-thumb {
  background-color: #c2c2c2;
  background-clip: padding-box;
  min-height: 28px
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  // max-width: $windowWidth;
  margin: 0 auto;
}

.header {
  width: 100%;
  background-color: #F6F6F8;
  ;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
  color: #fff;
  .wrapper {
    height: $navHeight;
    display: flex;
    justify-content: space-between;
    .logo {
      display: flex;
      align-items: center;
      margin-left: 85px;
      img {
        width: 94px;
        height: 22px;
      }
    }
    .control {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      font-size: 12px;
      margin-right: 85px;
      a {
        color: #fff;
      }
      .tabs {
        display: flex;
        align-items: center;
        .tab {
          background: #008BF4;
        }
      }
      .item {
        width: 72px;
        height: 28px;
        box-sizing: border-box;
        border: 1px solid #008BF4;
        border-radius: 14px;
      }
      &-btn {
        margin-left: 24px;
        a {
          color: #008BF4;
        }
      }
    }
  }
}

.page {
  max-width: 980px;
  padding: 0 0 100px 40px;
  .title {
    padding: 39px 0 20px 0;
    border-bottom: 1px solid #999999;
    font-size: 22px;
    color: #008BF4;
    letter-spacing: -0.53px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 99;
    background: #fff;
  }
  .page-main {
    padding-top: 30px;
    .sub-title {
      font-size: 16px;
      color: #333333;
      margin: 10px 0;
    }
    .text {
      font-size: 14px;
      color: #999999;
    }
    pre {
      padding: 30px 0;
      background: #F7F7F7;
      border-left: 5px solid #D6D6D6;
      font-size: 14px;
      color: #999999;
      white-space: pre-wrap;
      white-space: -moz-pre-wrap;
      white-space: -pre-wrap;
      white-space: -o-pre-wrap;
      word-wrap: break-word;
      div {
        padding-left: 30px;
      }
    }
    .table {
      width: 100%;
      display: grid;
      box-sizing: border-box;
      border: 1px solid #979797;
      grid-template-rows: 40px 1fr;
      .thead,
      .tr {
        border-bottom: 1px solid #979797;
      }
      .tbody {
        display: grid;
        .tr:last-of-type {
          border-bottom: none;
        }
        .td:last-of-type {
          padding: 10px 20px;
        }
      }
      .thead,
      .tr {
        display: grid;
        height: 100%;
      }
      .td {
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 1px solid #979797;
      }
      .tr,
      .thead {
        .td:last-of-type {
          border-right: none;
          justify-content: left;
          padding-left: 20px;
        }
      }
    }
    @for $i from 1 to 20 {
      .row-#{$i} {
        grid-template-rows: repeat(#{$i}, minmax(40px, 1fr));
      }
    }
  }
}

.thead-4,
.thead-4~.tbody .tr {
  grid-template-columns: 100px 100px 100px 1fr;
}

.thead-3,
.thead-3~.tbody .tr {
  grid-template-columns: 100px 200px 1fr;
}