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

Iterate space panel toggle collapse interaction #7335

Merged
merged 4 commits into from
Dec 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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