@@ -14,6 +14,8 @@ $gray-dark: #373A3C;
14
14
$light-gray : darken ($white , 10% );
15
15
$gray-darker : darken ($gray , 5% );
16
16
17
+ $modal-overlay-bg : rgba (0 , 0 , 0 , .5 );
18
+
17
19
/* @end Colors */
18
20
19
21
@@ -140,46 +142,44 @@ $modal-scale-min: .35;
140
142
// sass-lint:disable class-name-format force-element-nesting
141
143
142
144
.ReactModal__Overlay {
145
+ opacity : 0 ;
143
146
z-index : 9999 ;
144
-
147
+ background-color : $modal-overlay-bg ;
145
148
-webkit-perspective : 150 ;
146
149
perspective : 150 ;
147
- opacity : 0 ;
148
150
overflow-x : hidden ;
149
151
overflow-y : auto ;
150
- background-color : rgba (0 , 0 , 0 , 0.5 );
151
152
}
152
153
153
154
.ReactModal__Overlay--after-open {
154
- opacity : 1 ;
155
155
transition : opacity $modal-animation-duration ease-out ;
156
+ opacity : 1 ;
156
157
}
157
158
158
159
.ReactModal__Content {
160
+ transform : scale ($modal-scale-min ) rotateX (-30deg );
159
161
background-color : $brand-primary ;
160
-
161
162
-webkit-transform : scale ($modal-scale-min ) rotateX (-30deg );
162
- transform : scale ($modal-scale-min ) rotateX (-30deg );
163
163
}
164
164
165
165
.ReactModal__Content--after-open {
166
- -webkit-transform : scale (1 ) rotateX (0deg );
167
166
transform : scale (1 ) rotateX (0deg );
168
167
transition : all $modal-animation-duration ease-in ;
168
+ -webkit-transform : scale (1 ) rotateX (0deg );
169
169
}
170
170
171
171
.ReactModal__Overlay--before-close {
172
172
opacity : 0 ;
173
173
}
174
174
175
175
.ReactModal__Content--before-close {
176
- -webkit-transform : scale ($modal-scale-min ) rotateX (30deg );
177
176
transform : scale ($modal-scale-min ) rotateX (30deg );
178
177
transition : all $modal-animation-duration ease-in ;
178
+ -webkit-transform : scale ($modal-scale-min ) rotateX (30deg );
179
179
}
180
180
181
181
.ReactModal__Content.modal-dialog {
182
- border : none ;
182
+ border : 0 ;
183
183
background-color : transparent ;
184
184
}
185
185
// sass-lint:enable class-name-format force-element-nesting
@@ -260,12 +260,12 @@ $modal-scale-min: .35;
260
260
}
261
261
262
262
.sidebar-wrapper {
263
- background-color : $brand-primary ;
264
263
position : fixed ;
265
264
left : $sidebar-width ;
266
265
transition : all .5s ease ;
267
266
z-index : 1000 ;
268
267
margin-left : - $sidebar-width ;
268
+ background-color : $brand-primary ;
269
269
padding : 2rem .75rem ;
270
270
width : $sidebar-width ;
271
271
height : 100% ;
@@ -354,11 +354,11 @@ $modal-scale-min: .35;
354
354
right : 0 ;
355
355
bottom : 0 ;
356
356
left : 0 ;
357
+ margin : 0 ;
357
358
outline : none ;
358
359
padding : 2.25rem 1.5rem ;
359
360
overflow : auto ;
360
361
color : $white ;
361
- margin : 0 ;
362
362
363
363
.modal-title {
364
364
margin-bottom : 1.35rem ;
@@ -423,7 +423,7 @@ $modal-scale-min: .35;
423
423
padding : .55rem 1.25rem ;
424
424
425
425
.fa {
426
- margin-right : 0 .5rem ;
426
+ margin-right : .5rem ;
427
427
}
428
428
}
429
429
}
0 commit comments