1
1
.umap-alert [role = "dialog" ] {
2
2
box-sizing : border-box;
3
- min-height : 46px ;
4
- line-height : 46px ;
5
3
padding : var (--box-padding );
6
4
position : absolute;
7
5
box-shadow : 0 1px 7px # 999999 ;
20
18
width : max-content;
21
19
z-index : var (--zindex-alert );
22
20
}
23
- .umap-alert [role = "dialog" ] > div {
21
+
22
+ .umap-alert [role = "dialog" ]> div {
24
23
margin : 0 auto;
25
24
min-width : 60% ;
26
25
background-size : 20px ;
27
- background-position : 0 15px ;
28
26
padding-inline-start : 28px ;
27
+ background-position : 0 center;
28
+ min-height : 10vh ;
29
+ display : flex;
30
+ flex-direction : column;
31
+ justify-content : center;
29
32
}
30
- .umap-alert [role = "dialog" ][data-level = "info" ] > div {
33
+
34
+ .umap-alert [role = "dialog" ][data-level = "info" ]> div {
31
35
background-image : url ('../../../img/alert-icon-info.svg' );
32
36
background-repeat : no-repeat;
33
37
}
34
- html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "info" ] > div {
35
- background-position : right;
36
- }
37
- .umap-alert [role = "dialog" ][data-level = "success" ] > div {
38
+
39
+ .umap-alert [role = "dialog" ][data-level = "success" ]> div {
38
40
background-image : url ('../../../img/alert-icon-success.svg' );
39
41
background-repeat : no-repeat;
40
42
}
41
- html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "success" ] > div {
42
- background-position : right;
43
- }
44
- .umap-alert [role = "dialog" ][data-level = "error" ] > div {
43
+
44
+ .umap-alert [role = "dialog" ][data-level = "warning" ]> div ,
45
+ .umap-alert [role = "dialog" ][data-level = "error" ]> div {
45
46
background-image : url ('../../../img/alert-icon-error.svg' );
46
47
background-repeat : no-repeat;
47
48
}
48
- html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "error" ] > div {
49
+
50
+ html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "info" ]> div ,
51
+ html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "success" ]> div ,
52
+ html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "warning" ]> div ,
53
+ html [dir = "rtl" ] .umap-alert [role = "dialog" ][data-level = "error" ]> div {
49
54
background-position : right;
50
55
}
56
+
57
+
58
+ .umap-alert [role = "dialog" ][data-level = "warning" ],
51
59
.umap-alert [role = "dialog" ][data-level = "error" ] {
52
60
background-color : var (--color-darkRed );
53
61
}
62
+
63
+ .umap-alert [role = "dialog" ][data-level = "warning" ] {
64
+ background-color : var (--color-darkOrange );
65
+ }
66
+
54
67
.umap-alert [role = "dialog" ] a {
55
68
text-decoration : underline;
56
69
}
70
+
57
71
.umap-alert [role = "dialog" ] label {
58
72
font-size : .8rem ;
59
73
font-weight : normal;
60
74
}
75
+
61
76
.umap-alert [role = "dialog" ] a [target = "_blank" ] {
62
77
background : url ('../../../img/icon-external-link.svg' ) no-repeat right center;
63
78
padding-inline-end : 14px ;
64
79
background-size : 12px ;
65
80
}
81
+
66
82
html [dir = "rtl" ] .umap-alert [role = "dialog" ] a [target = "_blank" ] {
67
83
background : url ('../../../img/icon-external-link.svg' ) no-repeat left center;
68
84
}
85
+
69
86
h3 [role = "alert" ] {
70
87
margin-bottom : 0 ;
71
88
margin-top : 1rem ;
72
89
line-height : initial;
73
90
}
74
- h3 [role = "alert" ] + p {
91
+
92
+ h3 [role = "alert" ]+ p {
75
93
margin-top : 0 ;
76
94
}
95
+
77
96
[role = "group" ] {
78
97
display : inline-flex;
79
98
position : relative;
@@ -84,61 +103,70 @@ h3[role="alert"] + p {
84
103
padding : 0 ;
85
104
border : none;
86
105
}
106
+
87
107
[role = "group" ] input : not ([type = "checkbox" ], [type = "radio" ]): not (: last-child ),
88
- [role = "group" ] > : not (: last-child ) {
89
- border-start-end-radius : 0 ;
90
- border-end-end-radius : 0 ;
108
+ [role = "group" ]> : not (: last-child ) {
109
+ border-start-end-radius : 0 ;
110
+ border-end-end-radius : 0 ;
91
111
}
112
+
92
113
[role = "group" ] input : not ([type = "checkbox" ], [type = "radio" ]): not (: first-child ),
93
- [role = "group" ] > : not (: first-child ) {
94
- margin-inline-start : 0 ;
95
- border-start-start-radius : 0 ;
96
- border-end-start-radius : 0 ;
97
- width : 45% ;
114
+ [role = "group" ]> : not (: first-child ) {
115
+ margin-inline-start : 0 ;
116
+ border-start-start-radius : 0 ;
117
+ border-end-start-radius : 0 ;
118
+ width : 45% ;
98
119
}
120
+
99
121
[role = "group" ] input [type = "submit" ] {
100
122
background : var (--color-darkGray );
101
123
color : var (--color-light );
102
124
border : 1px solid var (--color-light );
103
125
line-height : initial;
104
126
}
127
+
105
128
[role = "group" ] input : not ([type = "submit" ]) {
106
129
background : var (--color-light );
107
130
color : var (--color-darkGray );
108
131
border : 1px solid var (--color-light );
109
132
}
133
+
110
134
[role = "group" ] input [type = "button" ] {
111
135
background : var (--color-darkGray );
112
136
color : var (--color-light );
113
- border : none;
114
137
line-height : initial;
115
138
}
139
+
116
140
[role = "group" ] input [type = "button" ]: hover {
117
141
text-decoration : underline;
118
- border : none;
119
142
}
143
+
120
144
@media only screen and (max-width : 770px ) {
121
145
[role = "group" ] {
122
146
display : flex;
123
147
flex-direction : column;
124
148
}
149
+
125
150
[role = "group" ] input : not ([type = "checkbox" ], [type = "radio" ]): not (: last-child ),
126
- [role = "group" ] > : not (: last-child ) {
127
- border-radius : var (--border-radius );
151
+ [role = "group" ]> : not (: last-child ) {
152
+ border-radius : var (--border-radius );
128
153
}
154
+
129
155
[role = "group" ] input : not ([type = "checkbox" ], [type = "radio" ]): not (: first-child ),
130
- [role = "group" ] > : not (: first-child ) {
131
- border-radius : var (--border-radius );
156
+ [role = "group" ]> : not (: first-child ) {
157
+ border-radius : var (--border-radius );
132
158
}
133
159
134
160
[role = "group" ] input : not ([type = "checkbox" ], [type = "radio" ]): not (: first-child ),
135
- [role = "group" ] > : not (: first-child ) {
161
+ [role = "group" ]> : not (: first-child ) {
136
162
width : 100% ;
137
163
}
138
164
}
165
+
139
166
# link-wrapper {
140
167
margin-bottom : 1rem ;
141
168
}
169
+
142
170
.umap-alert [role = "dialog" ] # conflict-wrapper a [target = "_blank" ] {
143
171
background-position-y : 16px ;
144
172
}
@@ -147,25 +175,29 @@ h3[role="alert"] + p {
147
175
display : flex;
148
176
justify-content : space-around;
149
177
}
178
+
150
179
# conflict-wrapper form [type = "submit" ] {
151
180
width : initial;
152
181
background : inherit;
153
182
color : var (--color-light );
154
183
border : 1px solid var (--color-light );
155
184
font-weight : bold;
156
185
}
186
+
157
187
# conflict-wrapper form [type = "submit" ]: hover {
158
188
width : initial;
159
189
background : darkred;
160
190
color : var (--color-light );
161
191
border : 1px solid var (--color-light );
162
192
}
193
+
163
194
@media only screen and (max-width : 770px ) {
164
195
# conflict-wrapper form {
165
196
flex-direction : column;
166
197
text-align : center;
167
198
}
168
199
}
200
+
169
201
umap-alert-choice a {
170
202
color : var (--color-light );
171
203
text-decoration : underline;
0 commit comments