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";
2023-10-26 20:11:59 +00:00
[class*="menu_"] {
2023-10-08 18:28:04 +00:00
padding: 2px;
2023-10-26 20:11:59 +00:00
& > [class^="scroller_"] {
2023-10-08 18:28:04 +00:00
padding: 1px 1px 4px 1px !important;
margin-right: -4px;
2023-10-26 20:11:59 +00:00
[class^="customItem_"][id^="message-quickreact_"] > [class^="button_"] {
2023-10-08 18:28:04 +00:00
border-radius: 0 !important;
}
2023-10-26 20:11:59 +00:00
[class^="separator_"] {
2023-10-08 18:28:04 +00:00
margin: 4px 1px;
border-bottom: 1px solid colors.$tertiary;
border-top: 1px solid colors.$c0;
}
2023-10-26 20:11:59 +00:00
[class^="item_"] {
2023-10-08 18:28:04 +00:00
border-radius: 0 !important;
margin: 1px 0;
padding: 0 2px !important;
min-height: 16px !important;
font-size: 12px;
2023-10-26 20:11:59 +00:00
&:not(:has(> [class^="iconContainer_"] > [class^="icon_"])):not(
:has(> [class^="iconContainerLeft_"])
2023-10-08 18:28:04 +00:00
) {
padding-inline-start: 20px !important;
}
2023-10-26 20:11:59 +00:00
&:has(> [class^="iconContainer_"] > [class^="icon_"]) {
2023-10-08 18:28:04 +00:00
flex-direction: row-reverse;
}
2023-10-26 20:11:59 +00:00
& > [class^="iconContainer_"]:has(> [class^="icon_"]),
& > [class^="iconContainerLeft_"] {
2023-10-08 18:28:04 +00:00
margin-left: 0;
margin-right: 2px;
}
2023-10-26 20:11:59 +00:00
& > [class^="label_"] {
2023-10-08 18:28:04 +00:00
padding-left: 2px;
2023-10-26 20:11:59 +00:00
& > [class^="subtext_"] {
2023-10-08 18:28:04 +00:00
line-height: 12px;
margin-top: 0;
}
}
2023-10-26 20:11:59 +00:00
& > [class^="iconContainer_"],
& > [class^="iconContainer_"] > svg {
2023-10-08 18:28:04 +00:00
width: 16px;
height: 16px;
}
2023-10-26 20:11:59 +00:00
& > [class^="hintContainer_"] {
2023-10-08 18:28:04 +00:00
margin-right: 18px;
}
2023-10-26 20:11:59 +00:00
&[aria-haspopup="true"] > [class^="iconContainer_"] > [class^="caret_"] {
2023-10-08 18:28:04 +00:00
display: none;
}
2023-10-26 20:11:59 +00:00
&[aria-haspopup="true"] > [class^="iconContainer_"]:before {
2023-10-08 18:28:04 +00:00
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"]
2023-10-26 20:11:59 +00:00
> [class^="iconContainer_"]
> svg[class^="icon_"] {
2023-10-08 18:28:04 +00:00
display: none;
}
&[role="menuitemcheckbox"][aria-checked="true"]
2023-10-26 20:11:59 +00:00
> [class^="iconContainer_"]:before {
2023-10-08 18:28:04 +00:00
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"]
2023-10-26 20:11:59 +00:00
> [class^="iconContainer_"]
> svg[class^="icon_"] {
2023-10-08 18:28:04 +00:00
display: none;
}
&[role="menuitemradio"][aria-checked="true"]
2023-10-26 20:11:59 +00:00
> [class^="iconContainer_"]:before {
2023-10-08 18:28:04 +00:00
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;
}
2023-10-26 20:11:59 +00:00
& > [class^="label_"] > [class^="roleRow_"] > [class^="roleCircle_"] {
2023-10-08 18:28:04 +00:00
width: 12px;
height: 12px;
border-radius: 0;
2023-10-26 20:11:59 +00:00
border-top: 1px solid colors.$c7;
border-left: 1px solid colors.$c7;
2023-10-08 18:28:04 +00:00
margin: 0;
margin-right: 2px;
}
}
}
}
2023-10-26 20:11:59 +00:00
[class^="submenuPaddingContainer_"] {
2023-10-08 18:28:04 +00:00
padding: 0;
margin: -4px;
}