aboutsummaryrefslogtreecommitdiff
path: root/src/app/style/widget/weui-media-box/weui-media-box.less
blob: 95d64bcaf6d64bd7e0c1a0b2199f29789acd5e67 (plain)
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* Tencent is pleased to support the open source community by making WeUI 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.
*/

@import "../../base/fn";

.weui-media-box {
    padding: 16px;
    position: relative;
    &:before {
        .setTopLine(@weuiLineColorLight);

        left: 16px;
    }
    &:first-child {
        &:before {
            display: none;
        }
    }

    a& {
        color: #000;
        .setTapColor();
        &:active {
            background-color: @weuiBgColorActive;
        }
    }
}
.weui-media-box__title {
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    color: @weuiTextColorTitle;
    .ellipsis();
    .hyphens;
}
.weui-media-box__desc {
    color: @weuiTextColorTips;
    font-size: 14px;
    line-height: 1.4;
    padding-top: 4px;
    .ellipsisLn(2);
    .hyphens;
}
.weui-media-box__info {
    margin-top: 16px;
    padding-bottom: 4px;
    font-size: 13px;
    color: @weuiTextColorTips;
    line-height: 1em;
    list-style: none;
    overflow: hidden;
}
.weui-media-box__info__meta {
    float: left;
    padding-right: 1em;
}
.weui-media-box__info__meta_extra {
    padding-left: 1em;
    border-left: 1px solid @weuiTextColorTips;
}
.weui-media-box_appmsg {
    display: flex;
    align-items: center;
    .weui-media-box__hd {
        margin-right: 16px;
        width: 60px;
        height: 60px;
        line-height: 60px;
        text-align: center;
    }
    .weui-media-box__thumb {
        width: 100%;
        max-height: 100%;
        vertical-align: top;
    }
    .weui-media-box__bd {
        flex: 1;
        min-width: 0;
    }
}
.weui-media-box_small-appmsg {
    padding: 0;
    .weui-cells {
        margin-top: 0;
        &:before {
            display: none;
        }
    }
}