Skip to content

Commit cd865bb

Browse files
authored
Merge pull request element-hq#1806 from vector-im/wmwragg/modal-restyle
Wmwragg/modal restyle
2 parents 6607bee + e668d76 commit cd865bb

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

src/skins/vector/css/common.css

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ input[type=text]:focus, textarea:focus {
6666
box-shadow: none;
6767
}
6868

69+
/* Prevent ugly dotted highlight around selected elements in Firefox */
70+
::-moz-focus-inner {
71+
border: 0;
72+
}
73+
6974
/* applied to side-panels and messagepanel when in RoomSettings */
7075
.mx_fadable {
7176
opacity: 1;
@@ -154,13 +159,14 @@ input[type=text]:focus, textarea:focus {
154159
.mx_Dialog {
155160
background-color: #fff;
156161
color: #747474;
157-
text-align: center;
158162
z-index: 4010;
159163
font-weight: 300;
160164
font-size: 15px;
161165
position: relative;
162-
border-radius: 8px;
163-
max-width: 80%;
166+
padding-left: 58px;
167+
width: 60%;
168+
max-width: 704px;
169+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2);
164170
}
165171

166172
.mx_Dialog_background {
@@ -169,12 +175,13 @@ input[type=text]:focus, textarea:focus {
169175
left: 0;
170176
width: 100%;
171177
height: 100%;
172-
background-color: #000;
173-
opacity: 0.2;
178+
background-color: #e9e9e9;
179+
opacity: 0.8;
174180
}
175181

176182
.mx_Dialog_lightbox .mx_Dialog_background {
177183
opacity: 0.85;
184+
background-color: #000;
178185
}
179186

180187
.mx_Dialog_lightbox .mx_Dialog {
@@ -188,34 +195,45 @@ input[type=text]:focus, textarea:focus {
188195
}
189196

190197
.mx_Dialog_content {
191-
margin: 24px;
198+
margin: 24px 58px 68px 0;
199+
font-size: 14px;
200+
color: #4a4a4a;
201+
word-wrap: break-word;
192202
}
193203

194204
.mx_Dialog_buttons {
195-
padding-bottom: 24px;
205+
padding-bottom: 36px;
196206
}
197207

198208
.mx_Dialog button, .mx_Dialog input[type="submit"] {
199209
border: 0px;
200210
height: 36px;
201-
border-radius: 36px;
211+
border-radius: 40px;
212+
border: solid 1px #76cfa6;
202213
font-weight: 400;
203214
font-size: 15px;
215+
margin-left: 0px;
216+
margin-right: 8px;
217+
padding-left: 1.5em;
218+
padding-right: 1.5em;
219+
outline: none;
220+
221+
color: #76cfa6;
222+
background-color: #fff;
223+
}
224+
225+
.mx_Dialog button.mx_Dialog_primary, .mx_Dialog input[type="submit"].mx_Dialog_primary {
204226
color: #fff;
205227
background-color: #76cfa6;
206-
margin-left: 8px;
207-
margin-right: 8px;
208-
padding-left: 1em;
209-
padding-right: 1em;
210228
}
211229

212230
.mx_Dialog_title {
213231
min-height: 16px;
214-
padding: 12px;
215-
border-bottom: 1px solid #a4a4a4;
232+
padding-top: 40px;
216233
font-weight: bold;
217-
font-size: 18px;
234+
font-size: 22px;
218235
line-height: 1.4;
236+
color: #454545;
219237
}
220238

221239
.mx_TextInputDialog_label {

0 commit comments

Comments
 (0)