Skip to content

Commit

Permalink
mobile menu icons changed to font awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
dpet committed Nov 19, 2024
1 parent e5ea636 commit 798b324
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
5 changes: 0 additions & 5 deletions src/assets/images/hamburger.svg

This file was deleted.

4 changes: 0 additions & 4 deletions src/assets/images/hamburger_close.svg

This file was deleted.

16 changes: 11 additions & 5 deletions src/assets/style/components/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@
.hamburger{
display: none;
position: absolute;
top: 12px;
top: 10px;
right: 10px;
width: 34px;

&:before{
font-size: 34px;
}

@media screen and (max-width: 1000px) {
display: inline-block;
Expand All @@ -110,9 +113,12 @@
.hamburger-close{
display: none;
position: absolute;
top: 12px;
right: 10px;
width: 34px;
top: 10px;
right: 14px;

&:before{
font-size: 34px;
}

@media screen and (max-width: 1000px) {
display: inline-block;
Expand Down
4 changes: 0 additions & 4 deletions src/assets/style/components/tab_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
font-weight: 700;
line-height: normal;
margin-bottom: 12px;

&.has-buttons{

}
}

.tab-title-group{
Expand Down
4 changes: 2 additions & 2 deletions src/components/program_window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ pub fn ProgramWindow() -> impl IntoView {
<HelpButton />

{move || if !mobile_open.get() {
view! { <img class="hamburger" src="/images/hamburger.svg" on:click=move |_| set_mobile_open.set(true) /> }
view! { <i class="fa-solid fa-bars hamburger" on:click=move |_| set_mobile_open.set(true)></i>}
} else {
view! { <img class="hamburger-close" src="/images/hamburger_close.svg" on:click=move |_| set_mobile_open.set(false) /> }
view! { <i class="fa-solid fa-xmark hamburger-close" on:click=move |_| set_mobile_open.set(false)></i> }
}}
</Toolbar>
<ProgramTab />
Expand Down

0 comments on commit 798b324

Please sign in to comment.