Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions coffee/lightbox.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class Lightbox
@containerBottomPadding = parseInt @$container.css('padding-bottom'), 10
@containerLeftPadding = parseInt @$container.css('padding-left'), 10

# Add spin.js spinner to lb-loader css-class
@$lbloader = $('.lb-loader')
@$spinner = new Spinner().spin();
@$lbloader.append(@$spinner.el);

# Attach event handlers to the newly minted DOM elements
@$overlay
.hide()
Expand Down
42 changes: 23 additions & 19 deletions css/lightbox.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* line 7, ../sass/lightbox.sass */
body:after {
content: url(../img/close.png) url(../img/loading.gif) url(../img/prev.png) url(../img/next.png);
content: url(../img/close.png) url(../img/prev.png) url(../img/next.png);
display: none;
}

Expand Down Expand Up @@ -56,7 +56,7 @@ body:after {
-o-border-radius: 4px;
border-radius: 4px;
}
/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
/* line 38, ../../../.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
.lb-outerContainer:after {
content: "";
display: table;
Expand Down Expand Up @@ -85,10 +85,9 @@ body:after {
width: 32px;
height: 32px;
margin: 0 auto;
background: url(../img/loading.gif) no-repeat;
}

/* line 64, ../sass/lightbox.sass */
/* line 63, ../sass/lightbox.sass */
.lb-nav {
position: absolute;
top: 0;
Expand All @@ -98,17 +97,17 @@ body:after {
z-index: 10;
}

/* line 72, ../sass/lightbox.sass */
/* line 71, ../sass/lightbox.sass */
.lb-container > .nav {
left: 0;
}

/* line 75, ../sass/lightbox.sass */
/* line 74, ../sass/lightbox.sass */
.lb-nav a {
outline: none;
}

/* line 78, ../sass/lightbox.sass */
/* line 77, ../sass/lightbox.sass */
.lb-prev, .lb-next {
width: 49%;
height: 100%;
Expand All @@ -117,7 +116,7 @@ body:after {
display: block;
}

/* line 85, ../sass/lightbox.sass */
/* line 84, ../sass/lightbox.sass */
.lb-prev {
left: 0;
float: left;
Expand All @@ -128,14 +127,14 @@ body:after {
-o-transition: opacity 0.6s;
transition: opacity 0.6s;
}
/* line 90, ../sass/lightbox.sass */
/* line 89, ../sass/lightbox.sass */
.lb-prev:hover {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
opacity: 1;
background: url(../img/prev.png) left 48% no-repeat;
}

/* line 94, ../sass/lightbox.sass */
/* line 93, ../sass/lightbox.sass */
.lb-next {
right: 0;
float: right;
Expand All @@ -146,14 +145,14 @@ body:after {
-o-transition: opacity 0.6s;
transition: opacity 0.6s;
}
/* line 99, ../sass/lightbox.sass */
/* line 98, ../sass/lightbox.sass */
.lb-next:hover {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
opacity: 1;
background: url(../img/next.png) right 48% no-repeat;
}

/* line 103, ../sass/lightbox.sass */
/* line 102, ../sass/lightbox.sass */
.lb-dataContainer {
margin: 0 auto;
padding-top: 5px;
Expand All @@ -166,40 +165,40 @@ body:after {
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
/* line 38, ../../../.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
.lb-dataContainer:after {
content: "";
display: table;
clear: both;
}

/* line 110, ../sass/lightbox.sass */
/* line 109, ../sass/lightbox.sass */
.lb-data {
padding: 0 4px;
color: #bbbbbb;
}
/* line 113, ../sass/lightbox.sass */
/* line 112, ../sass/lightbox.sass */
.lb-data .lb-details {
width: 85%;
float: left;
text-align: left;
line-height: 1.1em;
}
/* line 118, ../sass/lightbox.sass */
/* line 117, ../sass/lightbox.sass */
.lb-data .lb-caption {
font-size: 13px;
font-weight: bold;
line-height: 1em;
}
/* line 122, ../sass/lightbox.sass */
/* line 121, ../sass/lightbox.sass */
.lb-data .lb-number {
display: block;
clear: left;
padding-bottom: 1em;
font-size: 12px;
color: #999999;
}
/* line 128, ../sass/lightbox.sass */
/* line 127, ../sass/lightbox.sass */
.lb-data .lb-close {
display: block;
float: right;
Expand All @@ -215,9 +214,14 @@ body:after {
-o-transition: opacity 0.2s;
transition: opacity 0.2s;
}
/* line 138, ../sass/lightbox.sass */
/* line 137, ../sass/lightbox.sass */
.lb-data .lb-close:hover {
cursor: pointer;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
opacity: 1;
}

/* line 141, ../sass/lightbox.sass */
.spinner {
margin: auto;
}
3 changes: 3 additions & 0 deletions js/lightbox.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading