pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
61 lines (50 loc) • 1.33 kB
text/less
.common-menu-dropdown {
height: 100%;
position: relative;
}
.common-menu-dropdown > .menu-button.expanded {
background: var(--pxt-neutral-alpha20);
}
.common-menu-dropdown-pane {
position: absolute;
right: 0;
width: 12rem;
ul {
list-style: none;
margin: 0;
padding: 0;
background: var(--pxt-neutral-background1);
color: var(--pxt-neutral-foreground1);
}
li {
width: 100%;
}
}
.common-menu-dropdown-item {
background: none;
text-align: left;
width: 100%;
margin: 0;
padding: 1rem;
&:hover {
background-color: var(--pxt-neutral-alpha10);
}
}
.common-menu-dropdown-item.common-button:focus::after {
outline: @buttonFocusOutlineLightBackground;
}
/****************************************************
* High Contrast *
****************************************************/
.high-contrast {
.common-menu-dropdown-pane {
color: @highContrastTextColor;
background-color: @highContrastBackgroundColor;
border: 1px solid @highContrastTextColor;
}
.common-menu-dropdown-item:hover,
.common-menu-dropdown > .menu-button.expanded {
outline: @highContrastFocusOutline;
z-index: @highContrastFocusZIndex;
}
}