Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
105 lines (103 loc) · 2 KB
/
Copy pathstyle.css
File metadata and controls
105 lines (103 loc) · 2 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
104
105
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
:root {
--clr: rgb(58, 52, 52);
}
body{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--clr);
}
.navbar{
width: 400px;
height: 70px;
background: rgb(245, 238, 238);
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
margin: auto;
}
.navbar ul{
display: flex;
width: 350px;
}
.navbar ul li{
position: relative;
list-style: none;
width: 70px;
height: 70px;
z-index: 1;
}
.navbar ul li a{
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
text-align: center;
font-weight: 500;
}
.navbar ul li a img{
width: 30px;
height: 30px;
}
.navbar ul li a .icon{
position: relative;
display: block;
line-height: 75px;
font-size: 1.5em;
text-align: center;
transform: 0.5s;
}
.navbar ul li.active a .icon{
transform: translateY(-35px);
background: rgb(67 227 67);
width: 70px;
height: 70px;
border-radius: 50%;
border: 6px solid var(--clr);
}
.navbar ul li.active a .icon::before{
content: '';
position: absolute;
width: 20px;
height: 20px;
background: transparent;
top: 50%;
left: -22px;
border-top-right-radius: 20px;
box-shadow: 1px -10px 0 0 var(--clr);
}
.navbar ul li.active a .icon::after{
content: '';
position: absolute;
width: 20px;
height: 20px;
background: transparent;
top: 50%;
right: -22px;
border-top-left-radius: 20px;
box-shadow: -1px -10px 0 0 var(--clr);
}
.navbar ul li a .text{
position: absolute;
color: var(--clr);
font-weight: 400;
font-size: 0.75em;
letter-spacing: 0.05em;
transition: 0.5s;
opacity: 0;
transform: translateY(20px);
}
.navbar ul li.active a .text{
transform: translateY(10px);
opacity: 1;
}