forked from andreasbm/weightless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnackbar.scss
56 lines (48 loc) · 890 Bytes
/
snackbar.scss
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
@import "../style/base";
@import "snackbar-vars";
:host {
display: none;
pointer-events: none;
outline: none;
}
:host([open]) {
display: block;
}
:host([fixed]) {
padding: $snackbar-fixed-padding;
z-index: $snackbar-z-index;
position: fixed;
left: 0;
bottom: 0;
top: 0;
right: 0;
}
:host([fixed][open]) {
display: flex;
align-items: flex-end;
}
#snackbar {
padding: $snackbar-padding;
color: $snackbar-color;
background: $snackbar-bg;
border-radius: $snackbar-border-radius;
box-shadow: $snackbar-elevation;
flex-wrap: wrap;
justify-content: flex-end;
text-align: left;
position: relative;
pointer-events: all;
}
#snackbar, #content, #actions {
display: flex;
align-items: center;
flex-wrap: wrap;
}
::slotted([slot="icon"]) {
margin: $snackbar-icon-margin;
color: $snackbar-icon-color;
}
#content {
padding: $snackbar-content-padding;
flex-grow: 1;
}