-
Notifications
You must be signed in to change notification settings - Fork 0
/
_topbar.scss
70 lines (60 loc) · 1.14 KB
/
_topbar.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
@use 'vars';
.top-gap {
height: vars.$top-bar-margin;
width: 100%;
}
#top-bar {
position: sticky;
z-index: 10;
top: 0;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-areas: 'nav-left nav-middle nav-right';
height: vars.$top-bar-height;
width: calc(100% - vars.$top-bar-margin);
background-color: vars.$background-color-nav;
.nav-item {
display: flex;
flex-wrap: nowrap;
align-items: center;
color: white;
padding: 0 20px;
margin-left: 5px;
margin-right: 5px;
font-weight: 600;
font-size: 18px;
height: 100%;
border-radius: calc(vars.$top-bar-height / 2);
&:hover {
cursor: pointer;
color: vars.$color-hover;
background-color: vars.$background-color-nav-hover;
}
}
.nav-left {
display: flex;
justify-content: flex-start;
}
.nav-right {
display: flex;
justify-content: flex-end;
}
#hamburger {
margin-left: 0px;
}
#logo {
padding-left: 5px;
padding-right: 20px;
&:hover {
background-color: vars.$background-color-nav;
}
img {
height: vars.$top-bar-height - 4px;
padding-right: 4px;
}
div {
font-weight: 700;
font-size: 22px;
}
}
}