grass-prompt.scss
1.37 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
.yoho-grass-prompt {
position: fixed;
width: 100%;
z-index: 200;
.yoho-grass-prompt-wrap {
width: 100%;
padding: 30px;
background-color: rgba(0, 0, 0, 0.7);
position: absolute;
display: flex;
align-items: center;
.prompt-thumb {
width: 100px;
height: 100px;
}
.prompt-info {
flex-grow: 1;
margin-left: 20px;
> * {
margin-top: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&:first-child {
margin-top: 0;
}
}
.prompt-info-title {
font-size: 32px;
color: #fff;
}
.prompt-info-desc {
font-size: 24px;
color: #b0b0b0;
font-weight: 300;
}
}
.prompt-icon {
color: #979797;
font-size: 40px;
}
}
&.yoho-grass-prompt-top {
top: 0;
> * {
bottom: 0;
}
.yoho-grass-prompt-enter-active {
transform: translateY(100%);
}
.yoho-grass-prompt-leave-active {
transform: translateY(-100%);
}
}
&.yoho-grass-prompt-bottom {
bottom: 0;
.yoho-grass-prompt-enter-active {
transform: translateY(-100%);
}
.yoho-grass-prompt-leave-active {
transform: translateY(100%);
}
}
.yoho-grass-prompt-enter-active,
.yoho-grass-prompt-leave-active {
transition: all 200ms;
}
}