forked from mirisuzanne/compass-css-slideshow
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82b7394
commit 41a4a62
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// CSS SLIDESHOWS | ||
// Plugin by Eric Meyer - http://www.oddbird.net/ | ||
// Based on the work of Jenna Smith - http://growldesign.co.uk/ | ||
|
||
// Compatible with IE6+, Mozilla and Webkit browsers. | ||
// **Not compatible with Opera without Javascript help** | ||
|
||
// Override with the proper class names for your slide/slide-nav containers | ||
$slide-container: ".slides" !default; | ||
|
||
$max-slides: 10 !default; | ||
|
||
// import lightboxes | ||
@import "css-slideshow/slideshow"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Apply +slideshow to the slideshow container | ||
@mixin slideshow($slides: $slide-container, $count: $max-slides) { | ||
#{$slides} { | ||
width: 100%; | ||
overflow: hidden; | ||
|
||
> ul { | ||
margin: 0; | ||
padding: 0; | ||
width: 103% * $count; | ||
@include no-bullets; | ||
@include clearfix; | ||
|
||
> li { | ||
@include float(left); | ||
width: 100% / (1.03 * $count); | ||
margin-right: .5% / (1.03 * $count); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// CSS-only Lightboxes | ||
// Plugin by Eric Meyer - http://www.oddbird.net/ | ||
// Based on the work of Jenna Smith - http://growldesign.co.uk/ | ||
|
||
// Compatible with IE6+, Mozilla and Webkit browsers. | ||
// **Not compatible with Opera without Javascript help** | ||
|
||
// Override with the proper class names for your slide/slide-nav containers | ||
$slide-container: ".slides"; | ||
|
||
$max-slides: 10; | ||
|
||
// import lightboxes | ||
@import "css-slideshow"; | ||
|
||
// Make a slideshow | ||
.slideshow { | ||
@include slideshow; | ||
|
||
// Style the slideshow yourself | ||
#{$slide-container} { | ||
background: #cccccc; | ||
|
||
.content { | ||
padding: 1.5em; | ||
} | ||
|
||
h2 { | ||
padding: 0.75em; | ||
background: #aaaaaa; | ||
} | ||
} | ||
} |