Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
styled browser area
  • Loading branch information
shawn committed Jan 14, 2009
1 parent 9fd89cb commit a2a7385
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 46 deletions.
Binary file added public/images/bgs/browser.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/buttons/add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/buttons/clear.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion views/_current.haml
Expand Up @@ -9,4 +9,4 @@
= itunes.current_track.album
%h5== #{itunes.time_left_in_current_track} / #{itunes.current_track.time}
- else
%h3 Nothin' !
%h3.empty Nothin' !
49 changes: 15 additions & 34 deletions views/_library.haml
@@ -1,34 +1,15 @@
#library
- if params[:artist]
.album_list
.artist.clearfix
%h2= URI.unescape(params[:artist])
= link_to '« back'

%ul
- itunes.find_albums_by_artist(params[:artist]).each do |album, tracks|
%li
%h3
= album
= link_to '+ add', :do => :add_album, :album => album
%ol
- tracks.each do |track|
%li
= track.description
= link_to '+ add', :do => :add, :index => track.library_index

- else
#artist_list
%h3 Artists
%ol
- itunes.artists.each do |artist|
%li= link_to artist, :artist => artist
/ %ul.artist_list
/ %li
/ %ul.clearfix
/ - itunes.artist_letters.each do |l|
/ %li= link_to_anchor l, l
/ %li
/ %ol
/ - itunes.artists.each do |artist|
/ %li= link_to artist, :artist => artist
#library.clearfix
.headers.clearfix
%h3 Select Artist
%h3 Select Albums / Tracks
#artists
%ol
- itunes.artists.each do |artist|
%li= link_to artist, :artist => artist
#albums
- if params[:artist]
- itunes.find_albums_by_artist(params[:artist]).each do |album, tracks|
%h4= link_to album, :do => :add_album, :album => album
%ol
- tracks.each do |track|
%li= link_to track.title, :do => :add, :index => track.library_index
3 changes: 2 additions & 1 deletion views/_playlist.haml
Expand Up @@ -16,4 +16,5 @@
- i = !i
- else
%tr
%td{:colspan => '3'} Playlist is empty.
%td{:colspan => '3'}
%em Playlist is empty.
71 changes: 61 additions & 10 deletions views/stylesheet.sass
Expand Up @@ -2,7 +2,7 @@
:margin 0
:padding 0
:font-size 12px
:font-family 'lucida grande'
:font-family 'lucida grande', 'lucida sans unicode'
:font-weight normal

body
Expand Down Expand Up @@ -42,6 +42,7 @@ a
:font-size 12px
:top 4px
:right 20px

#footer
:background url(/images/bgs/footer.png) 0 0 no-repeat
:width 870px
Expand All @@ -53,6 +54,7 @@ a
:background url(/images/bgs/body.png) 0 0 repeat-y
.inner
:margin 0 36px

#control_box
:height 96px
:overflow hidden
Expand All @@ -64,8 +66,14 @@ a
:text-align center
:position relative

#current h2
:font-size 13px
#current
h2
:font-size 13px
h3.empty
:font-size 15px
:position relative
:top 12px
:opacity 0.6

#active_song
:margin 3px auto 0
Expand Down Expand Up @@ -140,7 +148,7 @@ a

#playlist
.box
:max-height 200px
:max-height 280px
:width 797px
:overflow-y scroll
:overflow-x hidden
Expand Down Expand Up @@ -200,14 +208,57 @@ a
:width 797px
:background white url(/images/bgs/library.png) left bottom repeat-x
:padding-bottom 8px
h3
:height 14.5px
:overflow hidden
:background url(/images/bgs/browser.png) left top no-repeat
:text-align center
:font-weight bold
:font-size 10px
:padding-top 1.5px
:border-bottom 1px solid #555
:width 398px
:float left

#artist_list
/:background red
#library h3:last-child, #albums
:border-left 1px solid #555

#artists, #albums
:float left
:overflow-y scroll
:overflow-x hidden
:max-height 200px
li:hover
:background #3d80df
:height 220px
:border-bottom 1px solid #7f7f7f
:width 398.5px
li
:padding 2px 5px
a
:font-size 11.3px
:display block
li, h4
&:hover
:background #3d80df
:color white

a
:color white
:background-position right bottom !important

#albums
:width 397.5px
h4, li
a
:background url(/images/buttons/add.png) right 2px no-repeat
:display block
:font-size 11.3px
h4
:padding 2px 5px
:border solid #efefef
:border-width 1px 0
&:first-child
:border-top 0
a
:font-weight bold
li
&:last-child
:padding-bottom 3px

0 comments on commit a2a7385

Please sign in to comment.