-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathstyle.scss
More file actions
159 lines (135 loc) · 3.37 KB
/
style.scss
File metadata and controls
159 lines (135 loc) · 3.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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
.el-bubble {
display: flex;
gap: var(--el-bubble-avatar-placeholder-gap);
}
.el-bubble-avatar-size {
:deep(.el-avatar) {
width: var(--el-bubble-avatar-placeholder-width);
height: var(--el-bubble-avatar-placeholder-height);
}
}
.el-bubble-avatar-placeholder {
width: var(--el-bubble-avatar-placeholder-width);
height: var(--el-bubble-avatar-placeholder-height);
}
.el-bubble-start {
.el-bubble-content-wrapper {
.el-bubble-content-corner {
border-start-start-radius: calc(var(--el-border-radius-base) - 2px);
}
}
}
.el-bubble-end {
justify-content: end;
flex-direction: row-reverse;
.el-bubble-content-wrapper {
align-items: flex-end;
.el-bubble-content-corner {
border-start-end-radius: calc(var(--el-border-radius-base) - 2px);
}
}
}
.el-bubble-no-style {
.el-bubble-content-wrapper {
.el-bubble-content {
background-color: transparent;
padding: 0;
}
}
}
.el-bubble-content-wrapper {
flex: auto;
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 0;
max-width: 100%;
.el-bubble-header,
.el-bubble-content,
.el-bubble-footer {
font-size: var(--el-font-size-base);
color: var(--el-text-color-primary);
line-height: var(--el-font-line-height-primary);
}
.el-bubble-content {
background-color: var(--el-fill-color);
padding: var(--el-padding-sm, 12px) calc(var(--el-padding-sm, 12px) + 4px);
border-radius: calc(var(--el-border-radius-base) + 4px);
position: relative;
box-sizing: border-box;
min-width: 0;
max-width: var(--bubble-content-max-width);
color: var(--el-text-color-primary);
font-size: var(--el-font-size-base);
line-height: var(--el-font-line-height-primary);
min-height: calc(
var(--el-padding-sm, 12px) * 2 + var(--el-font-line-height-primary) *
var(--el-font-size-base)
);
word-break: break-word;
// 打字器没有内容时候展示高度
&.no-content,
.no-content {
// height: 16px;
height: 0;
padding: 0;
}
}
// 气泡圆角
.el-bubble-content-round {
border-radius: var(--el-border-radius-round);
}
// 气泡样式
.el-bubble-content-filled {
background-color: var(--el-fill-color);
}
.el-bubble-content-borderless {
background-color: var(--el-fill-color);
border: var(--el-border-width) solid var(--el-border-color);
}
.el-bubble-content-outlined {
background: none;
border: var(--el-border-width) solid var(--el-border-color);
}
.el-bubble-content-shadow {
background: none;
// box-shadow: var(--el-box-shadow-tertiary);
box-shadow: var(--el-box-shadow);
}
.el-bubble-content-loading {
width: fit-content;
.el-bubble-loading-wrap {
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}
.dot {
will-change: transform;
width: 5px;
height: 5px;
background-color: var(--el-color-primary);
border-radius: 50%;
animation: wave 1s infinite ease-in-out;
}
.dot-2 {
animation-delay: 0.2s;
}
.dot-3 {
animation-delay: 0.4s;
}
/* 波浪动画 */
@keyframes wave {
0%,
100% {
transform: translateY(-2px);
}
50% {
transform: translateY(2px);
}
}
}
.el-bubble-footer {
margin-top: var(--el-padding-sm, 12px);
}
}