mirror of https://github.com/vector-im/riot-web
Force style rules of buttons on MessageActionBar used with maskButton selector (#8780)
* Include mx_MessageActionBar_maskButton::after in mx_MessageActionBar_maskButton Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Include mx_MessageActionBar_maskButton:hover::after in mx_MessageActionBar_maskButton Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Ensure buttons on message action bar used only with mx_MessageActionBar_maskButton as expected Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Include mx_Indicator in mx_MessageActionBar_threadButton Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Include mx_MessageActionBar_downloadButton.mx_MessageActionBar_downloadSpinnerButton in mx_MessageActionBar_downloadButton Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>pull/28217/head
parent
8362174039
commit
66daaf0748
|
@ -75,9 +75,8 @@ limitations under the License.
|
|||
cursor: not-allowed;
|
||||
opacity: .75;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_maskButton::after {
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
@ -88,68 +87,73 @@ limitations under the License.
|
|||
mask-repeat: no-repeat;
|
||||
mask-position: center;
|
||||
background-color: $secondary-content;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_maskButton:hover::after {
|
||||
&:hover::after {
|
||||
background-color: $primary-content;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_reactButton::after {
|
||||
&.mx_MessageActionBar_reactButton::after {
|
||||
mask-image: url('$(res)/img/element-icons/room/message-bar/emoji.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_replyButton::after {
|
||||
&.mx_MessageActionBar_replyButton::after {
|
||||
mask-image: url('$(res)/img/element-icons/room/message-bar/reply.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_threadButton::after {
|
||||
&.mx_MessageActionBar_threadButton {
|
||||
&::after {
|
||||
mask-image: url('$(res)/img/element-icons/message/thread.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_threadButton .mx_Indicator {
|
||||
.mx_Indicator {
|
||||
background: $links;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_editButton::after {
|
||||
&.mx_MessageActionBar_editButton::after {
|
||||
mask-image: url('$(res)/img/element-icons/room/message-bar/edit.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_optionsButton::after {
|
||||
&.mx_MessageActionBar_optionsButton::after {
|
||||
mask-image: url('$(res)/img/element-icons/context-menu.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_resendButton::after {
|
||||
&.mx_MessageActionBar_resendButton::after {
|
||||
mask-image: url('$(res)/img/element-icons/retry.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_cancelButton::after {
|
||||
&.mx_MessageActionBar_cancelButton::after {
|
||||
mask-image: url('$(res)/img/element-icons/trashcan.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_downloadButton::after {
|
||||
&.mx_MessageActionBar_downloadButton {
|
||||
&::after {
|
||||
mask-size: 14px;
|
||||
mask-image: url('$(res)/img/download.svg');
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_expandMessageButton::after {
|
||||
&.mx_MessageActionBar_downloadSpinnerButton::after {
|
||||
background-color: transparent; // hide the download icon mask
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.mx_MessageActionBar_expandMessageButton::after {
|
||||
mask-size: 12px;
|
||||
mask-image: url('$(res)/img/element-icons/expand-message.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_collapseMessageButton::after {
|
||||
&.mx_MessageActionBar_collapseMessageButton::after {
|
||||
mask-size: 12px;
|
||||
mask-image: url('$(res)/img/element-icons/collapse-message.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_viewInRoom::after {
|
||||
&.mx_MessageActionBar_viewInRoom::after {
|
||||
mask-image: url('$(res)/img/element-icons/view-in-room.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_copyLinkToThread::after {
|
||||
&.mx_MessageActionBar_copyLinkToThread::after {
|
||||
mask-image: url('$(res)/img/element-icons/link.svg');
|
||||
}
|
||||
|
||||
.mx_MessageActionBar_downloadButton.mx_MessageActionBar_downloadSpinnerButton::after {
|
||||
background-color: transparent; // hide the download icon mask
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue