app.component.scss 3.4 KB
Newer Older
X
init  
xjh22222228 已提交
1 2 3
$bg-color: #fbfbfb;

.app-page {
李少辉-开发者's avatar
李少辉-开发者 已提交
4
  padding: 5px 0;
X
xjh22222228 已提交
5
  min-height: 100vh;
X
init  
xjh22222228 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  background: #f6f6f6;

  .header {
    z-index: 9999;;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: $bg-color;
    box-shadow: 0 0 3px #ccc;

    .header-top {
      position: relative;
      height: 45px;
      border-bottom: 1px solid #eee;
      background: $bg-color;

      .logo {
        display: inline-block;
X
xjh22222228 已提交
26 27 28 29
        width: 35px;
        height: 35px;
        margin-top: 4px;
        pointer-events: none;
X
init  
xjh22222228 已提交
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
      }
    }

    .open {
      position: absolute;
      top: 9px;
      left: 15px;
      cursor: pointer;

      i {
        display: block;
        margin-top: 6px;
        height: 2px;
        width: 25px;
        background: #999;
        transform-origin: right center;
        transition: .1s linear;
      }

      &.active {

        i:nth-child(1) {
          transform: rotate(-45deg);
        }

        i:nth-child(2) {
          opacity: 0;
        }

        i:nth-child(3) {
          transform: translateY(2px) rotate(45deg);
        }
      }
    }

    .nav-open {
      display: none;
      box-shadow: 1px 1px 5px #ccc;
      overflow: hidden;
      background: $bg-color;
      transition: .1s linear;
    }

    .nav-title {
      display: inline-block;
      width: 50%;
      font-size: 16px;
      padding: 8px 0;

      &:active,
      &.active {
        background: rgba(0, 0, 0, .05);
      }
    }
  }

  .wrapper {
    margin: 15px 10px 30px 10px;

    .children-nav {
      background: $bg-color;
      margin: 15px 0;
      padding: 10px 10px 5px;
      white-space: nowrap;
      overflow: auto;
      box-shadow: 0 0 3px #ccc;

      a {
X
xjh22222228 已提交
98
        position: relative;
X
init  
xjh22222228 已提交
99 100 101 102 103
        display: inline-block;
        font-size: 14px;
        padding: 3px 5px;
        margin: 0 3px 5px 0;
        transition: background .1s linear;
X
xjh22222228 已提交
104
        color: #333;
X
init  
xjh22222228 已提交
105 106
      }

X
xjh22222228 已提交
107 108 109 110 111 112 113 114 115
      .active::after {
        content: "";
        position: absolute;
        bottom: 5px;
        left: 50%;
        width: 50%;
        transform: translateX(-50%);
        height: 3px;
        border-radius: 2px;
李少辉-开发者's avatar
李少辉-开发者 已提交
116
        // background: #20a0ff;
X
init  
xjh22222228 已提交
117 118 119 120 121 122 123 124 125 126 127
      }
    }

    li {
      margin-bottom: 10px;
      background: $bg-color;
      box-shadow: 0 0 5px #ccc;
    }

    .name {
      display: inline-block;
X
xjh22222228 已提交
128
      font-size: 14px;
X
init  
xjh22222228 已提交
129 130 131 132 133 134 135 136 137 138 139 140 141 142
      margin-left: 5px;
      width: calc(100% - 50px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
    }

    .desc {
      padding: 10px;
      border-top: 1px solid #eee;
      margin-top: 8px;
      word-break: break-all;
      word-wrap: break-word;
X
xjh22222228 已提交
143
      white-space: pre-wrap;
X
init  
xjh22222228 已提交
144 145 146 147 148 149 150 151 152 153 154
      font-size: 12px;
    }

    .block-title {
      padding: 10px 0 10px 15px;
      border-bottom: 1px solid #eee;
      color: #3F51B5;
    }

    .top {
      padding: 10px;
X
xjh22222228 已提交
155 156
      display: flex;
      align-items: center;
X
init  
xjh22222228 已提交
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
    }
  }

  .row {
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;

    a {
      color: #333;
    }

    .item-list {
      z-index: 111;
      position: relative;
      width: calc(50% - 18px);
      margin: 12px;
      border: 1px solid #eee;
      overflow: hidden;

      &:nth-child(odd) {
        margin-right: 6px;
      }

      &:nth-child(even) {
        margin-left: 6px;
      }

X
xjh22222228 已提交
185
      &:hover {
X
init  
xjh22222228 已提交
186

X
xjh22222228 已提交
187 188
        ::ng-deep .mark {
          bottom: 0 !important;
X
init  
xjh22222228 已提交
189 190 191 192 193
        }
      }
    }
  }
}