1
0

Version 2.5

* Support for elastic thumb-margins.
* Support for videos.
This commit is contained in:
Fredrik Erlandsson 2011-11-08 09:49:29 +01:00
parent 20a4d37dc0
commit 5da2cba5ac
3 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,6 @@
.gallery-thumb {
float: left;
margin-bottom: 5px;
margin-left: 5px;
margin-right: 5px;
padding: 3px 5px 7px 5px;
position: relative;
text-align: center;
cursor: pointer;
@ -40,9 +38,11 @@ th, td {
.giTitle {
font-size: 1.1em;
font-weight: bold;
margin: 3px 10px !important;
margin: 0.3em 3px !important;
padding: 0 0;
text-align: left;
height: 1.2em;
overflow: hidden;
}
#gsNavBar div {

View File

@ -71,6 +71,7 @@ function scaleIt(v,sliding){
$(".p-photo").each(function (i) {
$(this).attr({height: size+'px',width: size + 'px'});
$(this).css({height: size+'px',width: size+'px'});});
$(".g-photo").css({width: size+'px'});
if(!mosaicView && !sliding)
toggleReflex(false);
thumbPadding();
@ -222,11 +223,11 @@ function mosaicResize()
}
function thumbPadding() {
/* Padding on thumbs to make them flow nicer */
var size = Math.ceil((mosaicView) ? $('#imgSlider').slider('value')/2 : $('#imgSlider').slider('value'));
var size = Math.ceil((mosaicView) ? $('#imgSlider').slider('value')/2 : $('#imgSlider').slider('value'))+10;
var width =$('#mosaicGridContainer').innerWidth()-15;
var margin = width/Math.floor(width/size)-size;
console.log(size, width, margin,"px" );
$('.gallery-thumb').css({'margin-left': Math.floor(margin/2) + 'px', 'margin-right': Math.floor(margin/2) + 'px'});
$('.gallery-thumb').css({'margin-left': Math.ceil(margin/2) + 'px', 'margin-right': Math.floor(margin/2) + 'px'});
}
function bodyLoad(viewMode, bgcolor) {

View File

@ -1,6 +1,6 @@
name = ".Pear Theme"
description = "A theme with the intention to mimic Apples mobile me gallery."
version = 2.4
version = 2.5
author = "Fredrik Erlandsson <fredrik.e@gmail.com>"
site = 1
admin = 0