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

Commit

Permalink
Iterate space panel toggle collapse interaction (#7335)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Dec 13, 2021
1 parent ce570ab commit 58e79d8
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions res/css/structures/_SpacePanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,49 +36,37 @@ $activeBorderColor: $primary-content;
flex-direction: column;

.mx_SpacePanel_toggleCollapse {
position: relative;
height: 32px;
width: 32px;
position: absolute;
width: 18px;
height: 18px;
border-radius: 50%;
background-color: $tertiary-content;
top: 19px; // v-align with avatar
right: -8px;

&::before {
content: "";
position: absolute;
width: 32px;
height: 32px;
left: 0;
width: inherit;
height: inherit;
mask-position: center;
mask-size: 24px;
mask-size: contain;
mask-repeat: no-repeat;
background-color: $secondary-content;
background-color: $background;
mask-image: url('$(res)/img/feather-customised/chevron-down.svg');
transform: rotate(270deg);
}

&:not(.expanded) {
position: absolute;
left: 68px;
top: 12px;
border-radius: 0 8px 8px 0;
background-color: $primary-content;
opacity: 0;

&::before {
background-color: $background;
mask-position: center 1px;
}
}

&.expanded {
margin-left: auto;
margin-right: -8px; // overflow into .mx_UserMenu's margin without butchering its bottom stroke
border-radius: 8px;

&::before {
transform: rotate(90deg);
}

&:hover {
background-color: $panel-actions;
}
&.expanded::before {
transform: rotate(90deg);
}
}

Expand Down

0 comments on commit 58e79d8

Please sign in to comment.