Skip to content

Commit

Permalink
Add a background to the collapse button when active to make collapsed…
Browse files Browse the repository at this point in the history
… more visible when scrolling (glitch-soc#23)
  • Loading branch information
neatchee committed Jan 4, 2023
1 parent 087dada commit 6dfacc6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/javascript/flavours/glitch/styles/components/status.scss
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@
&.status-direct {
background: lighten($ui-base-color, 8%);
border-bottom-color: lighten($ui-base-color, 12%);

.status__collapse-button.active {
background-image: linear-gradient(rgba(lighten($ui-base-color, 16%), 255) 0 0);
}
}

&.light {
Expand Down Expand Up @@ -492,6 +496,10 @@
padding-right: 2px;
}

.status__collapse-button.active {
background-image: linear-gradient(rgba(lighten($ui-base-color, 8%), 255) 0 0);
}

.status__collapse-button.active > .fa-angle-double-up {
transform: rotate(-180deg);
}
Expand Down

0 comments on commit 6dfacc6

Please sign in to comment.