Use MessageActionBar style declarations on pinned message card (#8757)
* Refer mx_MessageActionBar on pinned messages card Normalize mx_MessageActionBar style rules - Allow the varaible (--MessageActionBar-size-button) to be used - Remove redundant declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables for normalization Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Set class name Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Readd the comment Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use Heading size='h4' - Use size='h4' instead of 'h2' as 15px has been specified as the font-size of the header - Use logical values following _Heading.scss - Remove line-height declaration in favor of the default value Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
911150846e
commit
36f2f3e2ce
3 changed files with 25 additions and 29 deletions
|
@ -18,6 +18,9 @@ limitations under the License.
|
|||
.mx_MessageActionBar {
|
||||
--MessageActionBar-size-button: 28px;
|
||||
--MessageActionBar-size-box: 32px; // 28px + 2px (margin) * 2
|
||||
--MessageActionBar-item-hover-background: $panel-actions;
|
||||
--MessageActionBar-item-hover-borderRadius: 6px;
|
||||
--MessageActionBar-item-hover-zIndex: 1;
|
||||
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
|
@ -59,9 +62,9 @@ limitations under the License.
|
|||
margin: 2px;
|
||||
|
||||
&:hover {
|
||||
background: $panel-actions;
|
||||
border-radius: 6px;
|
||||
z-index: 1;
|
||||
background: var(--MessageActionBar-item-hover-background);
|
||||
border-radius: var(--MessageActionBar-item-hover-borderRadius);
|
||||
z-index: var(--MessageActionBar-item-hover-zIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue