diff options
Diffstat (limited to 'src/objects/_popover.scss')
-rw-r--r-- | src/objects/_popover.scss | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/objects/_popover.scss b/src/objects/_popover.scss index 9d4b1c7..5ad58ec 100644 --- a/src/objects/_popover.scss +++ b/src/objects/_popover.scss | |||
@@ -14,7 +14,12 @@ | |||
14 | --colors: ( | 14 | --colors: ( |
15 | --bg: fn.global-color(--bg-l2), | 15 | --bg: fn.global-color(--bg-l2), |
16 | --border: fn.global-color(--border), | 16 | --border: fn.global-color(--border), |
17 | --shadow: 0 .2em .5em rgba(#000, .1), | 17 | --filter: drop-shadow( |
18 | fn.global-dim(--shadow --x) | ||
19 | fn.global-dim(--shadow --y) | ||
20 | fn.global-dim(--shadow --blur) | ||
21 | fn.global-color(--shadow) | ||
22 | ), | ||
18 | ), | 23 | ), |
19 | )); | 24 | )); |
20 | 25 | ||
@@ -29,7 +34,7 @@ | |||
29 | border: fn.dim(--border) solid fn.color(--border); | 34 | border: fn.dim(--border) solid fn.color(--border); |
30 | border-radius: fn.dim(--rounding); | 35 | border-radius: fn.dim(--rounding); |
31 | background-color: fn.color(--bg); | 36 | background-color: fn.color(--bg); |
32 | box-shadow: fn.color(--shadow); | 37 | filter: fn.color(--filter); |
33 | 38 | ||
34 | @include iro.bem-modifier('up-left') { | 39 | @include iro.bem-modifier('up-left') { |
35 | transform: translate(var(--x), calc(var(--y) - 100%)); | 40 | transform: translate(var(--x), calc(var(--y) - 100%)); |