Skip to content

Commit df163d8

Browse files
committed
Clean up of the CSS, and refactor to better match current code
1 parent 73bb317 commit df163d8

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

  • src/skins/vector/css/matrix-react-sdk/views/rooms

‎src/skins/vector/css/matrix-react-sdk/views/rooms/RoomTile.css‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ limitations under the License.
5656
*/
5757
}
5858

59-
.collapsed .mx_RoomTile_name {
60-
display: none;
61-
}
62-
6359
.collapsed .mx_RoomTile {
6460
height: 36px;
6561
}
6662

63+
.collapsed .mx_RoomTile_name {
64+
display: none;
65+
}
66+
6767
.collapsed .mx_RoomTile_badge {
6868
top: -40px;
6969
left: 30px;
@@ -74,6 +74,11 @@ limitations under the License.
7474
z-index: 200;
7575
}
7676

77+
/* Hide the bottom of speech bubble */
78+
.collapsed .mx_RoomTile_highlight .mx_RoomTile_badge:after {
79+
display: none;
80+
}
81+
7782
/* This is the bottom of the speech bubble */
7883
.mx_RoomTile_highlight .mx_RoomTile_badge:after {
7984
content: "";
@@ -86,12 +91,6 @@ limitations under the License.
8691
border-right: 10px solid transparent;
8792
}
8893

89-
/* Because the specificity of this and the above ".mx_RoomTile_highlight .mx_RoomTile_badge:after"
90-
style are the same, this style needs to be AFTER it to take effect when matched */
91-
.collapsed .mx_RoomTile_badge:after {
92-
display: none;
93-
}
94-
9594
.mx_RoomTile_badge {
9695
display: inline-block;
9796
min-width: 14px;
@@ -109,7 +108,7 @@ style are the same, this style needs to be AFTER it to take effect when matched
109108
padding-right: 4px;
110109
}
111110

112-
.mx_RoomTile_badge:hover {
111+
.mx_RoomTile .mx_RoomTile_badge:hover {
113112
letter-spacing: 0.1em;
114113
opacity: 1;
115114
}
@@ -122,7 +121,7 @@ style are the same, this style needs to be AFTER it to take effect when matched
122121
background-color: #ff0064;
123122
}
124123

125-
.mx_RoomTile_badge_no_unread {
124+
.mx_RoomTile_read .mx_RoomTile_badge {
126125
background-color: rgb(214, 214, 214);
127126
opacity: 0;
128127
}

0 commit comments

Comments
 (0)