|
3 | 3 | position: absolute; |
4 | 4 | box-sizing: border-box; |
5 | 5 |
|
| 6 | + transition: |
| 7 | + transform 260ms cubic-bezier(0.16, 1, 0.3, 1), |
| 8 | + opacity 200ms cubic-bezier(0.16, 1, 0.3, 1) !important; |
| 9 | + transform-origin: top center; |
| 10 | + will-change: transform, opacity; |
| 11 | + |
| 12 | + &.is-mounted { |
| 13 | + opacity: 1; |
| 14 | + transform: translateY(0) scale(1); |
| 15 | + } |
| 16 | + &.is-closing { |
| 17 | + opacity: 0; |
| 18 | + transform: translateY(12px) scale(0.98); |
| 19 | + transition: |
| 20 | + transform 280ms cubic-bezier(0.22, 0.9, 0.28, 1), |
| 21 | + opacity 240ms ease !important; |
| 22 | + } |
| 23 | + |
6 | 24 | .event-popup__arrow { |
7 | 25 | position: absolute; |
8 | 26 | width: 0; |
|
12 | 30 | border-bottom: 10px solid var(--bg-color-alt, #fff); |
13 | 31 | top: -10px; |
14 | 32 | transform-origin: center; |
15 | | - filter: drop-shadow(0 6px 12px rgba(16, 24, 40, 0.08)); |
| 33 | + filter: drop-shadow(0 10px 18px rgba(16, 24, 40, 0.08)); |
| 34 | + transform: translateY(8px); |
| 35 | + opacity: 0; |
| 36 | + transition: |
| 37 | + transform 220ms cubic-bezier(0.16, 1, 0.3, 1), |
| 38 | + opacity 180ms ease !important; |
| 39 | + } |
| 40 | + |
| 41 | + &.is-closing .event-popup__arrow { |
| 42 | + transform: translateY(14px); |
| 43 | + opacity: 0; |
| 44 | + transition: |
| 45 | + transform 240ms cubic-bezier(0.22, 0.9, 0.28, 1), |
| 46 | + opacity 200ms ease !important; |
16 | 47 | } |
17 | 48 |
|
18 | 49 | &.event-popup--above { |
|
21 | 52 | bottom: -10px; |
22 | 53 | border-bottom: 0; |
23 | 54 | border-top: 10px solid var(--bg-color-alt, #fff); |
| 55 | + transform-origin: bottom center; |
24 | 56 | } |
25 | 57 | } |
26 | 58 |
|
|
34 | 66 | direction: rtl; |
35 | 67 | overflow: hidden; |
36 | 68 | border: 1px solid rgba(0, 0, 0, 0.06); |
| 69 | + transform-origin: inherit; |
| 70 | + transform: translateY(8px) scale(0.994); |
| 71 | + opacity: 0; |
37 | 72 | transition: |
38 | | - transform 160ms cubic-bezier(0.2, 0.9, 0.2, 1), |
39 | | - opacity 140ms ease; |
40 | | - transform-origin: top center; |
| 73 | + transform 220ms cubic-bezier(0.16, 1, 0.3, 1), |
| 74 | + opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 75 | + box-shadow 220ms ease !important; |
41 | 76 |
|
42 | 77 | &.is-open { |
43 | | - transform: translateY(0); |
| 78 | + transform: translateY(0) scale(1); |
44 | 79 | opacity: 1; |
| 80 | + box-shadow: 0 18px 48px rgba(16, 24, 40, 0.14); |
| 81 | + } |
| 82 | + &:not(.is-open) { |
| 83 | + transform: translateY(6px) scale(0.985); |
| 84 | + opacity: 0; |
| 85 | + transition: |
| 86 | + transform 280ms cubic-bezier(0.22, 0.9, 0.28, 1), |
| 87 | + opacity 240ms ease !important; |
45 | 88 | } |
46 | 89 | } |
47 | 90 |
|
|
52 | 95 | gap: 12px; |
53 | 96 | margin-bottom: 10px; |
54 | 97 | } |
55 | | - |
56 | 98 | .event-popup__subtitle { |
57 | 99 | font-size: 12px; |
58 | 100 | font-weight: 500; |
|
67 | 109 | } |
68 | 110 |
|
69 | 111 | .event-popup__header-left { |
| 112 | + min-width: 0; |
70 | 113 | display: flex; |
71 | 114 | align-items: center; |
72 | 115 | gap: 12px; |
73 | | - min-width: 0; |
74 | 116 | } |
75 | | - |
76 | 117 | .event-popup__color-dot { |
77 | 118 | width: 14px; |
78 | 119 | height: 14px; |
79 | 120 | border-radius: 50%; |
80 | 121 | box-shadow: 0 4px 8px rgba(16, 24, 40, 0.08); |
81 | 122 | flex: 0 0 14px; |
82 | 123 | } |
83 | | - |
84 | 124 | .event-popup__header-title { |
85 | 125 | font-weight: 700; |
86 | 126 | font-size: 15px; |
|
108 | 148 | justify-content: center; |
109 | 149 | width: 34px; |
110 | 150 | height: 34px; |
111 | | - &:hover { |
112 | | - background: rgba(0, 0, 0, 0.04); |
113 | | - color: rgba(0, 0, 0, 0.85); |
114 | | - transform: translateY(-1px); |
115 | | - } |
| 151 | + } |
| 152 | + .event-popup__close-btn:hover { |
| 153 | + background: rgba(0, 0, 0, 0.045); |
| 154 | + color: rgba(0, 0, 0, 0.85); |
| 155 | + transform: translateY(-2px) scale(1.02); |
| 156 | + } |
| 157 | + .event-popup__close-btn:focus { |
| 158 | + box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12); |
| 159 | + outline: none; |
116 | 160 | } |
117 | 161 |
|
118 | 162 | .event-popup__row { |
|
121 | 165 | margin-bottom: 10px; |
122 | 166 | align-items: center; |
123 | 167 | } |
124 | | - |
125 | 168 | .event-popup__label { |
126 | 169 | min-width: 84px; |
127 | 170 | color: rgba(0, 0, 0, 0.58); |
|
130 | 173 | letter-spacing: 0.2px; |
131 | 174 | flex: 0 0 auto; |
132 | 175 | } |
133 | | - |
134 | 176 | .event-popup__value { |
135 | 177 | flex: 1 1 auto; |
136 | 178 | word-break: break-word; |
|
148 | 190 | background 120ms ease, |
149 | 191 | transform 80ms ease; |
150 | 192 | } |
151 | | - |
152 | 193 | .event-popup__link--primary { |
153 | 194 | background: linear-gradient( |
154 | 195 | 90deg, |
|
158 | 199 | border: 1px solid rgba(47, 111, 237, 0.1); |
159 | 200 | color: var(--link-color, #2f6fed); |
160 | 201 | } |
161 | | - |
162 | 202 | .event-popup__link:hover { |
163 | 203 | background: rgba(47, 111, 237, 0.06); |
164 | 204 | transform: translateY(-1px); |
|
172 | 212 | align-items: center; |
173 | 213 | gap: 12px; |
174 | 214 | } |
175 | | - |
176 | 215 | .event-popup__meta { |
177 | 216 | display: flex; |
178 | 217 | gap: 12px; |
179 | 218 | align-items: center; |
180 | 219 | color: rgba(0, 0, 0, 0.65); |
181 | 220 | } |
182 | | - |
183 | 221 | .event-popup__label.small { |
184 | 222 | min-width: 60px; |
185 | 223 | font-weight: 600; |
|
189 | 227 | .event-popup__actions { |
190 | 228 | display: flex; |
191 | 229 | gap: 8px; |
192 | | - |
193 | | - .ant-btn { |
194 | | - padding: 8px 14px; |
195 | | - border-radius: 8px; |
196 | | - font-weight: 600; |
197 | | - box-shadow: none; |
198 | | - } |
| 230 | + } |
| 231 | + .event-popup__actions .ant-btn { |
| 232 | + padding: 8px 14px; |
| 233 | + border-radius: 8px; |
| 234 | + font-weight: 600; |
| 235 | + box-shadow: none; |
199 | 236 | } |
200 | 237 |
|
201 | 238 | .event-popup__creator { |
|
0 commit comments