Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 58e79d8

Browse files
authored
Iterate space panel toggle collapse interaction (#7335)
1 parent ce570ab commit 58e79d8

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

res/css/structures/_SpacePanel.scss

+14-26
Original file line numberDiff line numberDiff line change
@@ -36,49 +36,37 @@ $activeBorderColor: $primary-content;
3636
flex-direction: column;
3737

3838
.mx_SpacePanel_toggleCollapse {
39-
position: relative;
40-
height: 32px;
41-
width: 32px;
39+
position: absolute;
40+
width: 18px;
41+
height: 18px;
42+
border-radius: 50%;
43+
background-color: $tertiary-content;
44+
top: 19px; // v-align with avatar
45+
right: -8px;
4246

4347
&::before {
4448
content: "";
4549
position: absolute;
46-
width: 32px;
47-
height: 32px;
48-
left: 0;
50+
width: inherit;
51+
height: inherit;
4952
mask-position: center;
50-
mask-size: 24px;
53+
mask-size: contain;
5154
mask-repeat: no-repeat;
52-
background-color: $secondary-content;
55+
background-color: $background;
5356
mask-image: url('$(res)/img/feather-customised/chevron-down.svg');
5457
transform: rotate(270deg);
5558
}
5659

5760
&:not(.expanded) {
58-
position: absolute;
59-
left: 68px;
60-
top: 12px;
61-
border-radius: 0 8px 8px 0;
62-
background-color: $primary-content;
6361
opacity: 0;
6462

6563
&::before {
66-
background-color: $background;
64+
mask-position: center 1px;
6765
}
6866
}
6967

70-
&.expanded {
71-
margin-left: auto;
72-
margin-right: -8px; // overflow into .mx_UserMenu's margin without butchering its bottom stroke
73-
border-radius: 8px;
74-
75-
&::before {
76-
transform: rotate(90deg);
77-
}
78-
79-
&:hover {
80-
background-color: $panel-actions;
81-
}
68+
&.expanded::before {
69+
transform: rotate(90deg);
8270
}
8371
}
8472

0 commit comments

Comments
 (0)