1
1
@import ' ../dao-color.scss' ;
2
- $font-color : #3d444f ;
3
- $dialog-overlay : rgba (31 , 33 , 38 , .3 );
4
- $dialog-header-bg-color : #f5f7fa ;
5
- $dialog-header-bg-img : linear-gradient (0deg , rgb (242 ,244 ,247 ) 0% , rgb (245 ,247 ,250 ) 100% );
6
-
2
+ $dialog-overlay : rgba (31 , 33 , 38 , 0.2 );
3
+ $dialog-header-bg-color : #F5F7FA ;
4
+ $dialog-header-bg-img : linear-gradient (0deg , rgb (242 , 244 , 247 ) 0% , rgb (245 , 247 , 250 ) 100% );
5
+ $dialog-border-color : #CCD1D9 ;
7
6
.dao-dialog {
8
7
& -backdrop {
9
8
position : fixed ;
@@ -18,11 +17,13 @@ $dialog-header-bg-img: linear-gradient(0deg, rgb(242,244,247) 0%, rgb(245,247,25
18
17
display : flex ;
19
18
align-items : center ;
20
19
flex-direction : column ;
21
- justify-content : space-between ;
20
+ & .middle {
21
+ justify-content : space-between ;
22
+ }
22
23
}
23
- & -padding-block {
24
+ & -padding-block {
24
25
width : 100% ;
25
- height : 20 px ;
26
+ flex-shrink : 0 ;
26
27
}
27
28
& -container {
28
29
max-height : 100vh ;
@@ -33,7 +34,7 @@ $dialog-header-bg-img: linear-gradient(0deg, rgb(242,244,247) 0%, rgb(245,247,25
33
34
width : 600px ;
34
35
border-radius : 4px ;
35
36
background-color : $white ;
36
- box-shadow : 0 3 px 30 px 0 rgba (0 , 0 , 0 , .2 );
37
+ box-shadow : 0 15 px 35 px 0 rgba (61 , 68 , 79 , 0.10 ) , 0 5 px 15 px 0 rgba ( 0 , 0 , 0 , 0.10 );
37
38
overflow : hidden ;
38
39
position : relative ;
39
40
.resizer {
@@ -47,20 +48,20 @@ $dialog-header-bg-img: linear-gradient(0deg, rgb(242,244,247) 0%, rgb(245,247,25
47
48
background : url ($resizeSvg );
48
49
}
49
50
.dao-dialog {
50
- & -header {
51
+ & -header {
51
52
display : flex ;
52
53
flex : 0 0 auto ;
53
54
justify-content : space-between ;
54
55
padding : 10px 20px ;
55
56
background-color : $dialog-header-bg-color ;
56
57
background-image : $dialog-header-bg-img ;
57
58
border-radius : 4px 4px 0 0 ;
58
- box-shadow : inset 0 -1px 0 #e4e7ed ;
59
- color : $font-color ;
59
+ box-shadow : inset 0 -1px 0 $dialog-border-color ;
60
+ color : $black-dark ;
60
61
font-size : 16px ;
61
62
font-weight : 400 ;
62
63
line-height : 20px ;
63
- .center {
64
+ .center {
64
65
flex : 1 ;
65
66
text-align : center ;
66
67
padding : 0 30px ;
@@ -79,10 +80,10 @@ $dialog-header-bg-img: linear-gradient(0deg, rgb(242,244,247) 0%, rgb(245,247,25
79
80
}
80
81
}
81
82
}
82
- & -body {
83
+ & -body {
83
84
flex : 1 1 auto ;
84
85
background-color : white ;
85
- color : $font-color ;
86
+ color : $black-dark ;
86
87
font-size : 14px ;
87
88
font-weight : 400 ;
88
89
line-height : 21px ;
@@ -92,11 +93,10 @@ $dialog-header-bg-img: linear-gradient(0deg, rgb(242,244,247) 0%, rgb(245,247,25
92
93
flex : 0 0 auto ;
93
94
padding : 10px 20px ;
94
95
text-align : right ;
95
- border-top : 1px solid $white-dark ;
96
+ border-top : 1px solid $dialog-border-color ;
96
97
background-color : $dialog-header-bg-color ;
97
98
background-image : $dialog-header-bg-img ;
98
99
border-radius : 0 0 4px 4px ;
99
- box-shadow : inset 0 -1px 0 #e4e7ed ;
100
100
user-select : none ;
101
101
}
102
102
}
@@ -121,4 +121,4 @@ $dialog-header-bg-img: linear-gradient(0deg, rgb(242,244,247) 0%, rgb(245,247,25
121
121
122
122
.dao-dialog-leave-active .dao-dialog-container {
123
123
transform : translate (0 , 0 );
124
- }
124
+ }
0 commit comments