twentytwenty_rails 0.0.3
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +21 -0
- data/lib/tasks/twentytwenty_rails_tasks.rake +4 -0
- data/lib/twentytwenty_rails.rb +4 -0
- data/lib/twentytwenty_rails/engine.rb +4 -0
- data/lib/twentytwenty_rails/version.rb +3 -0
- data/vendor/assets/javascripts/jquery.event.move.js +586 -0
- data/vendor/assets/javascripts/jquery.twentytwenty.js +103 -0
- data/vendor/assets/javascripts/twentytwenty.js +2 -0
- data/vendor/assets/stylesheets/foundation.css +473 -0
- data/vendor/assets/stylesheets/twentytwenty.css +205 -0
- metadata +83 -0
@@ -0,0 +1,205 @@
|
|
1
|
+
.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after, .twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
|
2
|
+
content: " ";
|
3
|
+
display: block;
|
4
|
+
background: white;
|
5
|
+
position: absolute;
|
6
|
+
z-index: 30;
|
7
|
+
-webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
|
8
|
+
-moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
|
9
|
+
box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5); }
|
10
|
+
|
11
|
+
.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after {
|
12
|
+
width: 3px;
|
13
|
+
height: 9999px;
|
14
|
+
left: 50%;
|
15
|
+
margin-left: -1.5px; }
|
16
|
+
|
17
|
+
.twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
|
18
|
+
width: 9999px;
|
19
|
+
height: 3px;
|
20
|
+
top: 50%;
|
21
|
+
margin-top: -1.5px; }
|
22
|
+
|
23
|
+
.twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
|
24
|
+
position: absolute;
|
25
|
+
top: 0;
|
26
|
+
width: 100%;
|
27
|
+
height: 100%; }
|
28
|
+
|
29
|
+
.twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
|
30
|
+
-webkit-transition-duration: 0.5s;
|
31
|
+
-moz-transition-duration: 0.5s;
|
32
|
+
transition-duration: 0.5s; }
|
33
|
+
|
34
|
+
.twentytwenty-before-label, .twentytwenty-after-label {
|
35
|
+
-webkit-transition-property: opacity;
|
36
|
+
-moz-transition-property: opacity;
|
37
|
+
transition-property: opacity; }
|
38
|
+
|
39
|
+
.twentytwenty-before-label:before, .twentytwenty-after-label:before {
|
40
|
+
color: white;
|
41
|
+
font-size: 13px;
|
42
|
+
letter-spacing: 0.1em; }
|
43
|
+
|
44
|
+
.twentytwenty-before-label:before, .twentytwenty-after-label:before {
|
45
|
+
position: absolute;
|
46
|
+
background: rgba(255, 255, 255, 0.2);
|
47
|
+
line-height: 38px;
|
48
|
+
padding: 0 20px;
|
49
|
+
-webkit-border-radius: 2px;
|
50
|
+
-moz-border-radius: 2px;
|
51
|
+
border-radius: 2px; }
|
52
|
+
|
53
|
+
.twentytwenty-horizontal .twentytwenty-before-label:before, .twentytwenty-horizontal .twentytwenty-after-label:before {
|
54
|
+
top: 50%;
|
55
|
+
margin-top: -19px; }
|
56
|
+
|
57
|
+
.twentytwenty-vertical .twentytwenty-before-label:before, .twentytwenty-vertical .twentytwenty-after-label:before {
|
58
|
+
left: 50%;
|
59
|
+
margin-left: -45px;
|
60
|
+
text-align: center;
|
61
|
+
width: 90px; }
|
62
|
+
|
63
|
+
.twentytwenty-left-arrow, .twentytwenty-right-arrow, .twentytwenty-up-arrow, .twentytwenty-down-arrow {
|
64
|
+
width: 0;
|
65
|
+
height: 0;
|
66
|
+
border: 6px inset transparent;
|
67
|
+
position: absolute; }
|
68
|
+
|
69
|
+
.twentytwenty-left-arrow, .twentytwenty-right-arrow {
|
70
|
+
top: 50%;
|
71
|
+
margin-top: -6px; }
|
72
|
+
|
73
|
+
.twentytwenty-up-arrow, .twentytwenty-down-arrow {
|
74
|
+
left: 50%;
|
75
|
+
margin-left: -6px; }
|
76
|
+
|
77
|
+
.twentytwenty-container {
|
78
|
+
-webkit-box-sizing: content-box;
|
79
|
+
-moz-box-sizing: content-box;
|
80
|
+
box-sizing: content-box;
|
81
|
+
z-index: 0;
|
82
|
+
overflow: hidden;
|
83
|
+
position: relative;
|
84
|
+
-webkit-user-select: none;
|
85
|
+
-moz-user-select: none; }
|
86
|
+
.twentytwenty-container img {
|
87
|
+
max-width: 100%;
|
88
|
+
position: absolute;
|
89
|
+
top: 0;
|
90
|
+
display: block; }
|
91
|
+
.twentytwenty-container.active .twentytwenty-overlay, .twentytwenty-container.active :hover.twentytwenty-overlay {
|
92
|
+
background: rgba(0, 0, 0, 0); }
|
93
|
+
.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-before-label,
|
94
|
+
.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-after-label, .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-before-label,
|
95
|
+
.twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-after-label {
|
96
|
+
opacity: 0; }
|
97
|
+
.twentytwenty-container * {
|
98
|
+
-webkit-box-sizing: content-box;
|
99
|
+
-moz-box-sizing: content-box;
|
100
|
+
box-sizing: content-box; }
|
101
|
+
|
102
|
+
.twentytwenty-before-label {
|
103
|
+
opacity: 0; }
|
104
|
+
.twentytwenty-before-label:before {
|
105
|
+
content: "Before"; }
|
106
|
+
|
107
|
+
.twentytwenty-after-label {
|
108
|
+
opacity: 0; }
|
109
|
+
.twentytwenty-after-label:before {
|
110
|
+
content: "After"; }
|
111
|
+
|
112
|
+
.twentytwenty-horizontal .twentytwenty-before-label:before {
|
113
|
+
left: 10px; }
|
114
|
+
|
115
|
+
.twentytwenty-horizontal .twentytwenty-after-label:before {
|
116
|
+
right: 10px; }
|
117
|
+
|
118
|
+
.twentytwenty-vertical .twentytwenty-before-label:before {
|
119
|
+
top: 10px; }
|
120
|
+
|
121
|
+
.twentytwenty-vertical .twentytwenty-after-label:before {
|
122
|
+
bottom: 10px; }
|
123
|
+
|
124
|
+
.twentytwenty-overlay {
|
125
|
+
-webkit-transition-property: background;
|
126
|
+
-moz-transition-property: background;
|
127
|
+
transition-property: background;
|
128
|
+
background: rgba(0, 0, 0, 0);
|
129
|
+
z-index: 25; }
|
130
|
+
.twentytwenty-overlay:hover {
|
131
|
+
background: rgba(0, 0, 0, 0.5); }
|
132
|
+
.twentytwenty-overlay:hover .twentytwenty-after-label {
|
133
|
+
opacity: 1; }
|
134
|
+
.twentytwenty-overlay:hover .twentytwenty-before-label {
|
135
|
+
opacity: 1; }
|
136
|
+
|
137
|
+
.twentytwenty-before {
|
138
|
+
z-index: 20; }
|
139
|
+
|
140
|
+
.twentytwenty-after {
|
141
|
+
z-index: 10; }
|
142
|
+
|
143
|
+
.twentytwenty-handle {
|
144
|
+
height: 38px;
|
145
|
+
width: 38px;
|
146
|
+
position: absolute;
|
147
|
+
left: 50%;
|
148
|
+
top: 50%;
|
149
|
+
margin-left: -22px;
|
150
|
+
margin-top: -22px;
|
151
|
+
border: 3px solid white;
|
152
|
+
-webkit-border-radius: 1000px;
|
153
|
+
-moz-border-radius: 1000px;
|
154
|
+
border-radius: 1000px;
|
155
|
+
-webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
|
156
|
+
-moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
|
157
|
+
box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
|
158
|
+
z-index: 40;
|
159
|
+
cursor: pointer; }
|
160
|
+
|
161
|
+
.twentytwenty-horizontal .twentytwenty-handle:before {
|
162
|
+
bottom: 50%;
|
163
|
+
margin-bottom: 22px;
|
164
|
+
-webkit-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
165
|
+
-moz-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
166
|
+
box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
|
167
|
+
.twentytwenty-horizontal .twentytwenty-handle:after {
|
168
|
+
top: 50%;
|
169
|
+
margin-top: 22px;
|
170
|
+
-webkit-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
171
|
+
-moz-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
172
|
+
box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
|
173
|
+
|
174
|
+
.twentytwenty-vertical .twentytwenty-handle:before {
|
175
|
+
left: 50%;
|
176
|
+
margin-left: 22px;
|
177
|
+
-webkit-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
178
|
+
-moz-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
179
|
+
box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
|
180
|
+
.twentytwenty-vertical .twentytwenty-handle:after {
|
181
|
+
right: 50%;
|
182
|
+
margin-right: 22px;
|
183
|
+
-webkit-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
184
|
+
-moz-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
|
185
|
+
box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
|
186
|
+
|
187
|
+
.twentytwenty-left-arrow {
|
188
|
+
border-right: 6px solid white;
|
189
|
+
left: 50%;
|
190
|
+
margin-left: -17px; }
|
191
|
+
|
192
|
+
.twentytwenty-right-arrow {
|
193
|
+
border-left: 6px solid white;
|
194
|
+
right: 50%;
|
195
|
+
margin-right: -17px; }
|
196
|
+
|
197
|
+
.twentytwenty-up-arrow {
|
198
|
+
border-bottom: 6px solid white;
|
199
|
+
top: 50%;
|
200
|
+
margin-top: -17px; }
|
201
|
+
|
202
|
+
.twentytwenty-down-arrow {
|
203
|
+
border-top: 6px solid white;
|
204
|
+
bottom: 50%;
|
205
|
+
margin-bottom: -17px; }
|
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: twentytwenty_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ryumu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.1.0
|
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
|
+
description: TwentyTwenty for rails
|
42
|
+
email:
|
43
|
+
- dj.ryumu@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- Rakefile
|
50
|
+
- lib/tasks/twentytwenty_rails_tasks.rake
|
51
|
+
- lib/twentytwenty_rails.rb
|
52
|
+
- lib/twentytwenty_rails/engine.rb
|
53
|
+
- lib/twentytwenty_rails/version.rb
|
54
|
+
- vendor/assets/javascripts/jquery.event.move.js
|
55
|
+
- vendor/assets/javascripts/jquery.twentytwenty.js
|
56
|
+
- vendor/assets/javascripts/twentytwenty.js
|
57
|
+
- vendor/assets/stylesheets/foundation.css
|
58
|
+
- vendor/assets/stylesheets/twentytwenty.css
|
59
|
+
homepage: http://ryumu.info/
|
60
|
+
licenses:
|
61
|
+
- MIT
|
62
|
+
metadata: {}
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubyforge_project:
|
79
|
+
rubygems_version: 2.2.2
|
80
|
+
signing_key:
|
81
|
+
specification_version: 4
|
82
|
+
summary: twentytwenty
|
83
|
+
test_files: []
|