Skip to content

Commit 15522c1

Browse files
committed
minorr css fix
1 parent 91b1929 commit 15522c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

assets/css/fancybox.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,15 @@ body.compensate-for-scrollbar {
239239
background: transparent;
240240
border: 0;
241241
height: 100%;
242-
left: 0;
242+
/*left: 0;*/
243243
/* Fix images beeing distorted */
244244
object-fit: contain;
245245
margin: 0;
246246
max-height: none;
247247
max-width: none;
248248
padding: 0;
249-
position: absolute;
250-
top: 0;
249+
/*position: absolute;
250+
top: 0;*/
251251
-webkit-user-select: none;
252252
-moz-user-select: none;
253253
-ms-user-select: none;

fancybox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function mfbfw_init() {
251251
//title position settings
252252
if ( isset( $mfbfw['titlePosition'] ) ) {
253253
if ( $mfbfw['titlePosition'] == 'inside' ) {
254-
$captionPosition = 'div.fancybox-caption p.caption-title {background:#fff; width:auto;padding:10px 30px;}div.fancybox-content p.caption-title{color:'.$mfbfw['titleColor'].'}';
254+
$captionPosition = 'div.fancybox-caption p.caption-title {background:#fff; width:auto;padding:10px 30px;}div.fancybox-content p.caption-title{color:'.$mfbfw['titleColor'].';margin: 0;padding: 5px 0;}';
255255
} elseif ( $mfbfw['titlePosition'] == 'float' ) {
256256
$captionPosition = 'div.fancybox-caption p.caption-title {background:#fff;color:#000;padding:10px 30px;width:auto;}';
257257
} else {
@@ -267,7 +267,7 @@ function mfbfw_init() {
267267
echo '
268268
<!-- Fancybox for WordPress v' . $mfbfw_version . ' -->
269269
<style type="text/css">
270-
'.$hideCaption.'
270+
.fancybox-slide--image .fancybox-content{background-color: ' . $mfbfw['paddingColor'] . '}'.$hideCaption.'
271271
' . ( isset( $mfbfw['overlayShow'] ) ? '' : 'div.fancybox-bg{background:transparent !important;}' ) . '
272272
' . 'img.fancybox-image{border-width:' . $mfbfw['padding'] . 'px;border-color:' . $mfbfw['paddingColor'] . ';border-style:solid;height:auto;}' . '
273273
' . ( isset( $mfbfw['overlayColor'] ) && $mfbfw['overlayColor'] ? 'div.fancybox-bg{background-color:' . hexTorgba( $mfbfw['overlayColor'], $mfbfw['overlayOpacity'] ) . ';opacity:1 !important;}' : '' ) . ( isset( $mfbfw['paddingColor'] ) && $mfbfw['paddingColor'] ? 'div.fancybox-content{border-color:' . $mfbfw['paddingColor'] . '}' : '' ) . '

0 commit comments

Comments
 (0)