This commit is contained in:
Ondrej Zara 2019-04-15 09:48:27 +02:00
parent 8331a0d3a3
commit 279b5bc973
4 changed files with 43 additions and 39 deletions

View file

@ -121,6 +121,7 @@ nav ul li .icon {
nav ul li.active { nav ul li.active {
border-top-color: var(--primary); border-top-color: var(--primary);
color: var(--primary); color: var(--primary);
background-color: rgb(var(--primary-raw), 0.1);
} }
@media (max-width: 480px) { @media (max-width: 480px) {
nav ul li { nav ul li {
@ -147,6 +148,10 @@ nav ul li.active {
#player:not([data-flags~=repeat]) .repeat { #player:not([data-flags~=repeat]) .repeat {
opacity: 0.5; opacity: 0.5;
} }
#player [type=range] {
margin: 0;
min-width: 0;
}
#player .art { #player .art {
margin-right: 0; margin-right: 0;
height: 96px; height: 96px;
@ -155,10 +160,6 @@ nav ul li.active {
#player .art .icon { #player .art .icon {
width: 96px; width: 96px;
} }
#player h2 {
font-size: 125%;
margin: 0;
}
#player .info { #player .info {
flex-grow: 1; flex-grow: 1;
padding-left: var(--icon-spacing); padding-left: var(--icon-spacing);
@ -167,16 +168,16 @@ nav ul li.active {
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
} }
#player .title, #player .info h2 {
#player .subtitle { font-size: 125%;
margin: 0;
}
#player .info .title,
#player .info .subtitle {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
#player [type=range] {
margin: 0;
min-width: 0;
}
#player .timeline { #player .timeline {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -202,11 +203,11 @@ nav ul li.active {
justify-content: space-around; justify-content: space-around;
} }
#player .controls .playback .icon { #player .controls .playback .icon {
width: 32px; width: 40px;
} }
#player .controls .playback .icon-play, #player .controls .playback .icon-play,
#player .controls .playback .icon-pause { #player .controls .playback .icon-pause {
width: 48px; width: 64px;
} }
#player .controls .volume { #player .controls .volume {
display: flex; display: flex;
@ -746,6 +747,7 @@ nav ul li.active {
:root { :root {
--font-size-large: 112.5%; --font-size-large: 112.5%;
--icon-spacing: 4px; --icon-spacing: 4px;
--primary: rgb(var(--primary-raw));
} }
:root[data-theme=light] { :root[data-theme=light] {
--fg: #333; --fg: #333;
@ -760,11 +762,11 @@ nav ul li.active {
--shadow: 0 1px 1px rgba(0, 0, 0, 0.8); --shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
} }
:root[data-color=dodgerblue] { :root[data-color=dodgerblue] {
--primary: dodgerblue; --primary-raw: 30, 144, 255;
} }
:root[data-color=darkorange] { :root[data-color=darkorange] {
--primary: darkorange; --primary-raw: 255, 140, 0;
} }
:root[data-color=limegreen] { :root[data-color=limegreen] {
--primary: limegreen; --primary-raw: 50, 205, 50;
} }

View file

@ -22,6 +22,7 @@ nav ul {
&.active { &.active {
border-top-color: var(--primary); border-top-color: var(--primary);
color: var(--primary); color: var(--primary);
background-color: rgb(var(--primary-raw), 0.1);
} }
@media (max-width: 480px) { @media (max-width: 480px) {

View file

@ -1,4 +1,5 @@
#player { #player {
@art-size: 96px;
.flex-row; .flex-row;
align-items: stretch; align-items: stretch;
@ -6,18 +7,17 @@
&[data-state=play] .play { display: none; } &[data-state=play] .play { display: none; }
&:not([data-flags~=random]) .random, &:not([data-flags~=repeat]) .repeat { opacity: 0.5; } &:not([data-flags~=random]) .random, &:not([data-flags~=repeat]) .repeat { opacity: 0.5; }
.art { [type=range] {
margin-right: 0; margin: 0;
@size: 96px; min-width: 0; // fails to shrink otherwise
height: @size;
img, .icon {
width: @size;
}
} }
h2 { .art {
font-size: 125%; margin-right: 0;
margin: 0; height: @art-size;
img, .icon {
width: @art-size;
}
} }
.info { .info {
@ -27,15 +27,15 @@
overflow: hidden; overflow: hidden;
.flex-column; .flex-column;
justify-content: space-around; justify-content: space-around;
h2 {
font-size: 125%;
margin: 0;
}
.title, .subtitle { .long-line; }
} }
.title, .subtitle { .long-line; }
[type=range] {
margin: 0;
min-width: 0; // fails to shrink otherwise
}
.timeline { .timeline {
.flex-row; .flex-row;
@ -58,11 +58,11 @@
justify-content: space-around; justify-content: space-around;
.icon { .icon {
width: 32px; width: 40px;
} }
.icon-play, .icon-pause { .icon-play, .icon-pause {
width: 48px; width: 64px;
} }
} }
@ -93,7 +93,7 @@
.info { .info {
order: 1; order: 1;
height: 96px; height: @art-size;
} }
} }
} }

View file

@ -1,6 +1,7 @@
:root { :root {
--font-size-large: 112.5%; --font-size-large: 112.5%;
--icon-spacing: 4px; --icon-spacing: 4px;
--primary: rgb(var(--primary-raw));
} }
:root[data-theme=light] { :root[data-theme=light] {
@ -18,13 +19,13 @@
} }
:root[data-color=dodgerblue] { :root[data-color=dodgerblue] {
--primary: dodgerblue; --primary-raw: 30, 144, 255;
} }
:root[data-color=darkorange] { :root[data-color=darkorange] {
--primary: darkorange; --primary-raw: 255, 140, 0;
} }
:root[data-color=limegreen] { :root[data-color=limegreen] {
--primary: limegreen; --primary-raw: 50, 205, 50;
} }