diff --git a/css/gallerybutton.css b/css/gallerybutton.css index 6473d27a1..5dbf1f86f 100644 --- a/css/gallerybutton.css +++ b/css/gallerybutton.css @@ -6,26 +6,17 @@ #controls .button.view-switcher { float: right; margin-top: 5px; - font-weight: normal; - width: 40px; padding: 6px 11px; - background-color: transparent; - border: 1px solid transparent; -} - -#controls .button.view-switcher img{ - opacity: .3; } #controls .button.view-switcher.gallery { float: none; margin-right: 4px; - padding: 7px 11px; - background-color: rgba(240, 240, 240, .9); + padding: 9px 11px; } -#controls .button.view-switcher.gallery img{ - opacity: .5; +.icon-toggle-pictures.hidden { + opacity: 0 !important; } #controls .button.sorting { @@ -42,8 +33,6 @@ border-radius: 3px 0 0 3px; margin-left: 3px; margin-right: 0; - border-right: 0; - border-right: 1px solid rgba(216, 216, 216, 0.9); } #controls .button.right-switch-button { @@ -80,23 +69,8 @@ } #controls .button.view-switcher:hover { - background-color: rgba(255, 255, 255, .9); - color: #111; - border: 1px solid rgba(240, 240, 240, .9); -} - -#controls .button.sorting.active-button { - background-color: rgba(255, 255, 255, .9); - color: #111; - border: 1px solid rgba(240, 240, 240, .9); - border-right-color: rgba(216, 216, 216, 0.9); -} - -#controls .button.sorting.active-button:hover { - background-color: rgba(255, 255, 255, .9); color: #111; border: 1px solid rgba(240, 240, 240, .9); - border-right-color: rgba(216, 216, 216, 0.9); } /* Original Flip CSS by David Walsh @@ -140,7 +114,7 @@ http://davidwalsh.name/css-flip*/ } #controls .button.sorting .front, -#controls .button.sorting.active-button.hover .back { +#controls .button.sorting.active.hover .back { z-index: 2; -webkit-transform: rotateX(0deg); @@ -160,12 +134,11 @@ http://davidwalsh.name/css-flip*/ position: absolute; width: 24px; height: 24px; - background-size: 24px 24px; margin-left: -4px; - margin-top: -3px; + margin-top: -5px; } -#controls .button.sorting.active-button.hover .front { +#controls .button.sorting.active.hover .front { -webkit-transform: rotateX(180deg); -moz-transform: rotateX(180deg); transform: rotateX(180deg); diff --git a/js/gallery.js b/js/gallery.js index a4a42b653..f37c3686f 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -187,7 +187,8 @@ } var button = $('#filelist-button'); - button.children('#button-loading').addClass('loading'); + button.children('img').addClass('hidden'); + button.children('#button-loading').removeClass('hidden').addClass('icon-loading-small'); OC.redirect(OC.generateUrl(subUrl, params)); }, diff --git a/js/gallerybutton.js b/js/gallerybutton.js index 8b9ddbe87..491929379 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -71,14 +71,13 @@ $(document).ready(function () { // Button for opening files list as gallery view GalleryButton.button = $(''); GalleryButton.button.click(function () { - $(this).children('#button-loading').addClass('loading'); + $(this).children('span').addClass('hidden'); + $(this).children('#button-loading').removeClass('hidden').addClass('icon-loading-small'); window.location.href = GalleryButton.url; }); diff --git a/js/galleryview.js b/js/galleryview.js index 511a217d0..a1d17c49a 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -511,7 +511,7 @@ _setSortButton: function (sortType, sortOrder, active) { var button = $('#sort-' + sortType + '-button'); // Removing all the classes which control the image in the button - button.removeClass('active-button'); + button.removeClass('active'); button.find('img').removeClass('front'); button.find('img').removeClass('back'); @@ -527,7 +527,7 @@ // The active button needs a hover action for the flip effect if (active) { - button.addClass('active-button'); + button.addClass('active'); if (button.is(":hover")) { button.removeClass('hover'); } diff --git a/templates/part.content.php b/templates/part.content.php index 58bda6384..82105ef77 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -95,7 +95,7 @@