uni.scss
2.2 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
/**
* 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
* uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
*/
$fixedWidth: 2346;
$detailVW: 100vmin * (1173 / 768);
@function toRpx($val) {
@return $detailVW * ($val / $fixedWidth);
}
@function toMinusRpx($val) {
@return $detailVW * ($val / $fixedWidth) * -1;
}
$margin: 0 calc((100vmax - #{$detailVW}) / 2);
@import "./assets/css/sprite.scss";
@font-face {
font-family: "number-700";
src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf");
}
@font-face {
font-family: "number-400";
src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-400-Regular.ttf");
}
@keyframes show-view {
0% {
opacity: 0;
transform: translateX(100%);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
@keyframes show-view-left {
0% {
opacity: 0;
transform: translateX(-100%);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
@keyframes show-view-right {
0% {
opacity: 0;
transform: translateX(100%);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
.flex {
display: flex;
align-items: center;
}
.flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.flex-between {
display: flex;
align-items: center;
justify-content: space-between;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-two-line {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
}
.byd-layout {
background-image: url("@/assets/images/media/byd-media-bg.webp");
}
@media screen and (min-width: 500px) {
.fixforpc-width {
min-width: auto !important;
width: fit-content !important;
padding: toRpx(20) toRpx(46) !important;
}
}
.select-box {
.select-item {
display: flex;
justify-content: center;
align-items: center;
}
}
@keyframes show-view-opacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}