weui-uploader.wxss 2.9 KB
Newer Older
J
jf 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/**
* Tencent is pleased to support the open source community by making
* WeUI-WXSS available.
* 
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* All rights reserved.
* 
* Licensed under the MIT License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of
* the License at
* 
*       http://opensource.org/licenses/MIT
* 
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

B
initial  
bearyan 已提交
21 22 23 24 25
@import "../../base/fn.wxss";

.weui-uploader{}
.weui-uploader__hd{
    padding-bottom: @weuiCellGapV;
X
xushengni 已提交
26 27 28 29
    padding-bottom: 16px;
}
.weui-uploader__overview{
    display: flex;
B
initial  
bearyan 已提交
30 31 32 33 34
    align-items: center;
}
.weui-uploader__title{
    flex: 1;
}
X
xushengni 已提交
35 36 37 38 39 40
.weui-uploader__tips{
    color: @weuiTextColorTips;
    font-size:14px;
    line-height:1.4;
    padding-top:4px;
}
B
initial  
bearyan 已提交
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
.weui-uploader__info{
    color: @weuiTextColorTips;
}
.weui-uploader__bd{
    margin-bottom: @weuiCellGapH - (@weuiCellGapV + @weuiUploaderFileSpacing);
    margin-right: -@weuiUploaderFileSpacing;
    overflow: hidden;
}
.weui-uploader__file{
    float: left;
    margin-right: @weuiUploaderFileSpacing;
    margin-bottom: @weuiUploaderFileSpacing;
}
.weui-uploader__img{
    display: block;
    width: @weuiUploaderSize;
    height: @weuiUploaderSize;
}
.weui-uploader__file_status{
    position: relative;
    &:before{
        content: " ";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, .5);
    }
}
.weui-uploader__file-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
}
.weui-uploader__input-box{
    float:left;
    position: relative;
    margin-right: @weuiUploaderFileSpacing;
    margin-bottom: @weuiUploaderFileSpacing;
X
xushengni 已提交
83 84 85 86
    width: @weuiUploaderSize;
    height: @weuiUploaderSize;
    box-sizing:border-box;
    background-color:@weuiBgColorDefault;
B
initial  
bearyan 已提交
87 88 89 90 91 92 93 94 95 96
    &:before, &:after{
        content: " ";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: @weuiUploaderBorderColor;
    }
    &:before{
        width: @weuiUploaderBorderWidth + 1;
X
xushengni 已提交
97
        height: @weuiUploaderSize / 3;
B
initial  
bearyan 已提交
98 99
    }
    &:after{
X
xushengni 已提交
100
        width: @weuiUploaderSize / 3;
B
initial  
bearyan 已提交
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
        height: @weuiUploaderBorderWidth + 1;
    }
    &:active{
        border-color: @weuiUploaderActiveBorderColor;
        &:before, &:after{
            background-color: @weuiUploaderActiveBorderColor;
        }
    }
}
.weui-uploader__input{
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
X
xushengni 已提交
118
}