WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2023-07-31 92d034e0e124928179f072224e9c2c1ad87fc1b2
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
/**
 * image picker
 * @author Tevin
 */
 
@import "../../common/sassMixin";
 
.c-image-picker {
    .at-input {
        padding: 0;
    }
    .at-input__container {
        .weui-input {
            display: none;
        }
        .at-image-picker {
            padding-bottom: 18px;
        }
        .at-image-picker__item:not(.at-image-picker__choose-btn) {
            border: 1PX #f2f2f2 solid;
 
        }
        .at-image-picker__flex-box {
            padding: 18px 18px 0 0;
        }
        .at-image-picker__preview-img {
            position: relative;
            background-color: #f2f2f2;
            img {
                display: block;
                @include position(absolute, 50% 50% n n);
                transform: translate(-50%, -50%);
            }
        }
        .at-image-picker__choose-btn {
            .add-bar {
                display: none;
                &:last-child {
                    display: inline-block;
                }
                width: 75px;
                height: 75px;
                font-family: iconfont;
                font-style: normal;
                font-weight: 400;
                font-variant: normal;
                text-transform: none;
                text-rendering: auto;
                line-height: 1;
                font-size: 75px;
                color: #cfe0ed;
                -webkit-font-smoothing: antialiased;
                vertical-align: middle;
                background: none;
                &::before {
                    content: "\e90f";
                }
            }
        }
    }
    .at-input__icon {
        display: none;
    }
    .c-image-picker-view {
        .at-curtain__container {
            width: 95%;
            height: 100%;
        }
        .at-curtain__body {
            height: 75%;
        }
        .img {
            width: 100%;
            height: 100%;
            text-align: center;
            @include flexbox(flex, center center);
        }
    }
}