diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css b/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css index bff74004f9..9b04feb8b3 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css +++ b/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css @@ -1,6 +1,6 @@ [is="emby-button"] { position: relative; - display: inline-flex; + display: inline-block; align-items: center; box-sizing: border-box; margin: 0 .29em; @@ -30,12 +30,42 @@ text-transform: uppercase; } - [is="emby-button"].raised { + [is="emby-button"].raised, [is="emby-button"].fab { box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); } + [is="emby-button"].fab { + border-radius: 50%; + min-width: 56px; + min-height: 56px; + height: 5.2vh; + width: 5.2vh; + background-color: #444; + padding: .6em; + box-sizing: border-box; + display: inline-flex; + align-items: center; + justify-content: center; + text-align: center; + color: #fff !important; + margin: 0; + } + + [is="emby-button"].fab.mini { + min-width: 40px !important; + min-height: 40px !important; + height: 3.3vh !important; + width: 3.3vh !important; + } + + [is="emby-button"].fab iron-icon { + width: 100%; + height: 100%; + vertical-align: middle; + } + [is="emby-button"].block { - display: flex; + display: block; align-items: center; justify-content: center; margin: .25em 0; diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index ab92b23adf..c18a87dcd1 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-button-light'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'paper-item', 'paper-input', 'emby-button', 'paper-item-body', 'paper-icon-button-light'], function (dialogHelper, $) { var systemInfo; function getSystemInfo() { @@ -219,7 +219,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + (options.header || Globalize.translate('HeaderSelectPath')) + '
'; html += '

'; diff --git a/dashboard-ui/components/imageeditor/imageeditor.js b/dashboard-ui/components/imageeditor/imageeditor.js index ebb2146c39..4e0217a421 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.js +++ b/dashboard-ui/components/imageeditor/imageeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'css!css/metadataeditor.css', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'css!css/metadataeditor.css', 'emby-button', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, $) { var currentItem; var currentDeferred; @@ -257,7 +257,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + item.Name + '
'; html += '

'; diff --git a/dashboard-ui/components/imageuploader/imageuploader.js b/dashboard-ui/components/imageuploader/imageuploader.js index a95cd39d58..cfbab4ed06 100644 --- a/dashboard-ui/components/imageuploader/imageuploader.js +++ b/dashboard-ui/components/imageuploader/imageuploader.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-fab'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'emby-button'], function (dialogHelper, $) { var currentItemId; var currentFile; @@ -149,7 +149,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + Globalize.translate('HeaderUploadImage') + '
'; html += '

'; diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.js b/dashboard-ui/components/itemidentifier/itemidentifier.js index 7d96414b2a..7dfd030014 100644 --- a/dashboard-ui/components/itemidentifier/itemidentifier.js +++ b/dashboard-ui/components/itemidentifier/itemidentifier.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'loading', 'jQuery', 'paper-fab', 'emby-input', 'paper-checkbox', 'paper-icon-button-light'], function (dialogHelper, loading, $) { +define(['dialogHelper', 'loading', 'jQuery', 'emby-input', 'paper-checkbox', 'paper-icon-button-light'], function (dialogHelper, loading, $) { var currentItem; var currentItemType; diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js index d0413f1a94..53c4b57165 100644 --- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js +++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'emby-button', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function (dialogHelper, $) { var currentDeferred; var hasChanges; @@ -59,7 +59,7 @@ html += ''; - html += ''; + html += ''; html += ''; html += path; @@ -163,7 +163,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + options.library.Name + '
'; html += '

'; diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index 846aa924e3..1d5d81c649 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -209,6 +209,8 @@ define(['browser'], function (browser) { function animate(newAnimatedPage, oldAnimatedPage, transition, isBack) { + transition = transition || 'fade'; + if (enableAnimation() && oldAnimatedPage && newAnimatedPage.animate) { if (transition == 'slide') { return slide(newAnimatedPage, oldAnimatedPage, transition, isBack); diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index c85b5331fd..f749347235 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -402,24 +402,19 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { font-size: 90%; } -.detailFloatingButton { - width: 56px; - height: 56px; +[is="emby-button"].detailFloatingButton { + width: 56px !important; + height: 56px !important; top: -28px; position: absolute; right: 25%; background-color: #52B54B !important; } -.btnFloatingRecord { +[is="emby-button"].btnFloatingRecord { background-color: #cc3333 !important; } -.detailFloatingButton iron-icon { - width: 40px; - height: 40px; -} - @media all and (max-width: 1000px) { .primaryDetailsContainer { diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index e25e019669..a20044ffa6 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -9,8 +9,8 @@
- - + +
@@ -130,7 +130,7 @@

- +
TOMATOMETER®
diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index a99df5d239..59b98fa0cb 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -742,7 +742,7 @@ var helpUrl = page.getAttribute('data-helpurl'); if (helpUrl) { - html += ''; + html += ''; } } diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index e503118c44..20cfbfbd34 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -2564,7 +2564,7 @@ var AppInfo = {}; defineRoute({ path: '/itemdetails.html', - dependencies: ['emby-button', 'tileitemcss', 'scripts/livetvcomponents', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], + dependencies: ['emby-button', 'tileitemcss', 'scripts/livetvcomponents', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], controller: 'scripts/itemdetailpage', autoFocus: false, transition: 'fade'