-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
_submenu.scss
41 lines (33 loc) · 986 Bytes
/
_submenu.scss
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
// Copyright 2016 Palantir Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0.
@import "../../common/variables";
@import "~@blueprintjs/icons/src/icons";
@import "./common";
.#{$ns}-submenu {
> .#{$ns}-popover-wrapper {
display: block;
}
.#{$ns}-popover-target {
display: block;
&.#{$ns}-popover-open > .#{$ns}-menu-item {
// keep a trail of hovered items as submenus are opened
// stylelint-disable-next-line scss/at-extend-no-missing-placeholder
@extend .#{$ns}-menu-item:hover;
}
}
&.#{$ns}-popover {
box-shadow: none;
// horizontal padding leaves some space from parent menu item, and extends mouse zone
padding: 0 $half-grid-size;
> .#{$ns}-popover-content {
box-shadow: $pt-popover-box-shadow;
}
.#{$ns}-dark &,
&.#{$ns}-dark {
box-shadow: none;
> .#{$ns}-popover-content {
box-shadow: $pt-dark-popover-box-shadow;
}
}
}
}