-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_popovers.styl
43 lines (43 loc) · 1016 Bytes
/
_popovers.styl
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
// Popovers
.popover
display: inline-block
position: relative
.popover-container
left: 50%
opacity: 0
padding: $layout-spacing
position: absolute
top: 0
transform: translate(-50%, -50%) scale(0)
transition: transform .2s ease
width: $control-width-sm
z-index: $zindex-3
*:focus + .popover-container,
&:hover .popover-container
display: block
opacity: 1
transform: translate(-50%, -100%)
&.popover-right
.popover-container
left: 100%
top: 50%
*:focus + .popover-container,
&:hover .popover-container
transform: translate(0, -50%)
&.popover-bottom
.popover-container
left: 50%
top: 100%
*:focus + .popover-container,
&:hover .popover-container
transform: translate(-50%, 0)
&.popover-left
.popover-container
left: 0
top: 50%
*:focus + .popover-container,
&:hover .popover-container
transform: translate(-100%, -50%)
.card
shadow-variant(0.2rem)
border: 0