4
4
left : 0 ;
5
5
right : 0 ;
6
6
bottom : 0 ;
7
- background-color : rgba (0 , 0 , 0 , 0.5 );
7
+ background-color : rgba (0 , 0 , 0 , 0.6 );
8
8
display : flex ;
9
9
align-items : center ;
10
10
justify-content : center ;
11
- z-index : 1000 ;
11
+ z-index : 9999 ;
12
12
padding : 1rem ;
13
13
animation : fadeIn 0.2s ease-out ;
14
14
}
15
15
16
16
.dialog {
17
- background : white ;
18
- border-radius : 8px ;
19
- box-shadow : 0 20px 25px -5px rgba (0 , 0 , 0 , 0.1 ), 0 10px 10px -5px rgba (0 , 0 , 0 , 0.04 );
17
+ background : var (--card-bg );
18
+ color : var (--card-text );
19
+ border : 2px solid var (--card-border );
20
+ box-shadow : 4px 4px 0px var (--card-shadow );
21
+ border-radius : 4px ;
20
22
max-width : 90vw ;
21
23
max-height : 90vh ;
22
24
overflow : hidden ;
31
33
}
32
34
33
35
.medium {
34
- width : 600 px ;
36
+ width : 500 px ;
35
37
}
36
38
37
39
.large {
38
- width : 800 px ;
40
+ width : 700 px ;
39
41
}
40
42
41
43
.xlarge {
42
- width : 1000 px ;
44
+ width : 900 px ;
43
45
}
44
46
45
47
.header {
46
48
display : flex ;
47
49
align-items : center ;
48
50
justify-content : space-between ;
49
- padding : 1.5 rem 1.5 rem 0 1.5 rem ;
50
- border-bottom : 1px solid #e5e7eb ;
51
+ padding : 1.25 rem 1.25 rem 0 1.25 rem ;
52
+ border-bottom : 1px solid var ( --card-border ) ;
51
53
margin-bottom : 1rem ;
52
54
}
53
55
54
56
.title {
55
57
margin : 0 ;
56
- font-size : 1.25 rem ;
58
+ font-size : 1.125 rem ;
57
59
font-weight : 600 ;
58
- color : #111827 ;
60
+ color : var ( --card-text ) ;
59
61
flex : 1 ;
60
62
}
61
63
65
67
cursor : pointer ;
66
68
padding : 0.5rem ;
67
69
border-radius : 4px ;
68
- color : #6b7280 ;
70
+ color : var ( --text-secondary ) ;
69
71
transition : all 0.2s ease ;
70
72
display : flex ;
71
73
align-items : center ;
72
74
justify-content : center ;
73
75
margin-left : 0.5rem ;
74
76
75
77
& :hover {
76
- background-color : #f3f4f6 ;
77
- color : #374151 ;
78
+ background-color : var ( --background-secondary ) ;
79
+ color : var ( --text-main ) ;
78
80
}
79
81
80
82
& :focus {
81
- outline : 2px solid #3b82f6 ;
83
+ outline : 2px solid var ( --accent-link ) ;
82
84
outline-offset : 2px ;
83
85
}
84
86
}
85
87
86
88
.content {
87
- padding : 0 1.5 rem 1.5 rem 1.5 rem ;
89
+ padding : 0 1.25 rem 1.25 rem 1.25 rem ;
88
90
overflow-y : auto ;
89
91
flex : 1 ;
90
92
}
102
104
@keyframes slideIn {
103
105
from {
104
106
opacity : 0 ;
105
- transform : scale (0.95 ) translateY (-10 px );
107
+ transform : scale (0.95 ) translateY (-20 px );
106
108
}
107
109
to {
108
110
opacity : 1 ;
120
122
width : 100% ;
121
123
max-width : 100% ;
122
124
max-height : 95vh ;
125
+ margin : 0.5rem ;
123
126
}
124
127
125
128
.small ,
138
141
}
139
142
140
143
.title {
141
- font-size : 1.125 rem ;
144
+ font-size : 1 rem ;
142
145
}
143
146
}
144
147
145
- // Dark mode support (if your app supports it)
146
- @media (prefers-color-scheme : dark ) {
147
- .dialog {
148
- background : #1f2937 ;
149
- color : #f9fafb ;
150
- }
151
-
152
- .header {
153
- border-bottom-color : #374151 ;
154
- }
155
-
156
- .title {
157
- color : #f9fafb ;
158
- }
159
-
160
- .closeButton {
161
- color : #9ca3af ;
162
-
163
- & :hover {
164
- background-color : #374151 ;
165
- color : #d1d5db ;
166
- }
167
- }
168
- }
148
+
0 commit comments