1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Make the logo clickable #51 (#62)

This commit is contained in:
Roni Laukkarinen 2019-10-01 13:06:19 +03:00 committed by heyarne
commit bebd674d7c
3 changed files with 1809 additions and 1430 deletions

View file

@ -60,9 +60,10 @@
[:nav.navbar.is-fixed-top.is-dark {:role "navigation", :aria-label "search and navigation"}
;; user is `nil` when we're not logged in, we can hide the extended navigation
[:div.navbar-brand
[:div.navbar-item>img {:src logo-url}]
[:div.navbar-burger.burger {:on-click toggle-navbar-active!}
(for [idx (range 3)] ^{:key (str "burger-" idx)} [:span])]]
[:div.navbar-item
[:a {:href (url-for ::routes/library)} [:img {:src logo-url}]]
[:div.navbar-burger.burger {:on-click toggle-navbar-active!}
(for [idx (range 3)] ^{:key (str "burger-" idx)} [:span])]]]
(when user
[(if @navbar-active? :div.navbar-menu.is-active :div.navbar-menu)
[:div.navbar-start

View file

@ -354,3 +354,8 @@ tr.sortable-is-moving.is-playing
a, strong, td.song-duration, td.sort-handle span
color: currentColor
// Navigation fixes
.navbar-brand > .navbar-item > a
display: flex
align-items: center