From b5c43bdbf79d29e7e03374625a2654600bd323ae Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 May 2013 15:34:25 -0400 Subject: [PATCH] display progress bars to show resume % --- dashboard-ui/css/librarybrowser.css | 371 +++---------------- dashboard-ui/css/tileitem.css | 334 +++++++++++++++++ dashboard-ui/itembynamedetails.html | 6 +- dashboard-ui/itemdetails.html | 2 +- dashboard-ui/scripts/boxsets.js | 2 +- dashboard-ui/scripts/gamegenrepage.js | 2 +- dashboard-ui/scripts/gamespage.js | 2 +- dashboard-ui/scripts/gamestudiospage.js | 2 +- dashboard-ui/scripts/gamesystemspage.js | 2 +- dashboard-ui/scripts/itembynamedetailpage.js | 2 +- dashboard-ui/scripts/itemlistpage.js | 2 +- dashboard-ui/scripts/librarybrowser.js | 12 +- dashboard-ui/scripts/moviegenres.js | 2 +- dashboard-ui/scripts/moviepeople.js | 2 +- dashboard-ui/scripts/movies.js | 2 +- dashboard-ui/scripts/moviestudios.js | 2 +- dashboard-ui/scripts/movietrailers.js | 2 +- dashboard-ui/scripts/musicalbums.js | 2 +- dashboard-ui/scripts/musicartists.js | 2 +- dashboard-ui/scripts/musicgenres.js | 2 +- dashboard-ui/scripts/tvgenres.js | 2 +- dashboard-ui/scripts/tvpeople.js | 4 +- dashboard-ui/scripts/tvshows.js | 2 +- dashboard-ui/scripts/tvstudios.js | 2 +- dashboard-ui/tvgenres.html | 2 +- dashboard-ui/tvnextup.html | 2 +- dashboard-ui/tvpeople.html | 2 +- dashboard-ui/tvrecommended.html | 2 +- dashboard-ui/tvshows.html | 2 +- dashboard-ui/tvstudios.html | 2 +- 30 files changed, 419 insertions(+), 358 deletions(-) create mode 100644 dashboard-ui/css/tileitem.css diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index fc60398cd0..7c4342b712 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -189,99 +189,6 @@ font-weight: bold; } -.tileItem { - background: #333; - padding: 10px 7px 5px; - margin: 3px 0; - text-shadow: none; - font-weight: normal!important; - display: block; - font-size: 14px; - position: relative; -} - - - .tileItem .itemProgress { - font-size: 14px; - } - - .tileItem .starRating { - width: 15px; - height: 13px; - } - -.tileImage { - display: inline-block; - background-size: contain; - background-repeat: no-repeat; - background-position: center top; -} - -.defaultTileImage { - background-color: #999; -} - -.tileItem p { - margin: .35em 0 0; -} - -.tileItem .imgUserItemRating { - height: 18px; - width: 18px; -} - -.tileContent { - display: inline-block; - padding-left: 10px; - color: #fff; - text-align: left; - vertical-align: top; - overflow: hidden; -} - -.backdropTileItem .tileImage { - height: 90px; - width: 45%; -} - -.backdropTileItem .tileContent { - width: 50%; -} - -.posterTileItem .tileImage { - height: 120px; - width: 30%; -} - -.posterTileItem .tileContent { - width: 65%; -} - -.squareTileItem .tileImage { - height: 100px; - width: 35%; -} - -.squareTileItem .tileContent { - width: 60%; -} - -.tileName { - font-weight: bold; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} - - .tileName + .tileName { - margin-top: .75em; - } - -.tileItem .userDataIcons img { - height: 14px; - width: 14px; -} - .detailPagePrimaryInfo { margin: 1em 0; } @@ -301,257 +208,77 @@ } } -@media all and (min-width: 750px) { - .tileItem { - width: 46%; - display: inline-block; - margin-left: 3px; - margin-right: 3px; - } - - .backdropTileItem .tileImage { - height: 88px; - } - - .posterTileItem .tileImage { - height: 120px; - } - - .squareTileItem .tileImage { - height: 115px; - } -} - -@media all and (min-width: 850px) { - - .backdropTileItem .tileImage { - height: 105px; - } - - .posterTileItem .tileImage { - height: 120px; - } - - .posterTileItem { - width: 31%; - } - - .tileItem .userDataIcons img { - height: 18px; - width: 18px; - } - - .tileItem p { - margin: .75em 0 0; - } - - .tileItem .itemProgress { - font-size: 17px; - } -} - -@media all and (min-width: 1000px) { - .tileItem { - width: 47.5%; - } - - .posterTileItem { - width: 31%; - } - - .backdropTileItem .tileImage { - height: 110px; - } - - .posterTileItem .tileImage { - height: 136px; - } - - .squareTileItem { - width: 31%; - } - - .squareTileItem .tileImage { - height: 105px; - } +.itemsContainer { + text-align: center; } @media all and (min-width: 1200px) { - .backdropTileItem .tileImage { - height: 100px; - } - - .posterTileItem .tileImage { - height: 160px; - } - - .tileItem { - width: 31.5%; - } - - .squareTileItem .tileImage { - height: 130px; - } .scenePosterViewItem img { max-width: 200px!important; } } -@media all and (min-width: 1440px) { - .backdropTileItem .tileImage { - height: 110px; - } - - .posterTileItem .tileImage { - height: 150px; - } - - .tileItem { - width: 31.5%; - } - - .squareTileItem .tileImage { - height: 155px; - } - - .posterTileItem { - width: 23.5%; - } +/* All HTML5 progress enabled browsers */ +.itemProgressBar { + /* Turns off styling - not usually needed, but good to know. */ + appearance: none; + -moz-appearance: none; + -webkit-appearance: none; + /* gets rid of default border in Firefox and Opera. */ + border: 0; + margin: 0; + height: 12px; } -@media all and (min-width: 1700px) { - - .backdropTileItem .tileImage { - height: 132px; + /* Polyfill */ + .itemProgressBar[role]:after { + background-image: none; /* removes default background from polyfill */ } - .posterTileItem .tileImage { - height: 170px; - } +/* + * Background of the progress bar background + */ - .tileItem { - width: 32%; - } - - .posterTileItem { - width: 23.5%; - } - - .squareTileItem { - width: 23.5%; - } - - .squareTileItem .tileImage { - height: 140px; - } +/* Firefox and Polyfill */ +.itemProgressBar { + background: #050505 !important; /* !important only needed in polyfill */ } - -@media all and (min-width: 1920px) { - .tileItem { - width: 31.5%; + /* Chrome */ + .itemProgressBar::-webkit-progress-bar { + background: #050505; } - .tileImage { - height: 155px; + /* + * Background of the progress bar value + */ + + /* Firefox */ + .itemProgressBar::-moz-progress-bar { + border-radius: 0; + background-image: none; + background-color: #A92D2D; } - .posterTileItem { - width: 18.8%; + /* Chrome */ + .itemProgressBar::-webkit-progress-value { + border-radius: 0; + background-image: none; + background-color: #A92D2D; } - .posterTileItem .tileImage { - height: 160px; - } - - .squareTileItem { - width: 18.8%; + /* Polyfill */ + .itemProgressBar[aria-valuenow]:before { + border-radius: 0; + background-image: none; + background-color: #A92D2D; } - .squareTileItem .tileImage { - height: 120px; - } -} - -@media all and (min-width: 2000px) { - .tileItem { - width: 23.5%; - } - - .tileImage { - height: 117px; - } - - .posterTileItem { - width: 18.8%; - } - - .posterTileItem .tileImage { - height: 160px; - } - - .squareTileItem { - width: 18.8%; - } - - .squareTileItem .tileImage { - height: 130px; - } -} - -@media all and (min-width: 2200px) { - .tileItem { - width: 24%; - } - - .tileImage { - height: 145px; - } - - .posterTileItem { - width: 18.8%; - } - - .posterTileItem .tileImage { - height: 185px; - } - - .squareTileItem { - width: 18.8%; - } - - .squareTileItem .tileImage { - height: 140px; - } -} - -@media all and (min-width: 2540px) { - .tileItem { - width: 18.75%; - } - - .tileImage { - height: 120px; - } - - .posterTileItem { - width: 15.8%; - } - - .posterTileItem .tileImage { - height: 180px; - } - - .squareTileItem { - width: 15.8%; - } - - .squareTileItem .tileImage { - height: 140px; - } -} - -.itemsContainer { - text-align: center; +.userDataIcons .itemProgressBar { + vertical-align: top; + position: relative; + top: 4px; + margin-right: 1em; + width: 40px; } diff --git a/dashboard-ui/css/tileitem.css b/dashboard-ui/css/tileitem.css new file mode 100644 index 0000000000..c00673b6cd --- /dev/null +++ b/dashboard-ui/css/tileitem.css @@ -0,0 +1,334 @@ +.tileItem { + background: #333; + padding: 10px 7px 5px; + margin: 3px 0; + text-shadow: none; + font-weight: normal!important; + display: block; + font-size: 14px; + position: relative; +} + + + .tileItem .itemProgress { + font-size: 14px; + } + + .tileItem .starRating { + width: 15px; + height: 13px; + } + +.tileImage { + display: inline-block; + background-size: contain; + background-repeat: no-repeat; + background-position: center top; +} + +.defaultTileImage { + background-color: #999; +} + +.tileItem p { + margin: .5em 0 0; +} + +.tileItem .imgUserItemRating { + height: 18px; + width: 18px; +} + +.tileContent { + display: inline-block; + padding-left: 10px; + color: #fff; + text-align: left; + vertical-align: top; + overflow: hidden; +} + +.backdropTileItem .tileImage { + height: 90px; + width: 45%; +} + +.backdropTileItem .tileContent { + width: 50%; +} + +.posterTileItem .tileImage { + height: 120px; + width: 30%; +} + +.posterTileItem .tileContent { + width: 65%; +} + +.squareTileItem .tileImage { + height: 100px; + width: 35%; +} + +.squareTileItem .tileContent { + width: 60%; +} + +.tileName { + font-weight: bold; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + + .tileName + .tileName { + margin-top: .75em; + } + +.tileItem .userDataIcons img { + height: 18px; + width: 18px; +} + +@media all and (min-width: 750px) { + .tileItem { + width: 46%; + display: inline-block; + margin-left: 3px; + margin-right: 3px; + } + + .backdropTileItem .tileImage { + height: 88px; + } + + .posterTileItem .tileImage { + height: 120px; + } + + .squareTileItem .tileImage { + height: 115px; + } +} + +@media all and (min-width: 850px) { + + .backdropTileItem .tileImage { + height: 105px; + } + + .posterTileItem .tileImage { + height: 120px; + } + + .posterTileItem { + width: 31%; + } + + .tileItem p { + margin: .75em 0 0; + } + + .tileItem .itemProgress { + font-size: 17px; + } +} + +@media all and (min-width: 1000px) { + .tileItem { + width: 47.5%; + } + + .posterTileItem { + width: 31%; + } + + .backdropTileItem .tileImage { + height: 110px; + } + + .posterTileItem .tileImage { + height: 136px; + } + + .squareTileItem { + width: 31%; + } + + .squareTileItem .tileImage { + height: 105px; + } +} + +@media all and (min-width: 1200px) { + .backdropTileItem .tileImage { + height: 100px; + } + + .posterTileItem .tileImage { + height: 160px; + } + + .tileItem { + width: 31.5%; + } + + .squareTileItem .tileImage { + height: 130px; + } +} + +@media all and (min-width: 1440px) { + .backdropTileItem .tileImage { + height: 110px; + } + + .posterTileItem .tileImage { + height: 150px; + } + + .tileItem { + width: 31.5%; + } + + .squareTileItem .tileImage { + height: 155px; + } + + .posterTileItem { + width: 23.5%; + } +} + +@media all and (min-width: 1700px) { + + .backdropTileItem .tileImage { + height: 132px; + } + + .posterTileItem .tileImage { + height: 170px; + } + + .tileItem { + width: 32%; + } + + .posterTileItem { + width: 23.5%; + } + + .squareTileItem { + width: 23.5%; + } + + .squareTileItem .tileImage { + height: 140px; + } +} + + +@media all and (min-width: 1920px) { + .tileItem { + width: 31.5%; + } + + .tileImage { + height: 155px; + } + + .posterTileItem { + width: 18.8%; + } + + .posterTileItem .tileImage { + height: 160px; + } + + .squareTileItem { + width: 18.8%; + } + + .squareTileItem .tileImage { + height: 120px; + } +} + +@media all and (min-width: 2000px) { + .tileItem { + width: 23.5%; + } + + .tileImage { + height: 117px; + } + + .posterTileItem { + width: 18.8%; + } + + .posterTileItem .tileImage { + height: 160px; + } + + .squareTileItem { + width: 18.8%; + } + + .squareTileItem .tileImage { + height: 130px; + } +} + +@media all and (min-width: 2200px) { + .tileItem { + width: 24%; + } + + .tileImage { + height: 145px; + } + + .posterTileItem { + width: 18.8%; + } + + .posterTileItem .tileImage { + height: 185px; + } + + .squareTileItem { + width: 18.8%; + } + + .squareTileItem .tileImage { + height: 140px; + } +} + +@media all and (min-width: 2540px) { + .tileItem { + width: 18.75%; + } + + .tileImage { + height: 120px; + } + + .posterTileItem { + width: 15.8%; + } + + .posterTileItem .tileImage { + height: 180px; + } + + .squareTileItem { + width: 15.8%; + } + + .squareTileItem .tileImage { + height: 140px; + } +} diff --git a/dashboard-ui/itembynamedetails.html b/dashboard-ui/itembynamedetails.html index 1d6848b416..60dd0346e4 100644 --- a/dashboard-ui/itembynamedetails.html +++ b/dashboard-ui/itembynamedetails.html @@ -49,7 +49,7 @@