contentflow 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,250 @@
1
+
2
+ /* ========== ContentFlow ========== */
3
+ /*
4
+ * default style to look nice
5
+ */
6
+
7
+ .ContentFlow {
8
+ }
9
+ .ContentFlow .flow {
10
+ /*border: 1px solid green;*/
11
+ }
12
+ .ContentFlow .flow * {
13
+ }
14
+
15
+ .ContentFlow .flow .item {
16
+ /*border: 1px solid red;*/
17
+ }
18
+ .ContentFlow .flow .item canvas.content {
19
+ height: 100%;
20
+ width: 100%;
21
+ /*border: 1px solid yellow;*/
22
+ }
23
+ .ContentFlow .flow .item img.content {
24
+ /*border: 1px solid yellow;*/
25
+ width: 100%;
26
+ }
27
+ .ContentFlow .flow .item img.reflection,
28
+ .ContentFlow .flow .item canvas.reflection {
29
+ width: 100%;
30
+ }
31
+ /* ----- styling of items ----- */
32
+ .ContentFlow .flow .item.active {
33
+ cursor: pointer;
34
+ }
35
+ .ContentFlow .flow .item .caption {
36
+ font-size: 100%;
37
+ font-weight: bold;
38
+ text-align: center;
39
+ color: white;
40
+ max-height: 30%;
41
+ bottom: 10%;
42
+ background: image_url('contentflow/1x1_0.5_black.png');
43
+ width: 100%;
44
+ }
45
+ * html .ContentFlow .flow .item .caption {
46
+ background-image: none;
47
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='contentflow/1x1_0.5_black.png');
48
+ }
49
+ .ContentFlow .flow .item .caption a,
50
+ .ContentFlow .flow .item .caption a:link,
51
+ .ContentFlow .flow .item .caption a:visited,
52
+ .ContentFlow .flow .item .caption a:active,
53
+ .ContentFlow .flow .item .caption a:hover {
54
+ text-decoration: none;
55
+ color: white;
56
+ font-style: italic;
57
+ font-size: 0.8em;
58
+ }
59
+ .ContentFlow .flow .item .caption a:hover {
60
+ text-decoration: underline;
61
+ }
62
+ .ContentFlow .flow .item.active .caption {
63
+ /*display: block;*/ /* uncomment to show caption inside item */
64
+ }
65
+
66
+ /* ----- scrollbar ----- */
67
+ .ContentFlow .scrollbar {
68
+ width: 50%;
69
+ margin: 0px auto;
70
+ margin-top: 10px;
71
+ height: 16px;
72
+ background: image_url('contentflow/scrollbar_white.png') left center repeat-x;
73
+ position: relative;
74
+ overflow: visible;
75
+ }
76
+
77
+ .ContentFlow .scrollbar .slider {
78
+ width: 16px;
79
+ height: 16px;
80
+ background: image_url('contentflow/slider_white.png') center center no-repeat;
81
+ cursor: move;
82
+ }
83
+
84
+ /* only for IE <= 6 and a alphatransparent slider image */
85
+ * html .ContentFlow .scrollbar .slider { background-image: none; }
86
+ * html .ContentFlow .scrollbar .slider .virtualSlider {
87
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='contentflow/slider_white.png');
88
+ }
89
+ .ContentFlow .scrollbar .slider .position {
90
+ top: 120%;
91
+ font-size: 16px;
92
+ font-weight: bold;
93
+ color: silver
94
+ }
95
+
96
+ /* ----- global caption ----- */
97
+ .ContentFlow .globalCaption {
98
+ text-align: center;
99
+ font-weight: bold;
100
+ color: white;
101
+ font-size: 14px;
102
+ height: 20px;
103
+ margin: 2em auto;
104
+ }
105
+ .ContentFlow .globalCaption .caption {
106
+ }
107
+ .ContentFlow .globalCaption .caption a,
108
+ .ContentFlow .globalCaption .caption a:link,
109
+ .ContentFlow .globalCaption .caption a:visited,
110
+ .ContentFlow .globalCaption .caption a:active,
111
+ .ContentFlow .globalCaption .caption a:hover {
112
+ text-decoration: none;
113
+ color: white;
114
+ font-style: italic;
115
+ font-size: 0.8em;
116
+ }
117
+
118
+ .ContentFlow .globalCaption .caption a:hover {
119
+ text-decoration: underline;
120
+ }
121
+
122
+ /* ----- load indicator ----- */
123
+ .ContentFlow .loadIndicator {
124
+ width: 100%;
125
+ height: 100%;
126
+ top: 0px;
127
+ left: 0px;
128
+ background: black;
129
+ }
130
+ .ContentFlow .loadIndicator .indicator {
131
+ background: image_url('contentflow/loader.gif') center center no-repeat;
132
+ width: 100%;
133
+ height: 100%;
134
+ }
135
+ * html .ContentFlow .loadIndicator .indicator {
136
+ height: 100px;
137
+ }
138
+
139
+ /* ================================= */
140
+
141
+
142
+
143
+
144
+ /* ========== ContentFlow ========== */
145
+ /*
146
+ * This is the basic CSS file needed for the correct functioning of ContentFlow.
147
+ * DON'T CHANGE IT.
148
+ *
149
+ */
150
+ .ContentFlow {
151
+ position: relative; /* needed so overlay dimensions are constrained to the ContentFlow */
152
+ overflow: hidden;
153
+ }
154
+ .ContentFlow * {
155
+ margin: 0px;
156
+ padding: 0px;
157
+ /*border: none;*/
158
+ }
159
+ .ContentFlow img {
160
+ -ms-interpolation-mode: bicubic;
161
+ }
162
+
163
+ .ContentFlow .mouseoverCheckElement {
164
+ position: absolute;
165
+ width: 0px;
166
+ height: 0px;
167
+ left: 0px;
168
+ /*display: none;*/
169
+ visibility: hidden;
170
+ }
171
+ .ContentFlow:hover .mouseoverCheckElement {
172
+ left: 1px;
173
+ /*width: 1px;*/
174
+ /*left: -1px;*/
175
+ /*background-color: red;*/
176
+ }
177
+ .ContentFlow .flow {
178
+ position: relative; /* needed so that items can be positioned relative to flow*/
179
+ z-index: 0; /* need so every item has a z-index relative to the flow-box */
180
+ visibility: hidden; /* needed so that content is hidden while loading */
181
+ width: 100%; /* needed for IE6 */
182
+ margin: 0 auto;
183
+ }
184
+ .ContentFlow .flow.hidden {
185
+ visibility: hidden;
186
+ }
187
+
188
+ .ContentFlow .flow .item {
189
+ position: absolute; /* needed */
190
+ visibility: hidden;
191
+ top: 0px;
192
+ left: 0px;
193
+ }
194
+ .ContentFlow .flow .item.active {
195
+ }
196
+ .ContentFlow .flow .item .content {
197
+ display: block;
198
+ }
199
+ .ContentFlow .flow .item div.content {
200
+ width: 100%;
201
+ height: 100%;
202
+ }
203
+ .ContentFlow .flow .item .label {
204
+ display: none;
205
+ }
206
+ .ContentFlow .flow .item .reflection {
207
+ display: block;
208
+ }
209
+ .ContentFlow .flow .item canvas.reflection {
210
+ margin-top: -1px; /* for FF */
211
+ }
212
+ .ContentFlow .flow .item .caption {
213
+ position: absolute; /* needed */
214
+ display: none; /* needed to hide it on inactive items */
215
+ }
216
+ .ContentFlow .flow .item.active .caption {
217
+ /*display: block;*/ /* uncomment to show caption inside item */
218
+ }
219
+
220
+ /* ----- scrollbar ----- */
221
+
222
+ .ContentFlow .scrollbar {
223
+ position: relative; /* needed for z-index */
224
+ z-index: 1; /* set above flow */
225
+ visibility: hidden;
226
+ }
227
+
228
+ .ContentFlow .scrollbar .slider {
229
+ position: absolute; /* needed */
230
+ }
231
+ * html .ContentFlow .scrollbar .slider .virtualSlider {
232
+ height: 100%;
233
+ }
234
+ .ContentFlow .scrollbar .slider .position {
235
+ position: absolute; /* needed */
236
+ text-align: center;
237
+ }
238
+
239
+ /* ----- global caption ----- */
240
+ .ContentFlow .globalCaption {
241
+ position: relative; /* needed for z-index */
242
+ z-index: 1; /* set above flow */
243
+ }
244
+ /* ----- load indicator ----- */
245
+ .ContentFlow .loadIndicator {
246
+ position: absolute; /* needed */
247
+ z-index: 65000; /* set above everything */
248
+ }
249
+
250
+
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: contentflow
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - sergio1990
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '3.2'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '3.2'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '1.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '3.1'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '3.1'
78
+ description: ContentFlow is a flexible CoverflowTM / ImageFlow like flow written in
79
+ javascript, which can handle any kind of content for the Rails 3.1+ asset pipeline
80
+ email:
81
+ - sergeg1990@gmail.com
82
+ executables: []
83
+ extensions: []
84
+ extra_rdoc_files: []
85
+ files:
86
+ - .gitignore
87
+ - Gemfile
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
91
+ - contentflow.gemspec
92
+ - lib/contentflow.rb
93
+ - lib/contentflow/engine.rb
94
+ - lib/contentflow/version.rb
95
+ - vendor/assets/images/.blank.gif.swp
96
+ - vendor/assets/images/contentflow/1x1_0.5_black.png
97
+ - vendor/assets/images/contentflow/blank.gif
98
+ - vendor/assets/images/contentflow/loader.gif
99
+ - vendor/assets/images/contentflow/scrollbar_white.png
100
+ - vendor/assets/images/contentflow/slider_white.png
101
+ - vendor/assets/javascripts/contentflow.js
102
+ - vendor/assets/stylesheets/contentflow.scss
103
+ homepage: https://github.com/sergio1990/contentflow
104
+ licenses: []
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 1.8.24
124
+ signing_key:
125
+ specification_version: 3
126
+ summary: ContentFlow for the Rails 3.1+ asset pipeline
127
+ test_files: []