mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
Use loading indicator provided by bulma
This commit is contained in:
parent
a8646aef6b
commit
058b8377a8
3 changed files with 7 additions and 24 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
(ns airsonic-ui.views.breadcrumbs
|
(ns airsonic-ui.views.breadcrumbs
|
||||||
(:require [re-frame.core :refer [subscribe]]
|
(:require [re-frame.core :refer [subscribe]]
|
||||||
[airsonic-ui.routes :as routes :refer [url-for]]
|
[airsonic-ui.routes :as routes :refer [url-for]]))
|
||||||
[airsonic-ui.views.loading-spinner :refer [loading-spinner]]))
|
|
||||||
|
|
||||||
;; Breadcrumbs are implemented in such a way that they provide a stringent
|
;; Breadcrumbs are implemented in such a way that they provide a stringent
|
||||||
;; hierarchy no matter how you came to the url. They should allow easy
|
;; hierarchy no matter how you came to the url. They should allow easy
|
||||||
|
|
@ -15,7 +14,7 @@
|
||||||
(for [[idx [href label]] (map-indexed vector (butlast items))]
|
(for [[idx [href label]] (map-indexed vector (butlast items))]
|
||||||
[:li {:key idx} [:a {:href href} label]])
|
[:li {:key idx} [:a {:href href} label]])
|
||||||
[:li.is-active>a (last items)
|
[:li.is-active>a (last items)
|
||||||
(when content-pending? [loading-spinner])]]]]))
|
(when content-pending? [:span.loader])]]]]))
|
||||||
|
|
||||||
(defmulti breadcrumbs
|
(defmulti breadcrumbs
|
||||||
(fn dispatch-on [[route-id] content] route-id))
|
(fn dispatch-on [[route-id] content] route-id))
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
(ns airsonic-ui.views.loading-spinner
|
|
||||||
(:require [airsonic-ui.views.icon :refer [icon]]))
|
|
||||||
|
|
||||||
(defn loading-spinner []
|
|
||||||
[:span.loading-spinner [icon :reload]])
|
|
||||||
|
|
@ -17,6 +17,11 @@
|
||||||
.loader
|
.loader
|
||||||
+loader
|
+loader
|
||||||
|
|
||||||
|
// small loading indicator at top of content
|
||||||
|
.breadcrumb
|
||||||
|
.loader
|
||||||
|
margin-left: .5em
|
||||||
|
|
||||||
// bottom bar
|
// bottom bar
|
||||||
.has-navbar-fixed-bottom
|
.has-navbar-fixed-bottom
|
||||||
padding-bottom: 64px
|
padding-bottom: 64px
|
||||||
|
|
@ -189,7 +194,6 @@
|
||||||
.media-content
|
.media-content
|
||||||
align-self: center
|
align-self: center
|
||||||
|
|
||||||
|
|
||||||
// floating notifications
|
// floating notifications
|
||||||
.notifications:not(:empty)
|
.notifications:not(:empty)
|
||||||
@extend .container
|
@extend .container
|
||||||
|
|
@ -199,21 +203,6 @@
|
||||||
right: 0
|
right: 0
|
||||||
padding-top: 3.2rem
|
padding-top: 3.2rem
|
||||||
|
|
||||||
// loading indicator
|
|
||||||
@keyframes you-spin-my-head-right-round
|
|
||||||
from
|
|
||||||
transform: rotate(0deg)
|
|
||||||
transform-origin: 50% 46%
|
|
||||||
|
|
||||||
to
|
|
||||||
transform: rotate(359deg)
|
|
||||||
transform-origin: 50% 46%
|
|
||||||
|
|
||||||
.loading-spinner
|
|
||||||
.icon
|
|
||||||
animation: 1s infinite you-spin-my-head-right-round
|
|
||||||
|
|
||||||
|
|
||||||
// route specific styling
|
// route specific styling
|
||||||
.search
|
.search
|
||||||
.content .section
|
.content .section
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue