Skip to content

Commit 040ef73

Browse files
committed
Simple refactor of the primary indicator, now it's a class. Also added a global selector to remove the ugly firefox dotted line highlight
1 parent adbad50 commit 040ef73

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/skins/vector/css/common.css

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ input[type=text]:focus, textarea:focus {
5858
box-shadow: none;
5959
}
6060

61+
/* Prevent ugly dotted highlight around selected elements in Firefox */
62+
::-moz-focus-inner {
63+
border: 0;
64+
}
65+
6166
/* applied to side-panels and messagepanel when in RoomSettings */
6267
.mx_fadable {
6368
opacity: 1;
@@ -202,28 +207,15 @@ input[type=text]:focus, textarea:focus {
202207
margin-right: 8px;
203208
padding-left: 1.5em;
204209
padding-right: 1.5em;
210+
outline: none;
205211

206212
color: #76cfa6;
207213
background-color: #fff;
208-
outline: none;
209214
}
210215

211-
/* The first button in a dialog is the primary */
212-
.mx_Dialog button:first-child, .mx_Dialog input[type="submit"]:first-child {
213-
border: 0px;
214-
height: 36px;
215-
border-radius: 40px;
216-
border: solid 1px #76cfa6;
217-
font-weight: 400;
218-
font-size: 15px;
219-
margin-left: 0px;
220-
margin-right: 8px;
221-
padding-left: 1.5em;
222-
padding-right: 1.5em;
223-
216+
.mx_Dialog .mx_Dialog_primary {
224217
color: #fff;
225218
background-color: #76cfa6;
226-
outline: none;
227219
}
228220

229221
.mx_Dialog_title {

0 commit comments

Comments
 (0)