fix PDF in gallery

This commit is contained in:
ccd0 2014-07-04 19:47:24 -07:00
parent 6abb88a11f
commit cabbd58918
2 changed files with 2 additions and 2 deletions

View File

@ -1405,7 +1405,7 @@ div.boardTitle {
padding-right: 7px;
top: 5px;
}
.gal-pdf .gal-buttons {
:root.gal-pdf .gal-buttons {
top: 40px;
background: rgba(0,0,0,0.6) !important;
border-radius: 3px;

View File

@ -134,7 +134,7 @@ Gallery =
elType = 'img'
elType = 'video' if /\.webm$/.test(@href)
elType = 'iframe' if /\.pdf$/.test(@href)
$[if elType is 'iframe' then 'addClass' else 'rmClass'] nodes.el, 'gal-pdf'
$[if elType is 'iframe' then 'addClass' else 'rmClass'] doc, 'gal-pdf'
file = $.el elType,
src: name.href = @href
title: name.download = name.textContent = @title