forked from folio-org/stripes-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCallout.css
115 lines (98 loc) · 1.76 KB
/
Callout.css
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
@import '../variables.css';
.callout {
position: fixed;
top: 0;
left: 0;
display: flex;
flex-flow: column-reverse wrap;
width: 100%;
height: 100%;
pointer-events: none;
padding: 1.5rem 1rem;
}
.calloutContainer {
display: block;
overflow: auto;
}
.calloutRow {
width: 100%;
display: block;
overflow: hidden;
max-width: 100%;
}
.calloutBase {
width: 45vw;
position: relative;
pointer-events: all;
background-color: #fff;
padding: var(--gutter-static);
opacity: 0;
transition: left 0.4s, right 0.4s, opacity 0.4s;
border: 1px solid transparent;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-radius: var(--radius);
margin-bottom: 4px;
& .message {
flex-grow: 2;
padding: 0 6px;
font-size: var(--font-size-medium);
}
&.error {
border-color: var(--error);
background-color: color(var(--error, #600) tint(75%));
}
&.success {
border-color: var(--success);
background-color: color(var(--success, #060) tint(75%));
}
&.warning {
border-color: var(--warn);
background-color: color(var(--warn, #940) tint(75%));
}
&.info {
border-color: #4c8eca;
}
&.slide-entering {
left: 100%;
opacity: 0;
}
&.slide-entered {
left: 50%;
opacity: 1;
}
&.slide-exiting {
left: 100%;
opacity: 0;
}
&.slide-exited {
left: 50%;
opacity: 0;
}
}
[dir="rtl"] {
& .calloutBase {
&.slide-entering {
left: 0;
right: 100%;
opacity: 0;
}
&.slide-entered {
left: 0;
right: 50%;
opacity: 1;
}
&.slide-exiting {
left: 0;
right: 100%;
opacity: 0;
}
&.slide-exited {
left: 0;
right: 50%;
opacity: 0;
}
}
}