From 0f92dc0fdfe11c52445bc989edacabf522e0ba3c Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 4 Jun 2016 12:43:45 -0700 Subject: [PATCH] Add refresh button to images --- data/interfaces/default/css/plexpy.css | 40 +++++++++++++++++++ data/interfaces/default/current_activity.html | 1 + .../default/current_activity_instance.html | 1 + data/interfaces/default/home_stats.html | 14 +++++++ data/interfaces/default/info.html | 4 ++ .../default/info_children_list.html | 3 ++ .../default/info_search_results_list.html | 7 ++++ data/interfaces/default/js/script.js | 25 +++++++++++- data/interfaces/default/library.html | 1 + .../default/library_recently_added.html | 1 + data/interfaces/default/recently_added.html | 3 ++ .../default/user_recently_watched.html | 1 + plexpy/webserve.py | 4 +- plexpy/webstart.py | 22 +++++----- 14 files changed, 114 insertions(+), 13 deletions(-) diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index ffc79a39..be3d66c9 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -1184,6 +1184,7 @@ a:hover .dashboard-recent-media-cover { margin: 0 40px 0 25px; height: 100px; overflow: visible; + position: relative; } .summary-poster-face { background-position: center; @@ -1922,6 +1923,7 @@ a .library-user-instance-box:hover { .home-platforms-instance-poster { margin-left: 0px; position: absolute; + overflow: hidden; } .home-platforms-instance-poster .home-platforms-poster-face { background-position: center; @@ -2079,6 +2081,7 @@ a .library-user-instance-box:hover { .home-platforms-instance-list-poster { position: absolute; left: 20px; + overflow: hidden; } .home-platforms-instance-list-poster .home-platforms-list-poster-face { background-position: center; @@ -2964,4 +2967,41 @@ a.no-highlight:hover { background-color: #555; border: 0px solid #444; border-radius: 3px; +} +.overlay-refresh-image { + opacity: 0; + color: #000; + font-size: 16px; + float: left; + position: absolute; + top: 0px; + right: 10px; + z-index: 1; + transition: all .1s cubic-bezier(.4,0,1,1); + -webkit-transition: all .1s cubic-bezier(.4,0,1,1); + -moz-transition: all .1s cubic-bezier(.4,0,1,1); + -o-transition: all .1s cubic-bezier(.4,0,1,1); + text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; +} +.overlay-refresh-image.left { + left: 10px; +} +.overlay-refresh-image.info-art { + color: #999; + top: 15px; + right: 25px; + opacity: 1; + text-shadow: none; + cursor: pointer; +} +.overlay-refresh-image.info-art:hover { + color: #fff; + text-shadow: none; +} +a:hover .overlay-refresh-image { + opacity: .25; + top: 8px; +} +a:hover .overlay-refresh-image:hover { + opacity: .9; } \ No newline at end of file diff --git a/data/interfaces/default/current_activity.html b/data/interfaces/default/current_activity.html index 675904a5..8446d7c6 100644 --- a/data/interfaces/default/current_activity.html +++ b/data/interfaces/default/current_activity.html @@ -106,6 +106,7 @@ DOCUMENTATION :: END % else:
% endif +