Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
<!-- Responsive toggle -->
<div class="navbar-burger" @click="openMobileMenu()">
<div class="menu-toggle">
<span
<div
class="icon-box-toggle"
:class="{
'active': mobileOpen,
'': !mobileOpen
}"
>
<span class="rotate">
<div class="rotate">
<i class="icon-line-top"></i>
<i class="icon-line-center"></i>
<i class="icon-line-bottom"></i>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/NavbarClone.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
<!-- Responsive toggle -->
<div class="navbar-burger" @click="openMobileMenu()">
<div class="menu-toggle">
<span
<div
class="icon-box-toggle"
:class="{
'active': mobileOpen,
'': !mobileOpen
}"
>
<span class="rotate">
<div class="rotate">
<i class="icon-line-top"></i>
<i class="icon-line-center"></i>
<i class="icon-line-bottom"></i>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
Expand Down
15 changes: 3 additions & 12 deletions src/styles/components/_hamburger.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,14 @@ Hamburger menu icon
width: 30px;
height: 30px;

&.active > span.rotate {
/*transform*/
-webkit-transform: rotate(90deg);
-moz-transform: translate(0px, 0px) rotate(90deg);
-ms-transform: translate(0px, 0px) rotate(90deg);
-o-transform: translate(0px, 0px) rotate(90deg);
transform: translate(0px, 0px) rotate(90deg);
}

&.active > span > i.icon-line-center {
&.active > div > i.icon-line-center {
visibility: hidden;
width: 1px;
height: 3px;
left: 70%;
}

&.active > span > i.icon-line-bottom {
&.active > div > i.icon-line-bottom {
margin: -2px 0 0 -10px;
left: 50%;
top: 12px;
Expand All @@ -58,7 +49,7 @@ Hamburger menu icon
transform: translate(0px, 0px) rotate(135deg);
}

&.active > span > i.icon-line-top {
&.active > div > i.icon-line-top {
margin: -2px 0 0 -10px;
left: 50%;
top: 12px;
Expand Down