-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathnavbar.scss
More file actions
103 lines (82 loc) · 1.71 KB
/
navbar.scss
File metadata and controls
103 lines (82 loc) · 1.71 KB
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
93
94
95
96
97
98
99
100
101
102
103
@use "../mixins/section";
:root {
.navbar {
border-bottom: 1px solid transparent;
}
&.docs-wrapper {
.navbar {
border-bottom: 1px solid var(--ifm-toc-border-color);
}
}
&:not(.docs-wrapper) {
@media screen and (min-width: 1140px) {
.navbar {
width: var(--ifm-container-width);
margin: 0 auto;
@include section.section(true);
}
}
@media screen and (min-width: 1440px) {
.navbar {
width: var(--ifm-container-width-xl);
}
}
}
}
.navbar {
height: 68px;
@media screen and (min-width: 1280px) {
padding-inline: 3rem;
}
}
.navbar__brand {
gap: 0.5rem;
margin-right: calc(4rem - var(--ifm-navbar-item-padding-horizontal));
@media screen and (max-width: 1160px) {
// Tablets & small desktops: reduce spacing between tagline and main nav links
margin-right: 1rem;
}
.navbar__logo {
display: flex;
align-items: center;
height: 25px;
}
.navbar__title {
font-weight: normal;
@media screen and (max-width: 1080px) {
display: none;
}
}
}
// Github link in the navbar
.navbar__item:has(.navbar-github-link) {
padding: 0 8px;
}
.navbar-github-link {
display: none;
@media screen and (min-width: 996px) {
display: flex;
justify-content: center;
align-items: center;
height: 34px;
width: 34px;
border-radius: 50%;
color: inherit;
&:hover {
background: var(--ifm-color-emphasis-200);
color: inherit;
}
span {
display: none;
}
}
}
// Sign in button in the navbar
.navbar .button--hero {
display: none;
@media screen and (min-width: 996px) {
display: block;
padding: 2px 10px;
margin: 0 0 3px;
}
}