@@ -4,9 +4,11 @@ $modal-width-sm: 480px !default;
44$modal-width-md : 600px !default ;
55$modal-width-lg : 900px !default ;
66$modal-border-radius : $component-border-radius-lg !default ;
7+ $modal-content-padding : $spacing-square-md !default ;
78$modal-bg : $component-bg !default ;
89$modal-shadow : $shadow-lg !default ;
9- $modal-title-font-size : $text-size-xl !default ;
10+ $modal-title-font-size : $text-title-sm !default ;
11+ $modal-title-line-height : $line-height-normal !default ;
1012$modal-zIndex : $zIndex-9 !default ;
1113$mask-zIndex : $zIndex-6 !default ;
1214$mask-bg : rgba ($black , 0.5 ) !default ;
@@ -52,30 +54,44 @@ $mask-bg: rgba($black, 0.5) !default;
5254 margin : 0 ;
5355 font-weight : $font-weight-medium ;
5456 font-size : $modal-title-font-size ;
55- line-height : $line-height-tight ;
57+ line-height : $modal-title- line-height ;
5658}
5759
5860.modal__close {
61+ cursor : pointer ;
5962 position : absolute ;
60- right : $spacing-square-md ;
61- top : $spacing-square-md ;
62- font-size : $text-size-xl ;
63- color : $grey-mute ;
63+ right : $modal-content-padding ;
64+ top : $modal-content-padding ;
65+ display : flex ;
66+ align-items : center ;
67+ justify-content : center ;
68+ width : 30px ;
69+ height : 30px ;
6470 line-height : 1 ;
65- cursor : pointer ;
71+ color : $grey-mute ;
72+ font-size : $text-size-xl ;
73+ border-radius : $component-border-radius-md ;
74+ background-color : $grey-light ;
6675 font-family : Helvetica , Arial , sans-serif ;
76+
77+ & :hover {
78+ background-color : darken ($grey-light , 2.5% );
79+ }
80+ & :active {
81+ background-color : darken ($grey-light , 5% );
82+ }
6783}
6884
6985.modal__body {
7086 flex : 1 1 auto ;
71- padding : $spacing-square-md ;
87+ padding : $modal-content-padding ;
7288 overflow : auto ;
7389 -webkit-overflow-scrolling : touch ;
7490}
7591
7692.modal__footer {
7793 flex-shrink : 0 ;
78- padding : $spacing-square-md ;
94+ padding : $modal-content-padding ;
7995 text-align : right ;
8096}
8197
0 commit comments