WCF.DOMNodeInsertedHandler.enable();
// navigation buttons
- $('<span><span class="icon icon16 icon-chevron-left jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.previous') + '" /></span>').appendTo($('#lbPrevLink'));
- $('<span><span class="icon icon16 icon-chevron-right jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.next') + '" /></span>').appendTo($('#lbNextLink'));
+ $('<span class="icon icon16 icon-chevron-left jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.previous') + '" />').appendTo($('#lbPrevLink'));
+ $('<span class="icon icon16 icon-chevron-right jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.next') + '" />').appendTo($('#lbNextLink'));
// close and enlarge icons
- $('<span class="icon icon16 icon-remove jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.close') + '" />').appendTo($('#lbCloseLink'));
- var $buttonEnlarge = $('<span class="icon icon16 icon-resize-full jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.enlarge') + '" id="lbEnlarge" />').insertAfter($('#lbCloseLink'));
+ $('<span class="icon icon32 icon-remove jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.close') + '" />').appendTo($('#lbCloseLink'));
+ var $buttonEnlarge = $('<span class="icon icon32 icon-resize-full jsTooltip" title="' + WCF.Language.get('wcf.imageViewer.enlarge') + '" id="lbEnlarge" />').insertAfter($('#lbCloseLink'));
WCF.DOMNodeInsertedHandler.disable();
#lbPrevLink,
#lbNextLink {
display: block;
- opacity: 0;
overflow: hidden;
position: absolute;
top: 0;
width: 50%;
outline: none;
- .transition(opacity, .2s);
-
> span {
background-color: #fff;
+ display: none;
padding: @wcfGapSmall;
position: absolute;
- text-transform: uppercase;
top: 20%;
}
> span {
left: 0;
padding-right: @wcfGapMedium;
- text-align: right;
.borderRadius(0, 30px, 30px, 0);
}
&:hover {
#lbNextLink,
#lbPrevLink {
- opacity: 1;
-
- .transition(opacity, .2s);
+ > span {
+ display: block;
+ }
}
}
}