-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathNavbar.css
85 lines (73 loc) · 1.22 KB
/
Navbar.css
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
.navbar {
width: 5rem;
height: 100vh;
position: fixed;
background-color: #23232e;
transition: width 200ms ease;
}
.navbar-nav {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
height: 10%;
}
.nav-item {
width: 100%;
}
.link-text {
display: none;
margin-left: 1rem;
}
.nav-link {
display: flex;
align-items: center;
height: 5rem;
color: #b6b6b6;
text-decoration: none;
filter: grayscale(100%) opacity(0.7);
transition: 500ms;
}
.nav-link:hover {
filter: grayscale(0%) opacity(1);
background: #141418;
color: #ececec;
}
.nav-link img {
width: 2rem;
min-width: 2rem;
margin: 0 1.5rem;
filter: drop-shadow(-3px -5px 0px #AA10D8);
}
.navbar:hover {
width: 16rem;
}
.navbar:hover .link-text {
display: block;
}
.logo {
font-weight: bold;
text-transform: uppercase;
margin-bottom: 1rem;
text-align: center;
color: #ececec;
background: #141418;
font-size: 1.5rem;
letter-spacing: 0.3ch;
width: 100%;
}
.logo img {
transform: rotate(0deg);
transition: 600ms;
}
.logo-text {
display: inline;
position: absolute;
left: -999px;
transition: 600ms;
}
.navbar:hover .logo img {
transform: rotate(-360deg);
}