anything-slider 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,203 @@
1
+ #slider
2
+ width: 900px
3
+ height: 350px
4
+ list-style: none
5
+ overflow-y: auto
6
+ overflow-x: hidden
7
+
8
+ .anythingSlider-default
9
+ margin: 0 auto
10
+ padding: 0 45px 0 45px
11
+
12
+ .anythingSlider-default .anythingControls a
13
+ background: #777 url(image_path('default.png')) center -288px repeat-x
14
+ color: #000
15
+ border-radius: 0 0 5px 5px
16
+ -moz-border-radius: 0 0 5px 5px
17
+ -webkit-border-radius: 0 0 5px 5px
18
+
19
+ .anythingSlider-default .anythingControls a span
20
+ visibility: visible
21
+
22
+ .anythingSlider-default .anythingControls a.cur
23
+ background: #888
24
+ color: #000
25
+
26
+ .anythingSlider-default .anythingControls a.start-stop
27
+ background-color: #040
28
+ color: #ddd
29
+
30
+ .anythingSlider-default .anythingControls a.start-stop.playing
31
+ background-color: #800
32
+
33
+ .anythingSlider-default .anythingControls a.start-stop:hover,
34
+ .anythingSlider-default .anythingControls a.start-stop.hover,
35
+ .anythingSlider-default .anythingControls a.start-stop .anythingControls ul a:hover
36
+ background-image: none
37
+ color: #ddd
38
+
39
+ .anythingSlider-default.activeSlider .anythingWindow
40
+ border-color: #7C9127
41
+
42
+ .anythingSlider-default.activeSlider .anythingControls a
43
+ background-color: #7C9127
44
+
45
+ .anythingSlider-default.activeSlider .anythingControls a.cur,
46
+ .anythingSlider-default.activeSlider .anythingControls a:hover
47
+ background: #7C9127
48
+
49
+
50
+ .anythingSlider-default.activeSlider .anythingControls a.start-stop
51
+ background-color: #080
52
+ color: #fff
53
+
54
+ .anythingSlider-default.activeSlider .anythingControls a.start-stop.playing
55
+ background-color: #d00
56
+ color: #fff
57
+
58
+ .anythingSlider-default.activeSlider .start-stop:hover,
59
+ .anythingSlider-default.activeSlider .start-stop.hover
60
+ color: #fff
61
+
62
+ .anythingSlider-default .arrow
63
+ top: 50%
64
+ position: absolute
65
+ display: block
66
+
67
+ .anythingSlider-default .arrow a
68
+ display: block
69
+ width: 45px
70
+ height: 140px
71
+ margin: -70px 0 0 0 /* half height of image */
72
+ text-align: center
73
+ outline: 0
74
+ background: url(image_path('default.png')) no-repeat
75
+
76
+ .anythingSlider-default .back
77
+ left: 0
78
+ .anythingSlider-default .back a
79
+ background-position: left top
80
+ .anythingSlider-default .back a:hover,
81
+ .anythingSlider-default .back a.hover
82
+ background-position: left -140px
83
+ .anythingSlider-default .forward
84
+ right: 0
85
+ .anythingSlider-default .forward a
86
+ background-position: right top
87
+ .anythingSlider-default .forward a:hover,
88
+ .anythingSlider-default .forward a.hover
89
+ background-position: right -140px
90
+ .anythingSlider-default .anythingControls
91
+ outline: 0
92
+ display: none
93
+ .anythingSlider-default .anythingControls ul
94
+ margin: 0
95
+ padding: 0
96
+ float: left
97
+ .anythingSlider-default .anythingControls ul li
98
+ display: inline
99
+ .anythingSlider-default .anythingControls ul a
100
+ font: 11px/18px Georgia, Serif
101
+ display: inline-block
102
+ text-decoration: none
103
+ padding: 2px 8px
104
+ height: 18px
105
+ margin: 0 5px 0 0
106
+ text-align: center
107
+ outline: 0
108
+
109
+ .anythingSlider-default .anythingControls .anythingNavWindow
110
+ overflow: hidden
111
+ float: left
112
+
113
+ .anythingSlider-default .anythingControls .start-stop
114
+ padding: 2px 5px
115
+ width: 40px
116
+ text-align: center
117
+ text-decoration: none
118
+ float: right
119
+ z-index: 100
120
+ outline: 0
121
+
122
+ .as-oldie .anythingSlider-default .arrow
123
+ top: 30%
124
+ .as-oldie .anythingSlider-default .arrow a
125
+ margin: 0
126
+ .as-oldie .anythingSlider-default .anythingControls li
127
+ margin-left: 3px
128
+ .as-oldie .anythingSlider-default .anythingControls a
129
+ margin: 0
130
+ .as-oldie .anythingSlider-default .anythingNavWindow
131
+ margin: 0 2px
132
+ .as-oldie .anythingSlider-default .anythingNavWindow li
133
+ padding: 3px 0 0 0
134
+
135
+ .anythingSlider
136
+ display: block
137
+ overflow: visible !important
138
+ position: relative
139
+
140
+ .anythingSlider .anythingWindow
141
+ overflow: hidden
142
+ position: relative
143
+ width: 100%
144
+ height: 100%
145
+
146
+ .anythingSlider .anythingBase
147
+ background: transparent
148
+ list-style: none
149
+ position: absolute
150
+ overflow: visible !important
151
+ top: 0
152
+ left: 0
153
+ margin: 0
154
+ padding: 0
155
+
156
+ .anythingSlider .arrow span
157
+ display: block
158
+ visibility: hidden
159
+
160
+ .anythingSlider .arrow.disabled
161
+ display: none
162
+
163
+ .anythingSlider .panel
164
+ background: transparent
165
+ display: block
166
+ overflow: hidden
167
+ float: left
168
+ padding: 0
169
+ margin: 0
170
+
171
+ .anythingSlider .vertical .panel
172
+ float: none
173
+
174
+ .anythingSlider .fade .panel
175
+ float: none
176
+ position: absolute
177
+ top: 0
178
+ left: 0
179
+ z-index: 0
180
+
181
+ .anythingSlider .fade .activePage
182
+ z-index: 1
183
+
184
+ .anythingSlider.rtl .anythingWindow
185
+ direction: ltr
186
+ unicode-bidi: bidi-override
187
+
188
+ .anythingSlider.rtl .anythingControls ul
189
+ float: left
190
+ .anythingSlider.rtl .anythingControls ul a
191
+ float: right
192
+ .anythingSlider.rtl .start-stop
193
+ float: right
194
+
195
+ .anythingSlider,
196
+ .anythingSlider .anythingWindow,
197
+ .anythingSlider .anythingControls ul a,
198
+ .anythingSlider .arrow a,
199
+ .anythingSlider .start-stop
200
+ transition-duration: 0
201
+ -o-transition-duration: 0
202
+ -moz-transition-duration: 0
203
+ -webkit-transition-duration: 0
@@ -0,0 +1,8 @@
1
+ require "anything/slider/version"
2
+
3
+ module Anything
4
+ module Slider
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module Anything
2
+ module Slider
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails/generators'
2
+
3
+ module Slider
4
+ module Generators
5
+ class InstallGenerator < ::Rails::Generators::Base
6
+ desc "This generator load tinymce into the application.css and application.js"
7
+
8
+ def load_tinymce
9
+ inject_into_file "app/assets/javascripts/application.js", "//= require jquery.anythingslider\n", before: "//= require_tree"
10
+ inject_into_file "app/assets/stylesheets/application.css", "\n*= require anythingslider.sass", after: "*= require_tree ."
11
+ end
12
+ end
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: anything-slider
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Oscar Hugo Cardenas Lopez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: haml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: This is a personal gem to add anything slider efect in rails application
56
+ email:
57
+ - ohcl87@hotmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - anything-slider.gemspec
68
+ - app/assets/images/default.png
69
+ - app/assets/javascripts/jquery.anythingslider.js
70
+ - app/assets/stylesheets/anythingslider.sass
71
+ - lib/anything/slider.rb
72
+ - lib/anything/slider/version.rb
73
+ - lib/generators/slider/install/install_generator.rb
74
+ homepage: https://github.com/sorsucrel/anything-slider
75
+ licenses:
76
+ - MIT
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.0.3
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: provide a rails genetator and easy to configure
98
+ test_files: []