diff --git a/app/app.css b/app/app.css index 1deaf11..8ddb565 100644 --- a/app/app.css +++ b/app/app.css @@ -38,6 +38,7 @@ button { border: none; line-height: 1; cursor: pointer; + flex-shrink: 0; } @font-face { font-family: 'Lato'; @@ -71,6 +72,9 @@ nav ul { display: flex; flex-direction: row; } +nav ul .icon { + margin-right: 4px; +} nav ul li { text-align: center; flex: 1 0 0; @@ -85,15 +89,7 @@ nav ul li.active { #player { display: flex; flex-direction: row; -} -#player .art img { - vertical-align: top; -} -#player .info { - flex-grow: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + align-items: center; } #player:not([data-state=play]) .pause { display: none; @@ -105,7 +101,20 @@ nav ul li.active { #player:not([data-flags~=repeat]) .repeat { opacity: 0.5; } -#player .icon { +#player .art img { + vertical-align: top; +} +#player .info { + flex-grow: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +#player .controls { + white-space: nowrap; + text-align: center; +} +#player .controls .icon { width: 64px; } #player .misc { @@ -135,7 +144,7 @@ nav ul li.active { padding: 0 4px; white-space: nowrap; } -.component .grid li h2 { +.component .grid h2 { flex-grow: 1; font-size: 100%; font-weight: normal; @@ -143,17 +152,17 @@ nav ul li.active { overflow: hidden; text-overflow: ellipsis; } -.component .grid li button { - flex-shrink: 0; -} -@media (pointer: coarse) { - .component .grid li button .icon { - width: 32px; - } +.component .grid h2 .icon { + margin-right: 4px; } .component .grid li:nth-child(odd) { background-color: #555; } +@media (pointer: coarse) { + .component .grid .icon { + width: 32px; + } +} #queue { height: 100%; display: flex; @@ -173,7 +182,7 @@ nav ul li.active { padding: 0 4px; white-space: nowrap; } -#queue .grid li h2 { +#queue .grid h2 { flex-grow: 1; font-size: 100%; font-weight: normal; @@ -181,19 +190,19 @@ nav ul li.active { overflow: hidden; text-overflow: ellipsis; } -#queue .grid li button { - flex-shrink: 0; -} -@media (pointer: coarse) { - #queue .grid li button .icon { - width: 32px; - } +#queue .grid h2 .icon { + margin-right: 4px; } #queue .grid li:nth-child(odd) { background-color: #555; } -#queue .current { - font-weight: bold; +@media (pointer: coarse) { + #queue .grid .icon { + width: 32px; + } +} +#queue .current * { + font-weight: bold !important; } #library { height: 100%; @@ -214,7 +223,7 @@ nav ul li.active { padding: 0 4px; white-space: nowrap; } -#library .grid li h2 { +#library .grid h2 { flex-grow: 1; font-size: 100%; font-weight: normal; @@ -222,17 +231,17 @@ nav ul li.active { overflow: hidden; text-overflow: ellipsis; } -#library .grid li button { - flex-shrink: 0; -} -@media (pointer: coarse) { - #library .grid li button .icon { - width: 32px; - } +#library .grid h2 .icon { + margin-right: 4px; } #library .grid li:nth-child(odd) { background-color: #555; } +@media (pointer: coarse) { + #library .grid .icon { + width: 32px; + } +} #fs { height: 100%; display: flex; @@ -252,7 +261,7 @@ nav ul li.active { padding: 0 4px; white-space: nowrap; } -#fs .grid li h2 { +#fs .grid h2 { flex-grow: 1; font-size: 100%; font-weight: normal; @@ -260,17 +269,17 @@ nav ul li.active { overflow: hidden; text-overflow: ellipsis; } -#fs .grid li button { - flex-shrink: 0; -} -@media (pointer: coarse) { - #fs .grid li button .icon { - width: 32px; - } +#fs .grid h2 .icon { + margin-right: 4px; } #fs .grid li:nth-child(odd) { background-color: #555; } +@media (pointer: coarse) { + #fs .grid .icon { + width: 32px; + } +} #playlists { height: 100%; display: flex; @@ -290,7 +299,7 @@ nav ul li.active { padding: 0 4px; white-space: nowrap; } -#playlists .grid li h2 { +#playlists .grid h2 { flex-grow: 1; font-size: 100%; font-weight: normal; @@ -298,14 +307,14 @@ nav ul li.active { overflow: hidden; text-overflow: ellipsis; } -#playlists .grid li button { - flex-shrink: 0; -} -@media (pointer: coarse) { - #playlists .grid li button .icon { - width: 32px; - } +#playlists .grid h2 .icon { + margin-right: 4px; } #playlists .grid li:nth-child(odd) { background-color: #555; } +@media (pointer: coarse) { + #playlists .grid .icon { + width: 32px; + } +} diff --git a/app/css/app.less b/app/css/app.less index 1f3eb26..8ad08f5 100644 --- a/app/css/app.less +++ b/app/css/app.less @@ -37,9 +37,9 @@ button { border: none; line-height: 1; cursor: pointer; + flex-shrink: 0; } - @import "font.less"; @import "icons.less"; @import "main.less"; diff --git a/app/css/component.less b/app/css/component.less index 523a60b..f5f99fd 100644 --- a/app/css/component.less +++ b/app/css/component.less @@ -18,27 +18,25 @@ align-items: center; padding: 0 4px; white-space: nowrap; + } - h2 { - flex-grow: 1; - font-size: 100%; - font-weight: normal; - margin: 0; - overflow: hidden; - text-overflow: ellipsis; - } + h2 { + flex-grow: 1; + font-size: 100%; + font-weight: normal; + margin: 0; + overflow: hidden; + text-overflow: ellipsis; - button { - flex-shrink: 0; - - @media (pointer: coarse) { - .icon { width: 32px; } - } - } + .icon { margin-right: 4px; } } li:nth-child(odd) { background-color: #555; } + + @media (pointer: coarse) { + .icon { width: 32px; } + } } } diff --git a/app/css/nav.less b/app/css/nav.less index 41c289c..920a488 100644 --- a/app/css/nav.less +++ b/app/css/nav.less @@ -5,6 +5,10 @@ nav ul { display: flex; flex-direction: row; + .icon { + margin-right: 4px; + } + li { text-align: center; flex: 1 0 0; diff --git a/app/css/player.less b/app/css/player.less index da1d729..6efee57 100644 --- a/app/css/player.less +++ b/app/css/player.less @@ -1,8 +1,14 @@ #player { display: flex; flex-direction: row; + align-items: center; + + &:not([data-state=play]) .pause { display: none; } + &[data-state=play] .play { display: none; } + &:not([data-flags~=random]) .random, &:not([data-flags~=repeat]) .repeat { opacity: 0.5; } .art img { vertical-align: top; } + .info { flex-grow: 1; white-space: nowrap; @@ -10,12 +16,10 @@ text-overflow: ellipsis; } - &:not([data-state=play]) .pause { display: none; } - &[data-state=play] .play { display: none; } - &:not([data-flags~=random]) .random, &:not([data-flags~=repeat]) .repeat { opacity: 0.5; } - - .icon { - width: 64px; + .controls { + white-space: nowrap; + text-align: center; + .icon { width: 64px; } } .misc { diff --git a/app/css/queue.less b/app/css/queue.less index ed581a4..f168575 100644 --- a/app/css/queue.less +++ b/app/css/queue.less @@ -1,5 +1,4 @@ #queue { .component; - - .current { font-weight: bold; } + .current * { font-weight: bold !important; } } diff --git a/app/icons/download.svg b/app/icons/download.svg new file mode 100644 index 0000000..67c9440 --- /dev/null +++ b/app/icons/download.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/icons/folder.svg b/app/icons/folder.svg new file mode 100644 index 0000000..250600d --- /dev/null +++ b/app/icons/folder.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/icons/library-music.svg b/app/icons/library-music.svg new file mode 100644 index 0000000..3bb1055 --- /dev/null +++ b/app/icons/library-music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/icons/music.svg b/app/icons/music.svg new file mode 100644 index 0000000..36d700f --- /dev/null +++ b/app/icons/music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/index.html b/app/index.html index 2ab716a..c74906f 100644 --- a/app/index.html +++ b/app/index.html @@ -14,22 +14,26 @@
- / - - - - +