-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModal.css
More file actions
166 lines (144 loc) · 3.41 KB
/
Copy pathModal.css
File metadata and controls
166 lines (144 loc) · 3.41 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/**
* Modal component styles
* Migrated from styled-components to plain CSS
*/
/* Modal wrapper - full screen fixed overlay */
.modal-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: var(--modal-z-index, 10000);
}
/* Card wrapper - z-index container */
.modal-card-wrapper {
z-index: 1;
}
/* Main modal card */
.modal-card {
display: flex;
flex-direction: column;
margin: auto;
overflow: hidden;
width: 40rem;
background-color: white;
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.05), 0 0 4rem rgba(0, 0, 0, 0.08);
/* bodyCopyRegularStyle - font-size: 1.6rem, line-height: 2.5rem, color from theme */
font-size: 1.6rem;
line-height: 2.5rem;
color: var(--text-color, #424242);
}
/* Link styling inside modal card - mirrors bodyCopyRegularStyle link behavior */
.modal-card a {
color: var(--link-color, #027eb5);
cursor: pointer;
text-decoration: underline;
}
.modal-card a:hover {
color: var(--link-hover-color, #0064a0);
}
/* Modal header */
.modal-header {
display: flex;
align-items: center;
margin-bottom: 1.5rem; /* modalPadding * 0.5 = 3.0 * 0.5 */
padding: 1.5rem 3rem; /* modalPadding * 0.5, modalPadding */
background: var(--header-bg, #f1f1f1);
border-bottom: solid 0.1rem var(--header-border, #fafafa);
justify-content: space-between;
}
/* Modal heading (h1 with h4 style) */
.modal-heading {
/* h4Style from Typography/Headings.legacy.ts */
font-size: 1.8rem;
line-height: 2.5rem;
letter-spacing: -0.02rem;
padding: 1rem 0 1rem 0;
margin: 0;
color: var(--text-color, #424242);
/* Additional heading styles */
display: flex;
align-items: center;
}
@media screen and (max-width: 75em) {
.modal-heading {
/* h4MobileStyle */
font-size: 1.6rem;
line-height: 2rem;
}
}
/* Modal body heading (h3) */
.modal-body-heading {
/* h3Style from Typography/Headings.legacy.ts */
font-size: 2.4rem;
line-height: 3rem;
letter-spacing: -0.02rem;
margin: 0;
color: var(--text-color, #424242);
/* Additional styles from BodyHeading */
font-weight: 400;
padding: 1.5rem 0; /* modalPadding * 0.5 */
}
@media screen and (max-width: 75em) {
.modal-body-heading {
/* h3MobileStyle */
font-size: 1.6rem;
line-height: 2rem;
}
}
/* Modal body */
.modal-body {
display: flex;
flex-direction: column;
padding: 0 3rem; /* modalPadding */
}
/* Special case: when Card.Header + Body, remove top margin */
.modal-card .modal-header + .modal-body {
margin-top: 0;
}
/* Modal mask - semi-transparent backdrop */
.modal-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
background-color: rgba(0, 0, 0, 0.3);
}
/* Modal footer */
.modal-footer {
display: flex;
justify-content: space-between;
padding: 3rem; /* modalPadding */
}
/* Close modal icon button */
.modal-close-icon {
/* Final legacy CloseModalIcon size: 2rem x 2rem */
height: 2rem;
width: 2rem;
padding: 0.4rem;
/* Base button styles */
cursor: pointer;
margin-right: 0;
padding-right: 0;
background: none;
border: none;
display: flex;
align-items: center;
justify-content: center;
/* toolbarIconColor.lighter */
color: var(--icon-color-lighter, #c5c5c5);
}
.modal-close-icon:hover {
/* toolbarIconColor.base */
color: var(--icon-color-base, #5e6062);
}
.modal-close-icon > svg {
height: 100%;
width: 100%;
}