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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- data.tar.gz: 0e7225b5329987155e620fe8c3d6608095c01c7e
4
- metadata.gz: a352f6353c940e602fcea9903290eadcc2c7c925
3
+ metadata.gz: c050c05862aa23102adc818242d723d1a85e2a5d
4
+ data.tar.gz: acd1fbf4e93fb7cea017e7a21904ec907118e8b6
5
5
  SHA512:
6
- data.tar.gz: c26335feb0268d61641456978248eaf7b675c99b5272479c5c4aef775733071997b15c00d750e2214f2700e99f72d34c306658837d6d8625bdca4328d087b126
7
- metadata.gz: 14c817837984e35b7a222b4e2a4ceb881207e1eab1807d5696c55e7630529ac45eb98ef7d5f799388e5eb1030112e36b991a5170e616752e2ee712d8cd22373b
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-list: '> ul';
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-list($extend: $css-carousel-extend) {
40
+ @mixin css-carousel-slider($extend: $css-carousel-extend) {
40
41
  @if $extend {
41
- @extend %css-carousel-list;
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
- > li {
51
- position:relative;
52
- float:left;
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, $list: $css-carousel-list) {
59
- #{$list} {
65
+ @mixin css-carousel-size($items, $slider: $css-carousel-slider, $slide: $css-carousel-slide) {
66
+ #{$slider} {
60
67
  width: 100% * $items;
61
68
 
62
- > li {
69
+ #{$slide} {
63
70
  width: 100% / $items;
64
71
  }
65
72
  }
66
73
  }
67
74
 
68
- // Animation wrapped in list
69
- @mixin css-carousel-list-animation($animation: $css-carousel-animation, $duration: $css-carousel-duration, $list: $css-carousel-list) {
70
- #{$list} {
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, $list: $css-carousel-list, $animation: $css-carousel-animation, $duration: $css-carousel-duration, $extend: $css-carousel-extend) {
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, $list);
87
+ @include css-carousel-size($items, $slider, $slide);
88
+
89
+ #{$slider} {
90
+ @include css-carousel-slider($extend);
81
91
 
82
- #{$list} {
83
- @include css-carousel-list($extend);
92
+ #{$slide} {
93
+ @include css-carousel-slide($extend);
94
+ }
84
95
  }
85
96
 
86
- @include css-carousel-list-animation($animation, $duration, $list);
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-list {
95
- @include css-carousel-list(false);
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.2
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-11 00:00:00 Z
14
+ date: 2013-07-16 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: compass