Skip to content

Commit b523056

Browse files
committed
💄 Improve the style of the snackbar
1 parent 445a738 commit b523056

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

app/src/assets/scss/component/_snackbar.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
.b3-snackbar {
2-
margin-bottom: 16px;
32
position: relative;
43
transition: transform 256ms cubic-bezier(.45, .05, .55, .95) 0ms;
54
text-align: right;
65
justify-self: end;
76
font-size: var(--b3-font-size);
87

8+
&:not(:first-child) {
9+
margin-top: 16px;
10+
}
11+
912
&--hide {
1013
transform: translate3d(calc(20vw + 48px), 0, 0);
1114
}
@@ -16,6 +19,7 @@
1619
top: 22px;
1720
// 不能设置死,否则右键菜单会被遮盖 z-index: 999999;
1821
max-height: calc(100vh - 32px);
22+
margin: 0 18px;
1923
display: flex;
2024
flex-direction: column;
2125
transform: translate3d(calc(20vw + 48px), 0, 0);
@@ -27,15 +31,11 @@
2731

2832
& > .b3-button {
2933
align-self: flex-end;
30-
margin-right: 18px;
34+
margin-top: 16px;
3135
}
3236

33-
& > .fn__flex-1 {
34-
padding: 0 18px 0 18px;
35-
36-
&::-webkit-scrollbar {
37-
display: none;
38-
}
37+
& > .fn__flex-1::-webkit-scrollbar {
38+
display: none;
3939
}
4040
}
4141

0 commit comments

Comments
 (0)