-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgeneric-snackbar.css
More file actions
74 lines (64 loc) · 2.28 KB
/
Copy pathgeneric-snackbar.css
File metadata and controls
74 lines (64 loc) · 2.28 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
/* Basic Styling for GenericSnackbar */
.generic-snackbar {
background-color: #323232; /* Standard snackbar background color */
color: #ffffff; /* Standard text color */
padding: 14px 24px;
border-radius: 4px;
box-shadow: 0 3px 5px -1px rgba(0,0,0,0.2),
0 6px 10px 0 rgba(0,0,0,0.14),
0 1px 18px 0 rgba(0,0,0,0.12);
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 8px; /* Spacing between stacked snackbars */
overflow: hidden; /* Ensures content doesn't spill during animation */
min-height: 48px; /* Standard height */
box-sizing: border-box;
}
.generic-snackbar .snackbar-text {
flex-grow: 1;
font-size: 0.875rem;
line-height: 1.25rem;
}
.generic-snackbar .snackbar-buttons {
display: flex;
align-items: center;
margin-left: 16px; /* Spacing between text and buttons */
}
.generic-snackbar .snackbar-buttons button {
/* Using Material Design Lite button styling as a base, assuming MDL is available */
/* text-transform: uppercase; */ /* Often used, but can be optional */
font-weight: 500;
/* color: #bb86fc; */ /* Example accent color for buttons, adjust as needed */
padding: 0 8px; /* Horizontal padding for buttons */
min-width: auto; /* Override MDL's min-width if necessary for compact buttons */
height: 36px; /* Standard height for buttons in snackbars */
line-height: 36px; /* Vertically center text */
}
.generic-snackbar .snackbar-buttons button:not(:last-child) {
margin-right: 8px; /* Spacing between buttons */
}
/* Kind-specific styling examples (add more as needed) */
.snackbar-kind-error {
background-color: #d32f2f; /* Red for errors */
color: #ffffff;
}
.snackbar-kind-error .snackbar-buttons button {
color: #ffffff; /* White buttons on red background */
}
.snackbar-kind-success {
background-color: #4caf50; /* Green for success */
color: #ffffff;
}
.snackbar-kind-success .snackbar-buttons button {
color: #ffffff; /* White buttons on green background */
}
/* RTL support adjustments */
.generic-snackbar[dir="rtl"] .snackbar-buttons {
margin-left: 0;
margin-right: 16px; /* Spacing between text and buttons for RTL */
}
.generic-snackbar[dir="rtl"] .snackbar-buttons button:not(:last-child) {
margin-right: 0;
margin-left: 8px; /* Spacing between buttons for RTL */
}