File tree 3 files changed +12
-1
lines changed 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
.#{$nb-namespace } c-flyout.is-open > .#{$nb-namespace } c-flyout__content {
8
8
transform : scale (1 );
9
+ opacity : 1 ;
10
+ transition : transform $nb-flyout-transition-duration , opacity $nb-flyout-transition-duration ;
9
11
}
10
12
11
13
.#{$nb-namespace } c-flyout__content {
12
14
position : absolute ;
13
15
z-index : 1 ;
14
16
width : $nb-flyout-width ;
15
17
max-width : calc (100vw - #{$nb-spacing-unit-double } );
18
+ opacity : 0 ;
16
19
transform : scale (0 );
17
20
}
18
21
22
+ .#{$nb-namespace } c-flyout__content--transition {
23
+ }
24
+
19
25
.#{$nb-namespace } c-flyout__toggle {
20
26
background-color : transparent ;
21
27
}
22
28
23
29
.#{$nb-namespace } c-flyout__content--ne {
24
30
bottom : calc (100% + #{$nb-spacing-unit-half } );
25
31
left : 0 ;
32
+ transform-origin : 0 100% ;
26
33
27
34
& ::after {
28
35
@include nb-triangle (down );
32
39
.#{$nb-namespace } c-flyout__content--se {
33
40
top : calc (100% + #{$nb-spacing-unit-half } );
34
41
left : 0 ;
42
+ transform-origin : 0 0 ;
35
43
36
44
& ::after {
37
45
@include nb-triangle (up );
41
49
.#{$nb-namespace } c-flyout__content--sw {
42
50
top : calc (100% + #{$nb-spacing-unit-half } );
43
51
right : 0 ;
52
+ transform-origin : 100% 0 ;
44
53
45
54
& ::after {
46
55
@include nb-triangle (left );
50
59
.#{$nb-namespace } c-flyout__content--nw {
51
60
bottom : calc (100% + #{$nb-spacing-unit-half } );
52
61
right : 0 ;
62
+ transform-origin : 100% 100% ;
53
63
54
64
& ::after {
55
65
@include nb-triangle (right );
Original file line number Diff line number Diff line change 1
1
$nb-border-radius : 0.3rem !default ;
2
- $nb-transition-duration : 0.2 s !default ;
2
+ $nb-transition-duration : 0.3 s !default ;
3
3
$nb-nav-bp-key : ' nav' ;
4
4
5
5
$nb-active-border-width : ($nb-spacing-unit / 3 ) !default ;
Original file line number Diff line number Diff line change 1
1
$nb-flyout-width : 160px !default ;
2
+ $nb-flyout-transition-duration : $nb-transition-duration !default ;
You can’t perform that action at this time.
0 commit comments