Spaces:
Runtime error
Runtime error
File size: 1,724 Bytes
8fd7a1d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
@import "../../css/colors.css";
.menu {
position: absolute;
border: 2px solid $looks-secondary;
border-radius: 10px;
background-color: $ui-secondary;
color: $text-primary;
padding: 0;
margin: 0;
min-width: 186px;
overflow: visible;
box-shadow: 0 8px 8px 0 $shadow;
}
.menu.left {
right: 0;
}
.menu.right {
left: 0;
}
.menu-item {
display: block;
line-height: 34px;
white-space: nowrap;
padding: 0 10px;
font-size: .75rem;
margin: 0;
font-weight: bold;
position: relative;
}
.menu-item.active,
.menu-item:hover,
.menu-item.expanded {
background-color: $ui-black-transparent;
}
.menu-item.hoverable {
cursor: pointer;
}
.menu-section {
border-top: 1px solid $ui-black-transparent;
}
.submenu {
display: none;
position: absolute;
top: -1px;
min-width: 186px;
height: max-content;
overflow: hidden;
border-radius: 8px;
}
.submenu.right {
left: 100%;
}
.submenu.left {
right: 100%;
}
.submenu > .menu {
position: relative;
overflow-y: auto;
overflow-x: hidden;
scrollbar-color: $menu-bar-foreground $menu-bar-background;
border-radius: 8px;
}
.menu-item.expanded > .submenu {
display: block;
}
:not(:has(> .menu-item.expanded)) > .menu-item:hover > .submenu {
display: block;
}
/* Fallback styling for webkit browsers that don't support scrollbar-color */
.submenu > .menu::-webkit-scrollbar {
width: 12px;
}
.submenu > .menu::-webkit-scrollbar-track {
background: $menu-bar-background;
}
.submenu > .menu::-webkit-scrollbar-thumb {
background-color: $menu-bar-foreground;
border-radius: 12px;
border: 3px solid $menu-bar-background;
}
|