-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar-flex.css
More file actions
190 lines (161 loc) · 3.54 KB
/
navbar-flex.css
File metadata and controls
190 lines (161 loc) · 3.54 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
/* cursor: url("data:image/svg+xml,%3Csvg height='6' width='6' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' fill='%23eee' r='4'/%3E%3C/svg%3E") 3 3, auto; */
}
@font-face {
font-family: 'DIN Pro';
font-style: normal;
font-weight: 400;
src: local('DIN Pro'), url('https://fonts.cdnfonts.com/s/18678/DINPro.woff') format('woff');
}
html{
overflow-x: hidden;
}
body{
background-color: rgb(219, 218, 218);
}
/*Pendorong semua nav*/
/*Taq untuk nav atau link */
.navbar{
margin: 100%;
height: 15vh;
margin:auto;
display: flex;
align-items:center;
padding: 0px 10px;
}
.logo{
width: 80px;
cursor: pointer;
left: 30px;
position: absolute;
}
nav{
/* flex:1 ; */
/* padding-left:60px ; */
text-align: center;
border-radius: 3px;
/* padding: 5px 10px; */
flex: 1;
font-family:'DIN Pro';
/* justify-content:center; */
}
nav ul li {
display: inline-block;
list-style: none;
margin-right:0px 25px ;
text-align: center;
/* padding-left:30px; */
border-radius: 3px;
}
nav ul li a{
text-decoration: none;
color:rgb(0, 0, 0);
border-radius: 3px;
padding: 8px 10px;
font-size: 1em;
/* disini untuk site map nya */
}
nav ul li a:hover{
color: rgb(0, 0, 0) ;
border-radius: 3px;
}
a.active,a:hover{
background: rgba(20, 82, 199, 0.705);
transition: .5s;
}
@media only screen and (max-width:700px){
nav ul{
background:linear-gradient(rgb(71, 117, 218),#1c5ce6);
position:absolute;
top:100px;
left: 0px;
z-index: 2;
display: block;
width: 100%;
}
/* nav itu untuk mengatur list link */
nav ul li{
display: block;
margin-top: 15px;
height: 10px;
margin-bottom: 25px;
}
.menu-toggle{
display: flex !important;
}
#menuList{
/* jika ada problem, proble nya ada diisini */
overflow-x: hidden;
display: block;
transition: 0.4s;
}
button.btn-nav{
display: none !important;
}
}
.menu-toggle {
flex-direction:column;
height:20px;
display: none;
position:relative;
justify-content:space-between;
}
.menu-toggle input {
position:absolute;
width:40px;
height:28px;
top:-3px;
opacity:0;
cursor:pointer;
z-index: 22;
}
/* disini tempat untuk mengatur tampilan hamburger */
.menu-toggle span {
display:block;
width:28px;
height:2.5px;
background-color:rgb(255,255,255);
border-radius:3px;
position:relative;
transition:all 1s cubic-bezier(0.9,-0.9, 0, 1.03);
transition-delay: 0.3s;
justify-content: space-between;
}
/* hamburger menu animation */
.menu-toggle span:nth-child(2) {
transform-origin:0 0;
transform:rotate(360deg);
}
.menu-toggle input:checked ~ span:nth-child(2) {
transform:rotate(45deg) translate(-1px,-1px); background-color:rgb(0, 70, 255);
}
.menu-toggle span:nth-child(4) {
transform-origin:0 0;
transform:rotate(-360deg);
}
.menu-toggle input:checked ~ span:nth-child(4) {
transform:rotate(-45deg) translate(-1px,0px); background-color:rgb(0, 70, 255);
}
.menu-toggle input:checked ~ span:nth-child(3) {
opacity:1;
transform: scale(0);
}
/* button */
button.btn-nav{
border-radius: 20px;
border: 1px solid transparent;
background-color: #2b6bff;
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
padding: 12px 45px;
text-transform: uppercase;
transition: transform 80ms ease-in;
cursor: pointer;
right: 30px;
position: absolute;
display: block;
}