-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Expand file tree
/
Copy pathAmrLowBalanceDialog.module.css
More file actions
127 lines (113 loc) · 2.69 KB
/
Copy pathAmrLowBalanceDialog.module.css
File metadata and controls
127 lines (113 loc) · 2.69 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
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
116
117
118
119
120
121
122
123
124
125
126
127
/* Soft low-balance reminder: same invitation-card language as the hard
* AmrBalanceDialog (centered, accent badge) but lighter — no benefits block,
* and the task path stays one click away. Shared Dialog chrome supplies the
* backdrop, elevation, and pop-in. */
.panel {
position: relative;
width: min(384px, calc(100vw - 32px));
align-items: center;
text-align: center;
padding: 32px 28px 18px;
gap: 0;
}
.closeButton {
position: absolute;
top: 10px;
right: 10px;
display: grid;
place-items: center;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: var(--radius-sm);
color: var(--text-muted);
background: transparent;
cursor: pointer;
transition: background 120ms ease, color 120ms ease;
}
.closeButton:hover {
color: var(--text);
background: var(--bg-subtle);
}
.closeButton:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.iconBadge {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border-radius: 50%;
color: var(--accent);
background: var(--accent-tint);
box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-tint) 45%, transparent);
margin-bottom: 18px;
}
.title {
margin: 0 0 8px;
font-size: 17px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text-strong);
}
.message {
margin: 0 0 20px;
font-size: 13.5px;
line-height: 1.6;
color: var(--text-muted);
text-wrap: balance;
}
/* Suppression-dialog footer: checkbox bottom-left, actions bottom-right with
* the primary outermost. Wraps gracefully on long-label locales — the action
* row keeps its right alignment on its own line. */
.footer {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px 12px;
width: 100%;
margin-top: 6px;
}
.footerActions {
display: flex;
gap: 8px;
margin-left: auto;
}
.footerActions .action {
border-radius: var(--radius-pill);
}
.cta {
transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cta:active {
transform: scale(0.98);
}
/* Scoped under .footer to outrank the legacy `.modal label` column layout
* (mention-home.css) that the shared Dialog chrome drags in. */
.footer .optOut {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 7px;
font-size: 12px;
color: var(--text-muted);
cursor: pointer;
user-select: none;
white-space: nowrap;
}
.footer .optOut input {
/* Undo the global text-input chrome (width:100%, padding, border) that
* primitives.css puts on every `input` — this is a native checkbox. */
appearance: auto;
width: 14px;
height: 14px;
flex: none;
padding: 0;
border: none;
background: none;
accent-color: var(--accent);
margin: 0;
}