@@ -16,9 +16,10 @@ limitations under the License.
16
16
17
17
.mx_ToastContainer {
18
18
position : absolute;
19
- top : $spacing-4 ;
19
+ top : 0 ;
20
20
left : 70 px ;
21
21
z-index : 101 ;
22
+ padding : 4 px ;
22
23
display : grid;
23
24
grid-template-rows : 1 fr 14 px 6 px ;
24
25
@@ -33,29 +34,25 @@ limitations under the License.
33
34
}
34
35
35
36
.mx_Toast_toast {
37
+ grid-row : 1 / 3 ;
38
+ grid-column : 1 ;
36
39
background-color : $system ;
37
- border-radius : 8 px ;
38
- box-shadow : 0 px 4 px 20 px rgba (0 , 0 , 0 , 0.5 );
39
40
color : $primary-content ;
40
- column-gap : $spacing-8 ;
41
- display : grid;
42
- grid-column : 1 ;
43
- grid-row : 1 / 3 ;
44
- grid-template-columns : 24 px 1 fr;
41
+ box-shadow : 0 px 4 px 20 px rgba (0 , 0 , 0 , 0.5 );
42
+ border-radius : 8 px ;
45
43
overflow : hidden;
46
- padding : $spacing-16 ;
44
+ display : grid;
45
+ grid-template-columns : 22 px 1 fr;
46
+ column-gap : 8 px ;
47
+ row-gap : 4 px ;
48
+ padding : 8 px ;
47
49
48
50
& .mx_Toast_hasIcon {
49
- .mx_Toast_icon {
50
- grid-column : 1 ;
51
- grid-row : 1 ;
52
- }
53
-
54
51
&::before ,
55
52
&::after {
56
53
content : "" ;
57
- width : 24 px ;
58
- height : 24 px ;
54
+ width : 22 px ;
55
+ height : 22 px ;
59
56
grid-column : 1 ;
60
57
grid-row : 1 ;
61
58
mask-size : 100 % ;
@@ -65,6 +62,11 @@ limitations under the License.
65
62
background-repeat : no-repeat;
66
63
}
67
64
65
+ & .mx_Toast_icon_verification::after {
66
+ mask-image : url("$(res)/img/e2e/normal.svg" );
67
+ background-color : $primary-content ;
68
+ }
69
+
68
70
& .mx_Toast_icon_verification_warning {
69
71
/* white infill for the hollow svg mask */
70
72
&::before {
@@ -94,7 +96,6 @@ limitations under the License.
94
96
grid-column : 2 ;
95
97
}
96
98
}
97
-
98
99
&:not (.mx_Toast_hasIcon ) {
99
100
padding-left : 12 px ;
100
101
@@ -103,19 +104,24 @@ limitations under the License.
103
104
}
104
105
}
105
106
107
+ .mx_Toast_title ,
108
+ .mx_Toast_description {
109
+ padding-right : 8 px ;
110
+ }
111
+
106
112
.mx_Toast_title {
113
+ display : flex;
107
114
align-items : center;
108
- box-sizing : border-box;
109
115
column-gap : 8 px ;
110
- display : flex;
111
- margin-bottom : $spacing-16 ;
112
116
width : 100 % ;
117
+ box-sizing : border-box;
113
118
114
119
h2 {
115
- color : $primary-content ;
116
120
margin : 0 ;
117
- font-size : $font-18px ;
121
+ font-size : $font-15px ;
118
122
font-weight : var (--font-semi-bold );
123
+ display : inline;
124
+ width : auto;
119
125
}
120
126
121
127
.mx_Toast_title_countIndicator {
@@ -129,32 +135,33 @@ limitations under the License.
129
135
.mx_Toast_body {
130
136
grid-column : 1 / 3 ;
131
137
grid-row : 2 ;
132
- position : relative;
133
138
}
134
139
135
140
.mx_Toast_buttons {
136
- column-gap : $spacing-8 ;
137
141
display : flex;
138
142
justify-content : flex-end;
139
- margin-top : $spacing-32 ;
143
+ column-gap : 5 px ;
144
+
145
+ .mx_AccessibleButton {
146
+ min-width : 96 px ;
147
+ box-sizing : border-box;
148
+ }
140
149
}
141
150
142
151
.mx_Toast_description {
143
- color : $primary-content ;
144
- font-size : $font-15px ;
145
- font-weight : var (--font-semi-bold );
146
- max-width : 300 px ;
152
+ max-width : 272 px ;
153
+ overflow : hidden;
154
+ text-overflow : ellipsis;
155
+ margin : 4 px 0 11 px 0 ;
156
+ font-size : $font-12px ;
147
157
148
158
a {
149
159
text-decoration : none;
150
160
}
151
161
}
152
162
153
163
.mx_Toast_detail {
154
- display : block;
155
- font-weight : var (--font-normal );
156
- margin-top : $spacing-4 ;
157
- max-width : 300 px ;
164
+ color : $secondary-content ;
158
165
}
159
166
160
167
.mx_Toast_deviceID {
0 commit comments