toolkit 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/stylesheets/toolkit/_carousel.scss +36 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
|
4
|
-
|
3
|
+
metadata.gz: c050c05862aa23102adc818242d723d1a85e2a5d
|
4
|
+
data.tar.gz: acd1fbf4e93fb7cea017e7a21904ec907118e8b6
|
5
5
|
SHA512:
|
6
|
-
|
7
|
-
|
6
|
+
metadata.gz: 3549aa0fb963f87e8314f5619010460b72026f3000d71f1c0850464ae2b19825c0551c0d6721be12b0996e296e1a2fb3c7e7454c536c214b3b8b650195ecdd5c
|
7
|
+
data.tar.gz: ad408e5c5d7d57402250933bca269d3368aaf94ab48062af6f251dd93e82b37088dc0059e16715f67f29d1db053f143261ce14dd6df6bdf71e54320954370951
|
@@ -6,7 +6,8 @@
|
|
6
6
|
//////////////////////////////
|
7
7
|
// Carousel Default Variables
|
8
8
|
//////////////////////////////
|
9
|
-
$css-carousel-
|
9
|
+
$css-carousel-slider: '> ul';
|
10
|
+
$css-carousel-slide: '> li';
|
10
11
|
$css-carousel-animation: 'carousel';
|
11
12
|
$css-carousel-duration: 30s;
|
12
13
|
$css-carousel-extend: true;
|
@@ -36,9 +37,9 @@ $css-carousel-speed: 5;
|
|
36
37
|
}
|
37
38
|
|
38
39
|
// Carousel List
|
39
|
-
@mixin css-carousel-
|
40
|
+
@mixin css-carousel-slider($extend: $css-carousel-extend) {
|
40
41
|
@if $extend {
|
41
|
-
@extend %css-carousel-
|
42
|
+
@extend %css-carousel-slider;
|
42
43
|
}
|
43
44
|
@else {
|
44
45
|
list-style: none;
|
@@ -46,44 +47,54 @@ $css-carousel-speed: 5;
|
|
46
47
|
padding: 0;
|
47
48
|
position: relative;
|
48
49
|
overflow: hidden;
|
50
|
+
}
|
51
|
+
}
|
49
52
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
53
|
+
// Carousel Slide
|
54
|
+
@mixin css-carousel-slide($extend: $css-carousel-extend) {
|
55
|
+
@if $extend {
|
56
|
+
@extend %css-carousel-slide;
|
57
|
+
}
|
58
|
+
@else {
|
59
|
+
position: relative;
|
60
|
+
float: left;
|
54
61
|
}
|
55
62
|
}
|
56
63
|
|
57
64
|
// List sizing, for changing only the size of the carousel
|
58
|
-
@mixin css-carousel-size($items, $
|
59
|
-
#{$
|
65
|
+
@mixin css-carousel-size($items, $slider: $css-carousel-slider, $slide: $css-carousel-slide) {
|
66
|
+
#{$slider} {
|
60
67
|
width: 100% * $items;
|
61
68
|
|
62
|
-
|
69
|
+
#{$slide} {
|
63
70
|
width: 100% / $items;
|
64
71
|
}
|
65
72
|
}
|
66
73
|
}
|
67
74
|
|
68
|
-
// Animation wrapped in
|
69
|
-
@mixin css-carousel-
|
70
|
-
#{$
|
71
|
-
@include animation($animation $duration infinite);
|
75
|
+
// Animation wrapped in slider
|
76
|
+
@mixin css-carousel-slider-animation($animation: $css-carousel-animation, $duration: $css-carousel-duration, $slider: $css-carousel-slider) {
|
77
|
+
#{$slider} {
|
78
|
+
@include animation(unquote($animation) $duration infinite);
|
72
79
|
}
|
73
80
|
}
|
74
81
|
|
75
82
|
// Carousel Component
|
76
|
-
@mixin css-carousel-component($items, $
|
83
|
+
@mixin css-carousel-component($items, $slider: $css-carousel-slider, $slide: $css-carousel-slide, $animation: $css-carousel-animation, $duration: $css-carousel-duration, $extend: $css-carousel-extend) {
|
77
84
|
|
78
85
|
@include css-carousel-basics($extend);
|
79
86
|
|
80
|
-
@include css-carousel-size($items, $
|
87
|
+
@include css-carousel-size($items, $slider, $slide);
|
88
|
+
|
89
|
+
#{$slider} {
|
90
|
+
@include css-carousel-slider($extend);
|
81
91
|
|
82
|
-
|
83
|
-
|
92
|
+
#{$slide} {
|
93
|
+
@include css-carousel-slide($extend);
|
94
|
+
}
|
84
95
|
}
|
85
96
|
|
86
|
-
@include css-carousel-
|
97
|
+
@include css-carousel-slider-animation($animation, $duration, $slider);
|
87
98
|
}
|
88
99
|
|
89
100
|
// Carousel Extends
|
@@ -91,8 +102,12 @@ $css-carousel-speed: 5;
|
|
91
102
|
@include css-carousel-basics(false);
|
92
103
|
}
|
93
104
|
|
94
|
-
%css-carousel-
|
95
|
-
@include css-carousel-
|
105
|
+
%css-carousel-slider {
|
106
|
+
@include css-carousel-slider(false);
|
107
|
+
}
|
108
|
+
|
109
|
+
%css-carousel-slide {
|
110
|
+
@include css-carousel-slide(false);
|
96
111
|
}
|
97
112
|
|
98
113
|
//////////////////////////////
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Richard
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2013-07-
|
14
|
+
date: 2013-07-16 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: compass
|