video.wxss
2.33 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* pages/video/video.wxss */
.videoContainer .header {
display: flex;
padding: 10rpx;
}
.videoContainer .header image{
width: 60rpx;
height: 60rpx;
}
.videoContainer .header .search {
border: 1rpx solid #eee;
/*flex-grow: 可拉伸 flex-shrink: 可压缩 flex-basis: 当前元素的宽度*/
/*flex默认值: flex-grow: 0, flex-shrink: 1, flex-basis: auto*/
/*flex:1 flex-grow: 1, flex-shrink: 1, flex-basis: 0%*/
/*flex:auto flex-grow: 1, flex-shrink: 1, flex-basis: auto*/
/*flex: 1会导致父元素宽度自动为100%*/
flex: 1;
margin: 0 20rpx;
font-size: 26rpx;
text-align: center;
line-height: 60rpx;
color: #d43c33;
}
/* 导航区域 */
.navScroll {
display: flex;
white-space: nowrap;
height: 60rpx;
}
.navScroll .navItem {
padding: 0 30rpx;
font-size: 28rpx;
height: 60rpx;
line-height: 60rpx;
}
.navScroll .navContent {
height: 60rpx;
box-sizing: border-box;
}
.navItem .active {
border-bottom: 1rpx solid #d43c33;
}
/* 视频列表 */
.videoScroll {
margin-top: 10rpx;
/* calc: 可以动态计算css的宽高, 运算符左右两侧必须加空格,否则计算会失效 */
/* 视口单位: vh vw 1vh = 1%的视口高度 1vw = 1%的视口宽度*/
height: calc(100vh - 152rpx);
/*height: calc(100vh - 100rpx); 用来测试页面上拉触底*/
}
.videoItem {
padding: 0 3%;
}
/*.videoItem video {*/
/*width: 100%;*/
/*height: 360rpx;*/
/*border-radius: 10rpx;*/
/*}*/
.videoItem .common {
width: 100%;
height: 360rpx;
border-radius: 10rpx;
}
.videoItem .content {
font-size: 26rpx;
height:80rpx;
line-height: 80rpx;
max-width: 500rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* footer */
.footer {
border-top: 1rpx solid #eee;
padding: 20rpx 0;
}
.footer .avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
vertical-align: middle;
}
.footer .nickName {
font-size: 26rpx;
vertical-align: middle;
margin-left: 20rpx;
}
.footer .comments_praised {
float: right;
}
.comments_praised .btn {
display: inline;
padding: 0;
background-color: transparent;
border-color: transparent;
}
.comments_praised .btn:after {
border: none;
}
.comments_praised .item {
margin-left: 50rpx;
position: relative;
}
.comments_praised .item .count {
position: absolute;
top: -20rpx;
font-size: 20rpx;
}