pxvmc/src/context_menu.scss

141 lines
3.6 KiB
SCSS
Raw Normal View History

2023-10-08 18:28:04 +00:00
@use "colors";
@use "images";
[class*="menu-"] {
padding: 2px;
& > [class^="scroller-"] {
padding: 1px 1px 4px 1px !important;
margin-right: -4px;
[class^="customItem-"][id^="message-quickreact-"] > [class^="button-"] {
border-radius: 0 !important;
}
[class^="separator-"] {
margin: 4px 1px;
border-bottom: 1px solid colors.$tertiary;
border-top: 1px solid colors.$c0;
}
[class^="item-"] {
border-radius: 0 !important;
margin: 1px 0;
padding: 0 2px !important;
min-height: 16px !important;
font-size: 12px;
&:not(:has(> [class^="iconContainer-"] > [class^="icon-"])):not(
:has(> [class^="iconContainerLeft-"])
) {
padding-inline-start: 20px !important;
}
&:has(> [class^="iconContainer-"] > [class^="icon-"]) {
flex-direction: row-reverse;
}
& > [class^="iconContainer-"]:has(> [class^="icon-"]),
& > [class^="iconContainerLeft-"] {
margin-left: 0;
margin-right: 2px;
}
& > [class^="label-"] {
padding-left: 2px;
& > [class^="subtext-"] {
line-height: 12px;
margin-top: 0;
}
}
& > [class^="iconContainer-"],
& > [class^="iconContainer-"] > svg {
width: 16px;
height: 16px;
}
& > [class^="hintContainer-"] {
margin-right: 18px;
}
&[aria-haspopup="true"] > [class^="iconContainer-"] > [class^="caret-"] {
display: none;
}
&[aria-haspopup="true"] > [class^="iconContainer-"]:before {
content: "";
position: absolute;
right: -2px;
top: 0px;
width: 16px;
height: 16px;
background-color: colors.$c7;
mask-image: images.$MenuArrow;
-webkit-mask-image: images.$MenuArrow;
mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
}
&[role="menuitemcheckbox"]
> [class^="iconContainer-"]
> svg[class^="icon-"] {
display: none;
}
&[role="menuitemcheckbox"][aria-checked="true"]
> [class^="iconContainer-"]:before {
content: "";
position: absolute;
right: 0px;
top: 0px;
width: 16px;
height: 16px;
background-color: colors.$c7;
mask-image: images.$MenuCheck;
-webkit-mask-image: images.$MenuCheck;
mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
}
&[role="menuitemradio"]
> [class^="iconContainer-"]
> svg[class^="icon-"] {
display: none;
}
&[role="menuitemradio"][aria-checked="true"]
> [class^="iconContainer-"]:before {
content: "";
position: absolute;
right: -1px;
top: 0px;
width: 16px;
height: 16px;
background-color: colors.$c7;
mask-image: images.$MenuRadio;
-webkit-mask-image: images.$MenuRadio;
mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
}
& > [class^="label-"] > [class^="roleRow-"] > [class^="roleCircle-"] {
width: 12px;
height: 12px;
border-radius: 0;
border-top: 1px solid colors.$highlight;
border-left: 1px solid colors.$highlight;
margin: 0;
margin-right: 2px;
}
}
}
}
[class^="submenuPaddingContainer-"] {
padding: 0;
margin: -4px;
}