-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavbar.css
119 lines (104 loc) · 2.02 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.bg {
z-index: -2;
background-color: #fdfcee;
border-radius: 25px;
display: flex;
flex-direction: row;
height: 50px;
}
.for-navbar {
display: flex;
justify-content: center;
}
.sticky {
position: fixed;
width: 100%;
z-index: 1;
}
.navbar {
border-radius: 25px;
border-top-left-radius: 24px;
border-top-right-radius: 24px;
border: 6px solid black;
display: flex;
flex-direction: row;
justify-content: space-around;
height: 40px;
}
.for-tabs {
display: table;
}
.tabs {
display: table-cell;
vertical-align: middle;
padding: 10px;
font-family: Helvetica;
font-weight: bold;
text-align: center;
color: black;
padding-left: 48px;
padding-right: 48px;
user-select: none;
}
.tabs:hover {
cursor: pointer;
}
.active:hover {
cursor: pointer;
}
/*
new idea for the sliding part...
have the 'active' thing just be the white font
while the black with border radius be one div that
changes position to the div it is clicked to
.active {
border-radius: 20px;
background-color: black;
display: table-cell;
vertical-align: middle;
font-family: Andale Mono;
text-align: center;
color: white !important;
}
*/
.for-slider {
position: relative;
}
.slider {
border-radius: 25px;
position: absolute;
z-index: -1;
height: 50px;
width: 185px;
background-color: black;
top: 0%;
left: 0%;
transition: 0.3s ease-out;
}
.active {
display: table-cell;
vertical-align: middle;
font-family: Helvetica;
text-align: center;
color: white !important;
user-select: none;
}
/* this was added when the first tab changed
from "personal" to "intro" remove if you want to
go back to the original tab name */
#projects {
padding-left: 60px;
}
@media screen and (max-width: 550px) {
.tabs {
padding-left: 25px;
padding-right: 25px;
font-size: 14px;
}
.slider {
width: 118px;
}
#projects {
padding-left: 35px;
}
}