-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_flyout.scss
89 lines (78 loc) · 2.1 KB
/
_flyout.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@mixin nav_flyout($top, $flyout-offset-value, $flyout-offset-direction: 'left') { // TODO may not need any params
position: relative;
ul {
@include component-box;
@include transition($base-transition);
position: absolute;
top: $top;
#{$flyout-offset-direction}: $flyout-offset-value;
text-align: left;
z-index: z($z-context, navigation, $navigation, top-bar--primary__flyout__ul);
width: auto;
height: auto;
border-top-left-radius: 0;
border-top-right-radius: 0;
padding: 0;
display: none;
@media only screen and (max-width: $mobile-nav-max) {
position: relative;
top: 0;
left: 0;
border: 0;
border-radius: 0;
padding: 0;
box-shadow: none;
}
}
// Hover and Click behavior above hamburger menu range
&:hover ul,
&.hover ul {
@media only screen and (min-width: $mobile-nav-max) {
display: block;
}
}
ul li {
list-style-type: none;
}
ul li a {
display: block;
padding: $base-spacing-small $base-spacing-medium;
color: $base-link-color;
font-size: $top-bar-font-size;
font-weight: $font-weight-bold;
&:hover,
&:active,
&:focus {
text-decoration: none;
background-color: $grey-lightest;
}
@media only screen and (max-width: $mobile-nav-max) {
padding: 10px 24px; // TODO when we update mobile nav update these numbers; currently sizes shouldn't change, so don't want to use the spacing variables that will change before mobile nav
color: $base-link-color;
text-indent: $type-indent;
}
}
ul li:last-of-type a {
&:hover,
&:active,
&:focus {
border-bottom-left-radius: $minor-border-radius;
border-bottom-right-radius: $minor-border-radius;
}
}
> a:after {
font-family: FontAwesome;
font-size: $top-bar-angle-size;
margin-left: $base-spacing-smallest;
color: $base-link-color;
content: '\f107';
transition: $element-spin-base-transition;
}
&:hover,
&.hover {
> a:after {
transform: $element-spin-rotation-half;
color: $header-text-hover-color;
}
}
}