Skip to content

Commit f3586a7

Browse files
committed
Final CSS tweaks for the hover and collapsed states
1 parent 882d09b commit f3586a7

1 file changed

Lines changed: 19 additions & 9 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: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ limitations under the License.
3838
vertical-align: middle;
3939
overflow: hidden;
4040
word-break: break-word;
41-
padding-left: 15px;
41+
padding-left: 11px;
4242
padding-right: 15px;
4343
color: rgba(69, 69, 69, 0.8);
4444
}
@@ -57,8 +57,12 @@ limitations under the License.
5757
display: none;
5858
}
5959

60+
.collapsed .mx_RoomTile {
61+
height: 36px;
62+
}
63+
6064
.collapsed .mx_RoomTile_badge {
61-
bottom: 40px;
65+
top: -40px;
6266
left: 30px;
6367
min-width: 12px;
6468
height: 16px;
@@ -87,19 +91,24 @@ style are the same, this style needs to be AFTER it to take effect when matched
8791

8892
.mx_RoomTile_badge {
8993
display: inline-block;
90-
min-width: 12px;
94+
min-width: 14px;
9195
height: 18px;
9296
position: relative;
93-
right: 4px;
94-
top: 50%;
97+
left: 8px;
98+
top: 2px;
9599
border-radius: 18px;
96100
color: #fff;
97101
font-weight: bold;
98102
font-size: 11px;
99103
text-align: center;
100104
padding-top: 2px;
101-
padding-left: 5px;
102-
padding-right: 5px;
105+
padding-left: 4px;
106+
padding-right: 4px;
107+
}
108+
109+
.mx_RoomTile_badge:hover {
110+
letter-spacing: 0.1em;
111+
opacity: 1;
103112
}
104113

105114
.mx_RoomTile_unreadNotify .mx_RoomTile_badge {
@@ -110,8 +119,9 @@ style are the same, this style needs to be AFTER it to take effect when matched
110119
background-color: #ff0064;
111120
}
112121

113-
.mx_RoomTile_badge.mx_RoomTile_badge_no_unread {
114-
background-color: rgba(74, 73, 74, 0.2);
122+
.mx_RoomTile_badge_no_unread {
123+
background-color: rgb(214, 214, 214);
124+
opacity: 0;
115125
}
116126

117127
.mx_RoomTile_unread, .mx_RoomTile_highlight {

0 commit comments

Comments
 (0)