2020-04-08 17:03:18 +00:00
|
|
|
%with-popover-menu {
|
|
|
|
position: relative;
|
|
|
|
}
|
2020-05-19 16:18:04 +00:00
|
|
|
%with-popover-menu > [type='checkbox'] {
|
|
|
|
@extend %popover-menu;
|
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%more-popover-menu {
|
|
|
|
@extend %display-toggle-siblings;
|
|
|
|
}
|
|
|
|
%more-popover-menu + label > * {
|
|
|
|
@extend %toggle-button;
|
|
|
|
}
|
|
|
|
%more-popover-menu-panel {
|
2020-06-10 16:40:22 +00:00
|
|
|
overflow: hidden;
|
2020-01-22 12:08:29 +00:00
|
|
|
width: 192px;
|
|
|
|
}
|
|
|
|
%more-popover-menu + label + div {
|
|
|
|
@extend %more-popover-menu-panel;
|
|
|
|
}
|
|
|
|
%more-popover-menu-panel:not(.above) {
|
2020-06-17 09:25:54 +00:00
|
|
|
top: 48px;
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
|
|
|
%more-popover-menu-panel:not(.left) {
|
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
%more-popover-menu-panel li [role='menu'] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%more-popover-menu-panel [id$='-']:first-child:checked ~ ul label[for$='-'] + [role='menu'] {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-05-11 14:04:27 +00:00
|
|
|
%popover-menu {
|
|
|
|
@extend %display-toggle-siblings;
|
|
|
|
}
|
|
|
|
%popover-menu + label > * {
|
|
|
|
@extend %toggle-button;
|
|
|
|
}
|
|
|
|
%popover-menu-panel {
|
|
|
|
@extend %menu-panel;
|
|
|
|
width: 192px;
|
|
|
|
}
|
|
|
|
%popover-menu + label + div {
|
|
|
|
@extend %popover-menu-panel;
|
|
|
|
}
|
|
|
|
%popover-menu-panel:not(.above) {
|
|
|
|
top: 38px;
|
|
|
|
}
|
|
|
|
%popover-menu-panel:not(.left) {
|
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
%popover-menu-panel li [role='menu'] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%popover-menu-panel [id$='-']:first-child:checked ~ ul label[for$='-'] + [role='menu'] {
|
|
|
|
display: block;
|
|
|
|
}
|