scinote-web/app/assets/stylesheets/shared/dropdown_menu.scss

45 lines
629 B
SCSS
Raw Normal View History

.dropdown-submenu {
background: $color-white;
box-shadow: $flyout-shadow;
display: none;
left: 100%;
list-style: none;
min-width: 230px;
padding-left: 0;
position: absolute;
top: 0;
}
.dropdown-menu li {
position: relative;
.caret {
position: absolute;
right: 1em;
top: 1.1em;
transform: rotate(90deg);
}
&:hover .dropdown-submenu,
&.active .dropdown-submenu {
display: block;
}
.caret {
2023-06-06 15:34:01 +08:00
transform: rotate(-90deg);
}
}
2023-06-06 15:34:01 +08:00
.dropup {
.dropdown-menu {
.caret {
transform: rotate(90deg);
}
2023-06-15 21:12:51 +08:00
.sn-icon-down {
transform: rotateX(90deg);
}
2023-06-06 15:34:01 +08:00
}
2023-06-06 15:35:21 +08:00
}