menu {
display: none;
position: fixed;
border: 1px solid rgba(0, 0, 0, .50);
-webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, .50);
color: black;
background: -webkit-linear-gradient(#fff, #eee);
left: 0;
white-space: nowrap;
padding: 8px 0;
margin: 0;
cursor: default;
border-radius: 3px;
z-index: 3;
}
menu > * {
box-sizing: border-box;
display: block;
margin: 0;
width: 100%;
text-align: start;
}
menu > :not(hr) {
-webkit-appearance: none;
background: transparent;
font: inherit;
border: 0;
line-height: 18px;
padding: 0 19px;
overflow: hidden;
text-overflow: ellipsis;
}
menu > hr {
background: -webkit-linear-gradient(left,
rgba(0, 0, 0, .10),
rgba(0, 0, 0, .02) 96%);
border: 0;
height: 1px;
margin: 8px 0;
}
menu > [disabled] {
color: rgba(0, 0, 0, .3);
}
menu > [hidden] {
display: none;
}
menu > :not(hr)[selected] {
background-color: #dce5fa;
}
menu > :not(hr)[selected]:active {
background-color: #426dc9;
color: #fff;
}
menu > [checked]:before {
content: url("../images/checkbox_black.png");
width: 9px;
height: 9px;
display: inline-block;
vertical-align: 50%;
margin: 0 5px;
}
menu > [checked] {
-webkit-padding-start: 0;
}
menu > [selected][checked]:active:before {
content: url("../images/checkbox_white.png");
}