Polishing
This commit is contained in:
parent
f8992fc24b
commit
94fce03750
8 changed files with 48 additions and 19 deletions
|
@ -25,6 +25,9 @@ html
|
|||
script(defer src="/static/player-marker.js")
|
||||
meta(name="htmx-config" content='{"requestClass":"is-loading"}')
|
||||
style.
|
||||
.ws340 {
|
||||
width: 340px;
|
||||
}
|
||||
.themed {
|
||||
--theme-base-primary-color-h: 191;
|
||||
--theme-base-primary-color-s: 37%;
|
||||
|
@ -61,6 +64,28 @@ html
|
|||
.album-grid-link {
|
||||
--_li-fc: var(--black);
|
||||
--_li-fc-visited: var(--black-400);
|
||||
display: block;
|
||||
}
|
||||
.album-grid-link__play {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
color: #000;
|
||||
opacity: 0;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
transition: 1s ease-out;
|
||||
}
|
||||
.album-grid-link img {
|
||||
transition: 1s ease-out;
|
||||
}
|
||||
.album-grid-link:hover img {
|
||||
transition: 2s ease-out 0.7s;
|
||||
opacity: 0.3;
|
||||
}
|
||||
.album-grid-link:hover .album-grid-link__play {
|
||||
transition: 2s ease-out 0.7s;
|
||||
opacity: 1;
|
||||
}
|
||||
.wc-hl {
|
||||
cursor: pointer;
|
||||
|
@ -71,7 +96,7 @@ html
|
|||
flex-shrink: 0;
|
||||
}
|
||||
body.themed.theme-system.overflow-y-scroll(hx-boost="true" hx-swap="outerHTML" hx-target="#page" hx-select="#page")
|
||||
#page
|
||||
#page(hx-history-elt)
|
||||
header.s-topbar.ps-sticky.t0
|
||||
.s-topbar--container.wmx9
|
||||
.s-topbar--logo
|
||||
|
@ -97,8 +122,8 @@ html
|
|||
main.fl-grow1
|
||||
block view
|
||||
|
||||
aside.ws3
|
||||
.ps-sticky.d-flex.fd-column.g12(style="top: 80px")
|
||||
aside.ws340
|
||||
.ps-fixed.ws340.d-flex.fd-column.g12(style="top: 80px")
|
||||
if arrange === "tag"
|
||||
include tag-status.pug
|
||||
|
||||
|
@ -120,7 +145,7 @@ html
|
|||
input(type="hidden" name="shape" value=shape)
|
||||
button.s-btn.s-btn__xs.s-btn__icon.s-btn__outlined.s-btn__muted#search-submit(style="height: 38px")!= icons.get("search")
|
||||
|
||||
#player-marker.pe-none.myn6
|
||||
#player-marker.pe-none(style="display: none")
|
||||
|
||||
.s-sidebarwidget
|
||||
.s-sidebarwidget--header Collection
|
||||
|
@ -177,5 +202,5 @@ html
|
|||
.s-progress--bar.bg-orange-400(title=`${count.taste[2]} labels with 200-1999 fans`)= count.taste[2]
|
||||
.s-progress--bar.bg-red-400(title=`${count.taste[3]} labels with >2000 fans`)= count.taste[3]
|
||||
|
||||
#player-container.ps-fixed.r16.ws3(hx-preserve="true")
|
||||
#player-container.ps-fixed.r16.ws340(hx-preserve="true")
|
||||
#player
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
if downloader.total > 0 || downloader.outcome
|
||||
#tag-download
|
||||
if !downloader.running && !downloader.outcome
|
||||
form.s-notice.s-notice__info.d-flex.ai-center.p8.gx16.pl16(role="status" hx-target="#tag-download" hx-post="/api/tag-download")
|
||||
form.s-notice.s-notice__info.d-flex.ai-center.p8.gx16.pl16(role="status" hx-target="#tag-download" hx-select="#tag-download" hx-post="/api/tag-download")
|
||||
!= icons.get("info-circle")
|
||||
div Tag data needs to be downloaded. This will take a while.
|
||||
input(type="hidden" name="account" value=account)
|
||||
button.s-btn.s-btn__outlined Download now
|
||||
|
||||
else if !downloader.outcome
|
||||
.s-notice.p16(role="status" hx-target="#tag-download" hx-get=`/api/tag-download?account=${account}` hx-trigger="every 5s" hx-indicator="null")
|
||||
.s-notice.p16(role="status" hx-target="#tag-download" hx-select="#tag-download" hx-get=`/api/tag-download?account=${account}` hx-trigger="every 5s" hx-indicator="null")
|
||||
.d-flex.gx16.ai-center
|
||||
!= icons.get("cloud-download")
|
||||
.fl-grow1 Downloading tags...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue