forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.scss
92 lines (82 loc) · 1.84 KB
/
nav.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
90
91
92
/* Navigation & Header
.nav-mobile prefixed classes style nav elements only for mobile (< 768px)
.nav-desktop prefixed classes style nav elements only for desktop
------------------------------------------------------------------------------*/
.header-notifications a {
color: $blue-600;
text-decoration: underline;
}
header summary,
.nav-contact {
@include breakpoint(md) {
font-size: $spacer-3;
}
}
.dropdown-withArrow[open] {
.arrow {
transform: rotate(180deg) scaleX(-1);
}
}
.nav-mobile-dropdown {
@media (max-width: $width-md) {
display: none;
visibility: hidden;
}
}
.nav-mobile-dropdown.js-open {
@media (max-width: $width-md) {
display: block;
visibility: visible;
width: 100%;
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 2;
background-color: $gray-000;
padding: $spacer-3;
padding-top: $spacer-8;
box-shadow: 0 1px 15px $black-fade-15;
}
}
.nav-mobile-burgerIcon {
background: url('/assets/images/octicons/hamburger.svg') no-repeat right;
width: 18px;
height: 23px;
position: relative;
z-index: 3;
&.js-open {
background: url('/assets/images/octicons/x.svg') no-repeat right;
width: 16px;
height: 21px;
}
}
.nav-desktop-productDropdown,
.nav-desktop-langDropdown {
@include breakpoint(md) {
min-width: 200px;
background: $white;
border-radius: 3px;
box-shadow: 0 1px 15px $black-fade-15;
}
}
.nav-desktop-productDropdownButton {
@include breakpoint(md) {
font-family: $mono-font;
}
}
// Allows dropdown to be closed when clicking outside of it
@include breakpoint(md) {
details.close-when-clicked-outside[open] > summary::before {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 5;
display: block;
cursor: default;
content: " ";
background: transparent;
}
}