This commit is contained in:
Ondrej Zara 2020-03-11 14:21:04 +01:00
parent 2d363bc706
commit f21027895c
No known key found for this signature in database
GPG key ID: B0A5751E616840C5
5 changed files with 21 additions and 17 deletions

View file

@ -9,12 +9,12 @@ body {
}
main {
flex-grow: 1;
flex: auto;
overflow: auto;
}
header, footer {
flex-shrink: 0;
flex: none;
z-index: 1;
box-shadow: var(--box-shadow);
}
@ -38,9 +38,11 @@ button {
-moz-appearance: none;
appearance: none;
.flex-row;
display: inline-flex;
flex-shrink: 0;
&:not([hidden]) { display: flex; }
flex-direction: row;
align-items: center;
flex: none;
background-color: transparent;
padding: 0;

View file

@ -1,16 +1,13 @@
cyp-song {
.item;
.info {
flex-grow: 1;
min-width: 0; // bez tohoto se odmita zmensit
.multiline {
.flex-column;
min-width: 0; // bez tohoto se odmita zmensit
/* FIXME toto je relikt z .component
.icon {
color: var(--primary);
margin-right: var(--icon-spacing);
filter: drop-shadow(var(--text-shadow));
}
*/

View file

@ -44,15 +44,20 @@
}
> .icon {
flex: none;
margin-right: var(--icon-spacing);
filter: drop-shadow(var(--text-shadow));
}
.title {
font-size: var(--font-size-large);
flex-grow: 1;
min-width: 0; // bez tohoto se odmita zmensit
min-width: 0;
.ellipsis;
}
button {
&:first-of-type { margin-left: auto; }
.icon { width: 32px; }
}
button .icon { width: 32px; }
}

File diff suppressed because one or more lines are too long

View file

@ -10,12 +10,12 @@ export default class Song extends Item {
}
connectedCallback() {
let info = html.node("div", {className:"info"}, "", this);
let block = html.node("div", {className:"multiline"}, "", this);
let lines = formatSongInfo(this.data);
info.appendChild(this._buildTitle(lines.shift()));
block.appendChild(this._buildTitle(lines.shift()));
lines.length && html.node("span", {className:"subtitle"}, lines.shift(), info);
lines.length && html.node("span", {className:"subtitle"}, lines.shift(), block);
}
}