1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Admin-ui: Grid responsive fixes.

This commit is contained in:
Cameron
2017-04-05 14:54:05 -07:00
parent 16957243bc
commit a992d06e05
2 changed files with 6 additions and 4 deletions

View File

@@ -4758,7 +4758,7 @@ class e_form
// $ttl = '<img src="'.$thsrc.'" alt="'.$alt.'" class="thumbnail e-thumb" />'; // $ttl = '<img src="'.$thsrc.'" alt="'.$alt.'" class="thumbnail e-thumb" />';
$thparms['alt'] = $alt; $thparms['alt'] = $alt;
$thparms['class'] = "thumbnail e-thumb img-responsive"; $thparms['class'] = "thumbnail e-thumb";
@@ -4783,7 +4783,7 @@ class e_form
elseif(!empty($parms['fallback'])) elseif(!empty($parms['fallback']))
{ {
$value = $parms['fallback']; $value = $parms['fallback'];
$thparms['class'] = "thumbnail e-thumb img-responsive fallback"; $thparms['class'] = "thumbnail e-thumb fallback";
return $tp->toImage($value, $thparms); return $tp->toImage($value, $thparms);
} }
break; break;
@@ -5902,7 +5902,7 @@ class e_form
} }
} }
if($s != $perPage) if($s != $perPage && $s != 0)
{ {
$slides[] = array('text'=>$tmp); $slides[] = array('text'=>$tmp);
} }

View File

@@ -64,16 +64,18 @@ a.core-mainpanel-link-icon:hover { text-decoration: none; filter: none; }
/* e-overlay */ /* e-overlay */
.e-overlay { position: relative; height: 100%; } .e-overlay { position: relative; height: 100%; }
.e-overlay .e-overlay-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #FFF; opacity: 0; } .e-overlay .e-overlay-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #FFF; opacity: 0; }
.e-overlay:hover .e-overlay-content { opacity: 1; padding-top:33%; transition: opacity .20s ease-in-out; .e-overlay:hover .e-overlay-content { opacity: 1; padding-top:30%; transition: opacity .20s ease-in-out;
-moz-transition: opacity .20s ease-in-out; -moz-transition: opacity .20s ease-in-out;
-webkit-transition: opacity .20s ease-in-out; -webkit-transition: opacity .20s ease-in-out;
vertical-align: middle; vertical-align: middle;
background: rgba(0, 0, 0, .7); background: rgba(0, 0, 0, .7);
text-align:center; text-align:center;
} }
.e-overlay .thumbnail { margin:0; } .e-overlay .thumbnail { margin:0; }
.admin-ui-grid img.fallback { opacity: 0.3; } .admin-ui-grid img.fallback { opacity: 0.3; }
.admin-ui-grid img.thumbnail { max-width: 100% }
/* /*
#admin-ui-carousel .carousel-inner { min-height: 65vh; } #admin-ui-carousel .carousel-inner { min-height: 65vh; }