railslider 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,144 @@
1
+ div.rs-container
2
+ width: 329px
3
+ height: 425px
4
+ margin: 0px auto 40px auto
5
+ .rs-controls
6
+ display: none
7
+ height: 40px
8
+ position: relative
9
+ & label
10
+ display: inline-block
11
+ & select, a
12
+ display: inline-block
13
+ border: 1px solid #999
14
+ padding: 5px 20px 5px 5px
15
+ font-size: 15px
16
+ color: #444
17
+ background: white
18
+ cursor: pointer
19
+ background: asset-data-url('arrow.png') no-repeat 100% 50%, linear-gradient(top, white 0%, #f6f6f6 47%, #ededed 100%)
20
+ border-radius: 5px
21
+ font-family: Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif
22
+ & select:hover, a:hover
23
+ color: #000
24
+ & select:active
25
+ background: #e5e5e5
26
+ background: asset-data-url('arrow.png') no-repeat 100% 50%, linear-gradient(top, #e5e5e5 0%, white 100%)
27
+ & select:focus
28
+ outline: none
29
+ & a
30
+ float: right
31
+ padding: 5px 10px
32
+ font-weight: bold
33
+ color: #333
34
+ text-decoration: none
35
+ background: linear-gradient(top, white 0%, #f6f6f6 47%, #ededed 100%)
36
+ &:active
37
+ background: #e5e5e5
38
+ background: linear-gradient(top, #e5e5e5 0%, white 100%)
39
+ &.rs-prev
40
+ margin-right: 10px
41
+ .rs-wrapper
42
+ position: relative
43
+ width: 329px
44
+ height: 425px
45
+ -webkit-perspective: 1000px
46
+ perspective: 1000px
47
+ .rs-shadow
48
+ background: transparent asset-data-url('shadow.png') no-repeat center bottom
49
+ position: absolute
50
+ top: -15px
51
+ right: -15px
52
+ width: 373px
53
+ height: 470px
54
+ .rs-bullets
55
+ position: relative
56
+ top: 20px
57
+ margin: 0
58
+ padding: 0
59
+ text-align: center
60
+ li
61
+ display: inline
62
+ padding: 0
63
+ margin: 0px 2px
64
+ list-style: none
65
+ a
66
+ display: inline-block
67
+ height: 12px
68
+ width: 12px
69
+ text-indent: -9999px
70
+ background: #fff
71
+ border-radius: 50%
72
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) inset
73
+ z-index: 25
74
+ &.shown
75
+ background: #bd9b83
76
+ .rs-cover
77
+ .rs-animation-command
78
+ position: absolute
79
+ width: 22px
80
+ height: 22px
81
+ top: 25px
82
+ right: 25px
83
+ z-index: 10
84
+ text-indent: -9999px
85
+ border: 0 none
86
+ opacity: 0
87
+ &:hover .rs-pause
88
+ opacity: 1
89
+ border: 0 none
90
+ text-decoration: none
91
+ background: none
92
+ -webkit-animation: pause-button-in 1s linear
93
+ -animation: pause-button-in 1s linear
94
+ .rs-pause
95
+ &:after, &:before
96
+ position: absolute
97
+ display: block
98
+ content: " "
99
+ top: 0
100
+ width: 38%
101
+ height: 22px
102
+ background: rgba(255, 255, 255, 0.5)
103
+ &:after
104
+ right: 0
105
+ &:before
106
+ left: 0
107
+ .rs-play
108
+ width: 1px
109
+ height: 1px
110
+ border-top: 10px solid transparent
111
+ border-left: 20px solid rgba(255, 255, 255, 0.5)
112
+ border-bottom: 10px solid transparent
113
+ opacity: 1
114
+ text-decoration: none
115
+ background: none
116
+ -webkit-animation: play-button-in 0.5s linear
117
+ animation: play-button-in 0.5s linear
118
+ &:hover, &:focus
119
+ border-bottom: 10px solid transparent
120
+
121
+ @-webkit-keyframes play-button-in
122
+ 0%
123
+ opacity: 0
124
+ 100%
125
+ opacity: 1
126
+
127
+ @-webkit-keyframes pause-button-in
128
+ 0%
129
+ opacity: 0
130
+ 100%
131
+ opacity: 1
132
+
133
+ @keyframes play-button-in
134
+ 0%
135
+ opacity: 0
136
+ 100%
137
+ opacity: 1
138
+
139
+ @keyframes pause-button-in
140
+ 0%
141
+ opacity: 0
142
+ 100%
143
+ opacity: 1
144
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railslider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gotqn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-07 00:00:00.000000000 Z
11
+ date: 2014-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,8 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Do not download it - just reserving the name
41
+ description: Introduces simple image slider for rails applications using CSS3 animations
42
+ for image transitions.
42
43
  email:
43
44
  - george_27@abv.bg
44
45
  executables: []
@@ -46,14 +47,34 @@ extensions: []
46
47
  extra_rdoc_files: []
47
48
  files:
48
49
  - .gitignore
50
+ - .idea/encodings.xml
51
+ - .idea/misc.xml
52
+ - .idea/modules.xml
53
+ - .idea/railslider.iml
54
+ - .idea/scopes/scope_settings.xml
55
+ - .idea/vcs.xml
49
56
  - Gemfile
50
57
  - LICENSE.txt
51
58
  - README.md
52
59
  - Rakefile
60
+ - lib/generators/railslider_generator.rb
61
+ - lib/generators/templates/railslider.rb
62
+ - lib/generators/templates/transitions.css.sass.erb
53
63
  - lib/railslider.rb
64
+ - lib/railslider/engine.rb
65
+ - lib/railslider/image.rb
54
66
  - lib/railslider/version.rb
55
67
  - railslider.gemspec
56
- homepage: ''
68
+ - vendor/assets/images/arrow.png
69
+ - vendor/assets/images/demo/1.jpg
70
+ - vendor/assets/images/demo/2.jpg
71
+ - vendor/assets/images/demo/3.jpg
72
+ - vendor/assets/images/demo/4.jpg
73
+ - vendor/assets/images/demo/5.jpg
74
+ - vendor/assets/images/shadow.png
75
+ - vendor/assets/javascripts/railslider.js
76
+ - vendor/assets/stylesheets/railslider.css.sass
77
+ homepage: https://github.com/gotqn/railslider
57
78
  licenses:
58
79
  - MIT
59
80
  metadata: {}
@@ -76,5 +97,5 @@ rubyforge_project:
76
97
  rubygems_version: 2.0.3
77
98
  signing_key:
78
99
  specification_version: 4
79
- summary: The first version will be released soon
100
+ summary: The idea is inspired by [this great codedrops article] (http://tympanus.net/codrops/2011/12/19/experimental-css3-animations-for-image-transitions/).
80
101
  test_files: []