Skip to content

Commit

Permalink
Fix broken video indactors since FontAwesome 5. Fixes #160
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuther committed Apr 30, 2018
1 parent effaafc commit 25ac436
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions scss/theme/_index.scss
Expand Up @@ -81,5 +81,10 @@
}
}

// video indicators
i.video-indicator {
font-weight: 400;
opacity: 0.75;
}
// still needed?
#theCategoryPage { padding-left: 0px !important; }
4 changes: 2 additions & 2 deletions template/index.tpl
Expand Up @@ -240,7 +240,7 @@ $(document).ajaxComplete(function() {
{if !isset($loaded_plugins['piwigo-videojs']) && (isset($GThumb) || isset($GDThumb))}
function addVideoIndicator() {
$('img.thumbnail[src*="pwg_representative"]').each(function() {
$(this).closest('li').append('<i class="fas fa-file-video-o fa-2x video-indicator" aria-hidden="true" style="position: absolute; top: 10px; left: 10px; z-index: 100; color: #fff;"></i>');
$(this).closest('li').append('<i class="fas fa-file-video fa-2x video-indicator" aria-hidden="true" style="position: absolute; top: 10px; left: 10px; z-index: 100; color: #fff;"></i>');
});
}
$(document).ready(function() {
Expand All @@ -251,7 +251,7 @@ $(document).ajaxComplete(function() {
});
{else}
$('.card-thumbnail').find('img[src*="pwg_representative"]').each(function() {
$(this).closest('div').append('<i class="fas fa-file-video-o fa-2x video-indicator" aria-hidden="true" style="position: absolute; top: 10px; left: 10px; z-index: 100; color: #fff;"></i>');
$(this).closest('div').append('<i class="fas fa-file-video fa-2x video-indicator" aria-hidden="true" style="position: absolute; top: 10px; left: 10px; z-index: 100; color: #fff;"></i>');
});
{/if}
{/strip}{/footer_script}
Expand Down
5 changes: 5 additions & 0 deletions theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions theme.css.map

Large diffs are not rendered by default.

0 comments on commit 25ac436

Please sign in to comment.