mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
Update list styling.
This commit is contained in:
parent
187b0e0277
commit
7efe3ad366
@ -17,3 +17,25 @@
|
|||||||
float: left
|
float: left
|
||||||
padding: 0.5em 1em 0.5em 0
|
padding: 0.5em 1em 0.5em 0
|
||||||
content: counter(index,decimal-leading-zero)
|
content: counter(index,decimal-leading-zero)
|
||||||
|
|
||||||
|
.song-list
|
||||||
|
@extend .ordered-list
|
||||||
|
li
|
||||||
|
p
|
||||||
|
margin: 0
|
||||||
|
.artist
|
||||||
|
font-size: 0.8em
|
||||||
|
white-space: nowrap
|
||||||
|
overflow: hidden
|
||||||
|
text-overflow: ellipsis
|
||||||
|
.title
|
||||||
|
font-weight: bold
|
||||||
|
white-space: nowrap
|
||||||
|
overflow: hidden
|
||||||
|
text-overflow: ellipsis
|
||||||
|
.length
|
||||||
|
position: absolute
|
||||||
|
font-size: 0.75em
|
||||||
|
padding: 0.8em 0
|
||||||
|
right: 10px
|
||||||
|
top: 10px
|
||||||
|
|||||||
@ -24,8 +24,10 @@
|
|||||||
position: absolute
|
position: absolute
|
||||||
height: 100%
|
height: 100%
|
||||||
@include transition(left 0.25s ease-in-out)
|
@include transition(left 0.25s ease-in-out)
|
||||||
ol, ul
|
ul.root, ol.artists, ol.albums
|
||||||
@extend .list
|
@extend .list
|
||||||
|
ol.songs
|
||||||
|
@extend .song-list
|
||||||
div
|
div
|
||||||
position: absolute
|
position: absolute
|
||||||
width: $interface-width
|
width: $interface-width
|
||||||
|
|||||||
@ -11,38 +11,19 @@
|
|||||||
top: 8px
|
top: 8px
|
||||||
@include button
|
@include button
|
||||||
ol
|
ol
|
||||||
@extend .ordered-list
|
@extend .song-list
|
||||||
li
|
li.playing
|
||||||
&.playing
|
.title
|
||||||
.title
|
color: $highlight
|
||||||
color: $highlight
|
&:before
|
||||||
&:before
|
font-weight: bold
|
||||||
font-weight: bold
|
&:after
|
||||||
&:after
|
@extend .icon
|
||||||
@extend .icon
|
position: absolute
|
||||||
position: absolute
|
font-size: 1.25em
|
||||||
font-size: 1.25em
|
right: 10px
|
||||||
right: 10px
|
top: 10px
|
||||||
top: 10px
|
padding: 0.3em
|
||||||
padding: 0.3em
|
content: "playing"
|
||||||
content: "playing"
|
.length
|
||||||
.length
|
display: none
|
||||||
display: none
|
|
||||||
p
|
|
||||||
margin: 0
|
|
||||||
.artist
|
|
||||||
font-size: 0.8em
|
|
||||||
white-space: nowrap
|
|
||||||
overflow: hidden
|
|
||||||
text-overflow: ellipsis
|
|
||||||
.title
|
|
||||||
font-weight: bold
|
|
||||||
white-space: nowrap
|
|
||||||
overflow: hidden
|
|
||||||
text-overflow: ellipsis
|
|
||||||
.length
|
|
||||||
position: absolute
|
|
||||||
font-size: 0.75em
|
|
||||||
padding: 0.8em 0
|
|
||||||
right: 10px
|
|
||||||
top: 10px
|
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
<ol class="songs">
|
<ol class="songs">
|
||||||
<% list(items, function(song) { %>
|
<% list(items, function(song) { %>
|
||||||
<li id="<%= song.attr('id') %>">
|
<li id="<%= song.attr('id') %>">
|
||||||
<%= song.attr('title') %>
|
<p class="title"><%= song.attr('title') %></p>
|
||||||
|
<p class="artist"><%= song.attr('artist') %></p>
|
||||||
|
<p class="length"><%= formatLength(song.attr('length')) %></p>
|
||||||
</li>
|
</li>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user