Permalink
Browse files

Fixed nav arrow spacing

  • Loading branch information...
1 parent 0660c92 commit 4705ae76752d5eddc68ce547bb3496ce977e4030 @samdunn samdunn committed Aug 14, 2012
@@ -40,7 +40,7 @@
isLoaded: false,
origHeight: 0,
origWidth: 0,
- ratio: 1
+ ratio: 1,
};
$.each(base.settings.slides, function(i){
@@ -61,10 +61,11 @@
// Load Initial Slides
// --------------------------------------------------
+ base.loadSlide(0);
+ base.loadSlide(1);
base.loadSlide(2);
-
};
@@ -89,10 +90,10 @@
targetSlide.html(slideToLoad.hide()).removeClass('ss-loading');
// Add to slide stack
- base._slideStack[slide].isLoaded = true;
base._slideStack[slide].origHeight = slideToLoad.height();
base._slideStack[slide].origWidth = slideToLoad.width();
base._slideStack[slide].ratio = (slideToLoad.height() / slideToLoad.width()).toFixed(2);
+ base._slideStack[slide].isLoaded = true;
base.resizeImages();
@@ -117,9 +118,8 @@
$('img', base.$el).each(function(){
if (base._slideStack[$(this).index()].isLoaded){ // make sure image loaded
base.ratio = base._slideStack[$(this).index()].ratio; // image ratio
-
- base.focusResize = $(this); // image to be resized
-
+ console.log(base.ratio);
+ base.focusResize = $(this); // image to be resized
/* ---------- Determine Resize ---------- */
if (base.settings.fit_always){ // Fit always is enabled
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -62,10 +62,7 @@ body {
position: absolute;
top: 50%;
margin-top: -20px;
- padding: 10px 15px;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
+ padding: 10px 10px;
-webkit-transition: all 200ms ease-in-out;
-moz-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;
@@ -80,10 +77,10 @@ body {
background: rgba(0, 0, 0, 0.85);
}
#ss-next {
- right: -5px;
+ right: 0;
}
#ss-prev {
- left: -5px;
+ left: 0;
}
#ss-progress-bar {
position: fixed;
@@ -73,8 +73,7 @@ body{
position:absolute;
top:50%;
margin-top:-20px;
- padding:10px 15px;
- .border-radius(3px);
+ padding:10px 10px;
@transition: all 200ms ease-in-out;
.transition(@transition);
img{
@@ -86,10 +85,10 @@ body{
}
}
#ss-next{
- right:-5px;
+ right:0;
}
#ss-prev{
- left:-5px;
+ left:0;
}

0 comments on commit 4705ae7

Please sign in to comment.