张卓
2022-09-20 5aead44ba1be31db948dfd8362c2bfcbedbbce29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
.sf {
  display: block;
  // mode
  &-search + .ad-st {
    margin-top: @layout-gutter * 2;
  }
  .optional {
    color: rgba(0, 0, 0, 0.45);
  }
  // 固定 label
  &-fixed {
    display: flex;
    nz-form-control,
    .ant-form-item-control-wrapper {
      flex: 1;
    }
  }
  &-array-container {
    nz-card {
      margin: 0 16px 0 0;
      .remove {
        display: none;
        position: absolute;
        right: -16px;
        top: -16px;
        font-size: 20px;
        text-align: center;
        height: 32px;
        line-height: 32px;
        width: 32px;
        background: rgba(0, 0, 0, 0.26);
        border-radius: 50%;
        cursor: pointer;
        i {
          color: #fff;
        }
      }
      &:hover {
        .remove {
          display: block;
        }
      }
    }
  }
  sf-array {
    .add {
      margin-right: 16px;
    }
  }
  .checkbox-grid-list {
    width: 100%;
    display: block;
    @media (min-width: 575px) {
      nz-col {
        margin-top: 8px;
      }
    }
    // https://github.com/NG-ZORRO/ng-zorro-antd/issues/1358
    .ant-checkbox-group {
      display: block;
    }
  }
  // upload
  .ant-upload-select-picture-card i {
    font-size: 32px;
    color: #999;
  }
  .ant-upload.ant-upload-drag {
    height: 180px;
  }
  // transfer
  .ant-transfer {
    &-list {
      background: #fff;
      &-header {
        label {
          position: unset;
        }
      }
    }
    .ant-btn + .ant-btn {
      margin-left: 0;
    }
  }
}