Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Fix button element
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv authored and MorrisJobke committed Jul 27, 2017
1 parent f63f916 commit 523d282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 3 additions & 6 deletions css/gallerybutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@
padding: 6px 11px;
}

#controls .button.view-switcher img{
opacity: .3;
}

#controls .button.view-switcher.gallery {
float: none;
margin-right: 4px;
padding: 7px 11px;
}

#controls .button.view-switcher.gallery img{
opacity: .5;
/* TODO: move to core */
.icon-toggle-pictures {
background-image: url('../../../core/img/actions/toggle-pictures.svg?v=1');
}

#controls .button.sorting {
Expand Down
4 changes: 1 addition & 3 deletions js/gallerybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ $(document).ready(function () {
GalleryButton.button =
$('<div id="gallery-button" class="button view-switcher">' +
'<div id="button-loading"></div>' +
'<img class="svg" src="' + OC.imagePath('core', 'actions/toggle-pictures.svg') +
'"' +
'alt="' + t('gallery', 'Gallery view') + '"/>' +
'<span class="icon-toggle-pictures"></span>' +
'</div>');

GalleryButton.button.click(function () {
Expand Down

0 comments on commit 523d282

Please sign in to comment.