/
navbar.scss
77 lines (62 loc) 路 1.3 KB
/
navbar.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
@use './mixins' as *;
// import components
@use './nav/menu';
.navbar-wrapper {
@include with-bg;
position: relative;
border-bottom: 1px solid var(--border-color);
height: var(--header-height);
padding: 0 12px 0 24px;
backdrop-filter: saturate(50%) blur(8px);
background: var(--bg-color-filter);
-webkit-backdrop-filter: saturate(50%) blur(8px);
top: 0;
@include respond-to('md') {
padding: 0 12px 0 32px;
}
@include respond-to('xlg') {
padding: 0 32px;
}
.header-container {
display: flex;
justify-content: space-between;
margin: 0 auto;
.content {
display: flex;
justify-content: flex-end;
align-items: center;
flex-grow: 1;
}
@include respond-to('xxl') {
max-width: calc(var(--vp-screen-max-width));
}
@include respond-to('max') {
// 36 = 2 * 18 for each side.
max-width: calc(var(--vp-screen-max-width));
}
}
@include respond-to('md') {
.content {
padding-top: 1px;
}
}
}
.navbar {
top: 0;
left: 0;
position: relative;
z-index: var(--nav-z-index);
@include respond-to('lg') {
position: fixed;
width: 100%;
}
}
.menu + .appearance {
margin-left: 8px;
}
.menu + .social-links {
margin-left: 12px;
}
.appearance + .social-links {
margin-left: 12px;
}