Skip to content

Commit fb477fa

Browse files
committed
Less hardcoded CSS
1 parent a070bcc commit fb477fa

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/DirectorySearchBox.css‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ limitations under the License.
1818
position: relative;
1919
border-radius: 3px;
2020
border: 1px solid #c7c7c7;
21+
}
22+
23+
.mx_DirectorySearchBox_container {
24+
display: table;
2125
padding-left: 9px;
22-
padding-right: 25px;
2326
}
2427

2528
.mx_DirectorySearchBox_input {
29+
display: table-cell;
2630
border: 0;
2731
padding: 0;
2832
font-weight: 300;
@@ -33,9 +37,7 @@ input[type=text].mx_DirectorySearchBox_input:focus {
3337
}
3438

3539
.mx_DirectorySearchBox_joinButton {
36-
position: absolute;
37-
right: 30px;
38-
top: 5px;
40+
display: table-cell;
3941
padding: 3px;
4042
padding-left: 10px;
4143
padding-right: 10px;
@@ -49,13 +51,16 @@ input[type=text].mx_DirectorySearchBox_input:focus {
4951
font-size: 12px;
5052
}
5153

54+
.mx_DirectorySearchBox_clear_wrapper {
55+
display: table-cell;
56+
}
57+
5258
.mx_DirectorySearchBox_clear {
53-
position: absolute;
54-
right: 0px;
5559
display: inline-block;
56-
top: 10px;
57-
right: 10px;
60+
vertical-align: middle;
5861
background: url('img/icon_context_delete.svg');
62+
background-position: 0 50%;
63+
background-repeat: no-repeat;
5964
width: 15px;
6065
height: 15px;
6166
cursor: pointer;

0 commit comments

Comments
 (0)