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

Commit

Permalink
Merge pull request #6066 from matrix-org/niquewoodhouse-message-actio…
Browse files Browse the repository at this point in the history
…n-bar-refine-ui

Improve styling of the message action bar
  • Loading branch information
niquewoodhouse authored May 24, 2021
2 parents a6adfde + 8d072ce commit 153d0ae
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions res/css/views/messages/_MessageActionBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ limitations under the License.
visibility: hidden;
cursor: pointer;
display: flex;
height: 24px;
height: 32px;
line-height: $font-24px;
border-radius: 4px;
background: $message-action-bar-bg-color;
top: -26px;
border-radius: 8px;
background: $primary-bg-color;
border: 1px solid $input-border-color;
top: -32px;
right: 8px;
user-select: none;
// Ensure the action bar appears above over things, like the read marker.
Expand All @@ -51,31 +52,19 @@ limitations under the License.
white-space: nowrap;
display: inline-block;
position: relative;
border: 1px solid $message-action-bar-border-color;
margin-left: -1px;
margin: 2px;

&:hover {
border-color: $message-action-bar-hover-border-color;
background: $roomlist-button-bg-color;
border-radius: 6px;
z-index: 1;
}

&:first-child {
border-radius: 3px 0 0 3px;
}

&:last-child {
border-radius: 0 3px 3px 0;
}

&:only-child {
border-radius: 3px;
}
}
}


.mx_MessageActionBar_maskButton {
width: 27px;
width: 28px;
height: 28px;
}

.mx_MessageActionBar_maskButton::after {
Expand All @@ -88,7 +77,11 @@ limitations under the License.
mask-size: 18px;
mask-repeat: no-repeat;
mask-position: center;
background-color: $message-action-bar-fg-color;
background-color: $secondary-fg-color;
}

.mx_MessageActionBar_maskButton:hover::after {
background-color: $primary-fg-color;
}

.mx_MessageActionBar_reactButton::after {
Expand Down

0 comments on commit 153d0ae

Please sign in to comment.