Skip to content

Commit f32387f

Browse files
committed
editing hamburger animation 2
1 parent df60d87 commit f32387f

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

_includes/navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- <nav class="navbar navbar-expand-lg navbar-dark"> -->
2-
<section id="header">
2+
<section id="header" class=" p-4 mb-4">
33
<div class="header container">
44
<div class="nav-bar">
5-
<div class="d-flex d-none d-sm-block d-md-block d-lg-none">
5+
<div class="d-flex mx-auto">
66
<div class="brand">
77
<a class="" href="/"><img src="/assets/img/logo/logo.png" style="height: 70px; width: 70px; background-color: white;" class="mr-3">Py Contributors</a>
88
</div>

assets/css/main.css

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,12 @@ background-attachment: fixed !important;
163163
/* Chnages*/
164164

165165
#header {
166-
position: fixed;
167166
z-index: 1000;
168167
left: 0;
169168
top: 0;
170169
width: 100vw;
171170
height: auto;
172171
}
173-
#header .header {
174-
min-height: 8vh;
175-
background-color: rgba(31, 30, 30, 0.24);
176-
transition: .3s ease background-color;
177-
}
178172

179173
#header .nav-bar {
180174
display: flex;
@@ -234,20 +228,24 @@ background-attachment: fixed !important;
234228
color: crimson;
235229
}
236230
.hamburger {
237-
z-index: 1;
231+
z-index: 100;
238232
display: inline-block;
239233
cursor: pointer;
240234
position: absolute;
241-
right: 10px;
235+
right: 10%;
242236
top: 10px;
237+
border: 5px solid white;
238+
padding: 10px;
239+
border-radius: 50%;
240+
transform: scale(.8);
243241
}
244242

245243
.line1 ,.line2 ,.line3 {
246244
width: 35px;
247245
height: 5px;
248246
background-color: white;
249247
margin: 6px 0;
250-
transition: 0.4s;
248+
transition: 0.5s;
251249
}
252250

253251
.cross .line1 {

0 commit comments

Comments
 (0)