ratchet_design 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ratchet/_esvg.js +72 -0
- data/app/assets/javascripts/ratchet/_icons.js +19 -0
- data/app/assets/javascripts/ratchet/_topology.js +19 -0
- data/app/assets/javascripts/ratchet/base/form.js +4 -4
- data/app/assets/javascripts/ratchet/core.js +15 -8
- data/app/assets/javascripts/ratchet/enhancement/{_collapse.js → collapse.js} +3 -3
- data/app/assets/javascripts/ratchet/enhancement/lightbox.js +52 -118
- data/app/assets/javascripts/ratchet/enhancement/modal.js +185 -0
- data/app/assets/javascripts/ratchet/enhancement/smooth-scroll.js +21 -0
- data/app/assets/javascripts/ratchet/utility/once.js +42 -0
- data/app/assets/stylesheets/ratchet/_colors.yml +54 -0
- data/app/assets/stylesheets/ratchet/_core.scss +8 -1
- data/app/assets/stylesheets/ratchet/base/_button.scss +22 -31
- data/app/assets/stylesheets/ratchet/base/_document.scss +66 -53
- data/app/assets/stylesheets/ratchet/base/_form.scss +0 -1
- data/app/assets/stylesheets/ratchet/base/_list.scss +6 -15
- data/app/assets/stylesheets/ratchet/base/_media.scss +22 -6
- data/app/assets/stylesheets/ratchet/base/_section.scss +8 -257
- data/app/assets/stylesheets/ratchet/base/_slider.scss +388 -0
- data/app/assets/stylesheets/ratchet/base/_table.scss +1 -2
- data/app/assets/stylesheets/ratchet/base/_text.scss +13 -29
- data/app/assets/stylesheets/ratchet/enhancement/_deployments.scss +26 -0
- data/app/assets/stylesheets/ratchet/enhancement/_hero.scss +1 -1
- data/app/assets/stylesheets/ratchet/enhancement/_lightbox.scss +35 -76
- data/app/assets/stylesheets/ratchet/enhancement/_modal.scss +125 -0
- data/app/assets/stylesheets/ratchet/utility/_animations.scss +8 -0
- data/app/assets/stylesheets/ratchet/utility/_color.scss +25 -105
- data/app/assets/stylesheets/ratchet/utility/_global.scss +30 -24
- data/app/assets/stylesheets/ratchet/utility/_grid.scss +152 -15
- data/app/assets/svgs/ratchet/_icons/backup.svg +9 -0
- data/app/assets/svgs/ratchet/_icons/block.svg +7 -0
- data/app/assets/svgs/ratchet/_icons/compose-logomark.svg +8 -0
- data/app/assets/svgs/ratchet/_icons/connecting-in.svg +46 -0
- data/app/assets/svgs/ratchet/_icons/connecting-out.svg +33 -0
- data/app/assets/svgs/ratchet/_icons/customer-buffer.svg +28 -0
- data/app/assets/svgs/ratchet/_icons/customer-citrix.svg +12 -0
- data/app/assets/svgs/ratchet/_icons/customer-guardian.svg +31 -0
- data/app/assets/svgs/ratchet/_icons/customer-roximity.svg +16 -0
- data/app/assets/svgs/ratchet/_icons/customer-upworthy.svg +13 -0
- data/app/assets/svgs/ratchet/_icons/db-money.svg +31 -0
- data/app/assets/svgs/ratchet/_icons/deployment.svg +1 -0
- data/app/assets/svgs/ratchet/{facebook.svg → _icons/facebook.svg} +0 -0
- data/app/assets/svgs/ratchet/_icons/gear.svg +12 -0
- data/app/assets/svgs/ratchet/{github.svg → _icons/github.svg} +0 -0
- data/app/assets/svgs/ratchet/{google-plus.svg → _icons/google-plus.svg} +0 -0
- data/app/assets/svgs/ratchet/{ibm.svg → _icons/ibm.svg} +0 -0
- data/app/assets/svgs/ratchet/{inbox.svg → _icons/inbox.svg} +0 -0
- data/app/assets/svgs/ratchet/_icons/index.svg +3 -0
- data/app/assets/svgs/ratchet/_icons/keylock.svg +8 -0
- data/app/assets/svgs/ratchet/_icons/life-preserver.svg +17 -0
- data/app/assets/svgs/ratchet/{linkedin.svg → _icons/linkedin.svg} +0 -0
- data/app/assets/svgs/ratchet/_icons/metrics.svg +7 -0
- data/app/assets/svgs/ratchet/_icons/money-stack.svg +60 -0
- data/app/assets/svgs/ratchet/_icons/notepad.svg +12 -0
- data/app/assets/svgs/ratchet/_icons/notepad2.svg +14 -0
- data/app/assets/svgs/ratchet/_icons/one-click.svg +6 -0
- data/app/assets/svgs/ratchet/{ratchet.svg → _icons/ratchet.svg} +0 -0
- data/app/assets/svgs/ratchet/_icons/reliability.svg +12 -0
- data/app/assets/svgs/ratchet/_icons/safe.svg +26 -0
- data/app/assets/svgs/ratchet/_icons/scaling.svg +16 -0
- data/app/assets/svgs/ratchet/{search.svg → _icons/search.svg} +0 -0
- data/app/assets/svgs/ratchet/{subscribe.svg → _icons/subscribe.svg} +0 -0
- data/app/assets/svgs/ratchet/{twitter.svg → _icons/twitter.svg} +0 -0
- data/app/assets/svgs/ratchet/{y-combinator.svg → _icons/y-combinator.svg} +0 -0
- data/app/assets/svgs/ratchet/_icons/youtube.svg +3 -0
- data/app/assets/svgs/ratchet/_topology/arbiter.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/backup.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/config.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/haproxy-2.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/haproxy-storage.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/haproxy.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/memory.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/portal-2.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/portal.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/sentinel-memory.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/sentinel.svg +1 -0
- data/app/assets/svgs/ratchet/_topology/storage.svg +1 -0
- data/app/helpers/ratchet/application_helper.rb +10 -2
- data/app/helpers/ratchet/form_helper.rb +84 -1
- data/app/helpers/ratchet/icon_helper.rb +113 -0
- data/app/helpers/ratchet/pricing_helper.rb +133 -0
- data/app/helpers/ratchet/toggle_nav_helper.rb +101 -0
- data/app/views/layouts/ratchet/default.html.slim +3 -3
- data/app/views/shared/ratchet/_defs.html.slim +30 -88
- data/app/views/shared/ratchet/_fonts.html.slim +88 -0
- data/app/views/shared/ratchet/_footer.html.slim +1 -1
- data/app/views/shared/ratchet/_header.html.slim +5 -5
- data/app/views/shared/ratchet/_icons.html.slim +190 -5
- data/lib/ratchet_design/config_data.rb +29 -0
- data/lib/ratchet_design/version.rb +1 -1
- data/lib/ratchet_design.rb +27 -10
- data/public/core-0.1.20.js +22627 -0
- data/public/{fonts-woff-0.1.19.css → fonts-woff-0.1.20.css} +0 -0
- data/public/{fonts-woff2-0.1.19.css → fonts-woff2-0.1.20.css} +0 -0
- metadata +84 -22
- data/app/assets/javascripts/ratchet/_svg.js +0 -55
- data/public/core-0.1.19.js +0 -138
- data/public/core-0.1.19.js.gz +0 -0
- data/public/core-0.1.19.map.json +0 -1
- data/public/fonts-woff-0.1.19.css.gz +0 -0
- data/public/fonts-woff2-0.1.19.css.gz +0 -0
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratchet_design
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cyborg
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0.5'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: inline_svg
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.2'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.2'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: block_helpers
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,24 +122,30 @@ files:
|
|
108
122
|
- README.md
|
109
123
|
- app/assets/images/ratchet/favicon.ico
|
110
124
|
- app/assets/images/ratchet/safari-pinned-tab.svg
|
111
|
-
- app/assets/javascripts/ratchet/
|
125
|
+
- app/assets/javascripts/ratchet/_esvg.js
|
126
|
+
- app/assets/javascripts/ratchet/_icons.js
|
127
|
+
- app/assets/javascripts/ratchet/_topology.js
|
112
128
|
- app/assets/javascripts/ratchet/base/form.js
|
113
129
|
- app/assets/javascripts/ratchet/base/mobilemenu.js
|
114
130
|
- app/assets/javascripts/ratchet/base/sync-input-value.js
|
115
131
|
- app/assets/javascripts/ratchet/core.js
|
116
|
-
- app/assets/javascripts/ratchet/enhancement/_collapse.js
|
117
132
|
- app/assets/javascripts/ratchet/enhancement/_swap.js
|
118
133
|
- app/assets/javascripts/ratchet/enhancement/_switcheroo.js
|
119
134
|
- app/assets/javascripts/ratchet/enhancement/_textcounter.js
|
135
|
+
- app/assets/javascripts/ratchet/enhancement/collapse.js
|
120
136
|
- app/assets/javascripts/ratchet/enhancement/lightbox.js
|
121
137
|
- app/assets/javascripts/ratchet/enhancement/mapbox.js
|
138
|
+
- app/assets/javascripts/ratchet/enhancement/modal.js
|
122
139
|
- app/assets/javascripts/ratchet/enhancement/notice.js
|
140
|
+
- app/assets/javascripts/ratchet/enhancement/smooth-scroll.js
|
123
141
|
- app/assets/javascripts/ratchet/enhancement/sticky.js
|
124
142
|
- app/assets/javascripts/ratchet/enhancement/waypoints.js
|
125
143
|
- app/assets/javascripts/ratchet/shim/object_fit.js
|
126
144
|
- app/assets/javascripts/ratchet/shim/scope.js
|
127
145
|
- app/assets/javascripts/ratchet/utility/load_font.js
|
128
146
|
- app/assets/javascripts/ratchet/utility/load_script.js
|
147
|
+
- app/assets/javascripts/ratchet/utility/once.js
|
148
|
+
- app/assets/stylesheets/ratchet/_colors.yml
|
129
149
|
- app/assets/stylesheets/ratchet/_core.scss
|
130
150
|
- app/assets/stylesheets/ratchet/base/_button.scss
|
131
151
|
- app/assets/stylesheets/ratchet/base/_document.scss
|
@@ -135,48 +155,90 @@ files:
|
|
135
155
|
- app/assets/stylesheets/ratchet/base/_media.scss
|
136
156
|
- app/assets/stylesheets/ratchet/base/_multistep-form.scss
|
137
157
|
- app/assets/stylesheets/ratchet/base/_section.scss
|
158
|
+
- app/assets/stylesheets/ratchet/base/_slider.scss
|
138
159
|
- app/assets/stylesheets/ratchet/base/_table.scss
|
139
160
|
- app/assets/stylesheets/ratchet/base/_text.scss
|
140
161
|
- app/assets/stylesheets/ratchet/base/_validation.scss
|
162
|
+
- app/assets/stylesheets/ratchet/enhancement/_deployments.scss
|
141
163
|
- app/assets/stylesheets/ratchet/enhancement/_feature.scss
|
142
164
|
- app/assets/stylesheets/ratchet/enhancement/_hero.scss
|
143
165
|
- app/assets/stylesheets/ratchet/enhancement/_lightbox.scss
|
166
|
+
- app/assets/stylesheets/ratchet/enhancement/_modal.scss
|
144
167
|
- app/assets/stylesheets/ratchet/enhancement/_notice.scss
|
145
168
|
- app/assets/stylesheets/ratchet/enhancement/_sticky-sidebar.scss
|
146
169
|
- app/assets/stylesheets/ratchet/enhancement/_tooltip.scss
|
147
170
|
- app/assets/stylesheets/ratchet/fonts-woff.css
|
148
171
|
- app/assets/stylesheets/ratchet/fonts-woff2.css
|
172
|
+
- app/assets/stylesheets/ratchet/utility/_animations.scss
|
149
173
|
- app/assets/stylesheets/ratchet/utility/_color.scss
|
150
174
|
- app/assets/stylesheets/ratchet/utility/_global.scss
|
151
175
|
- app/assets/stylesheets/ratchet/utility/_grid.scss
|
152
176
|
- app/assets/stylesheets/ratchet/utility/_loader.scss
|
153
|
-
- app/assets/svgs/ratchet/
|
154
|
-
- app/assets/svgs/ratchet/
|
155
|
-
- app/assets/svgs/ratchet/
|
156
|
-
- app/assets/svgs/ratchet/
|
157
|
-
- app/assets/svgs/ratchet/
|
158
|
-
- app/assets/svgs/ratchet/
|
159
|
-
- app/assets/svgs/ratchet/
|
160
|
-
- app/assets/svgs/ratchet/
|
161
|
-
- app/assets/svgs/ratchet/
|
162
|
-
- app/assets/svgs/ratchet/
|
163
|
-
- app/assets/svgs/ratchet/
|
177
|
+
- app/assets/svgs/ratchet/_icons/backup.svg
|
178
|
+
- app/assets/svgs/ratchet/_icons/block.svg
|
179
|
+
- app/assets/svgs/ratchet/_icons/compose-logomark.svg
|
180
|
+
- app/assets/svgs/ratchet/_icons/connecting-in.svg
|
181
|
+
- app/assets/svgs/ratchet/_icons/connecting-out.svg
|
182
|
+
- app/assets/svgs/ratchet/_icons/customer-buffer.svg
|
183
|
+
- app/assets/svgs/ratchet/_icons/customer-citrix.svg
|
184
|
+
- app/assets/svgs/ratchet/_icons/customer-guardian.svg
|
185
|
+
- app/assets/svgs/ratchet/_icons/customer-roximity.svg
|
186
|
+
- app/assets/svgs/ratchet/_icons/customer-upworthy.svg
|
187
|
+
- app/assets/svgs/ratchet/_icons/db-money.svg
|
188
|
+
- app/assets/svgs/ratchet/_icons/deployment.svg
|
189
|
+
- app/assets/svgs/ratchet/_icons/facebook.svg
|
190
|
+
- app/assets/svgs/ratchet/_icons/gear.svg
|
191
|
+
- app/assets/svgs/ratchet/_icons/github.svg
|
192
|
+
- app/assets/svgs/ratchet/_icons/google-plus.svg
|
193
|
+
- app/assets/svgs/ratchet/_icons/ibm.svg
|
194
|
+
- app/assets/svgs/ratchet/_icons/inbox.svg
|
195
|
+
- app/assets/svgs/ratchet/_icons/index.svg
|
196
|
+
- app/assets/svgs/ratchet/_icons/keylock.svg
|
197
|
+
- app/assets/svgs/ratchet/_icons/life-preserver.svg
|
198
|
+
- app/assets/svgs/ratchet/_icons/linkedin.svg
|
199
|
+
- app/assets/svgs/ratchet/_icons/metrics.svg
|
200
|
+
- app/assets/svgs/ratchet/_icons/money-stack.svg
|
201
|
+
- app/assets/svgs/ratchet/_icons/notepad.svg
|
202
|
+
- app/assets/svgs/ratchet/_icons/notepad2.svg
|
203
|
+
- app/assets/svgs/ratchet/_icons/one-click.svg
|
204
|
+
- app/assets/svgs/ratchet/_icons/ratchet.svg
|
205
|
+
- app/assets/svgs/ratchet/_icons/reliability.svg
|
206
|
+
- app/assets/svgs/ratchet/_icons/safe.svg
|
207
|
+
- app/assets/svgs/ratchet/_icons/scaling.svg
|
208
|
+
- app/assets/svgs/ratchet/_icons/search.svg
|
209
|
+
- app/assets/svgs/ratchet/_icons/subscribe.svg
|
210
|
+
- app/assets/svgs/ratchet/_icons/twitter.svg
|
211
|
+
- app/assets/svgs/ratchet/_icons/y-combinator.svg
|
212
|
+
- app/assets/svgs/ratchet/_icons/youtube.svg
|
213
|
+
- app/assets/svgs/ratchet/_topology/arbiter.svg
|
214
|
+
- app/assets/svgs/ratchet/_topology/backup.svg
|
215
|
+
- app/assets/svgs/ratchet/_topology/config.svg
|
216
|
+
- app/assets/svgs/ratchet/_topology/haproxy-2.svg
|
217
|
+
- app/assets/svgs/ratchet/_topology/haproxy-storage.svg
|
218
|
+
- app/assets/svgs/ratchet/_topology/haproxy.svg
|
219
|
+
- app/assets/svgs/ratchet/_topology/memory.svg
|
220
|
+
- app/assets/svgs/ratchet/_topology/portal-2.svg
|
221
|
+
- app/assets/svgs/ratchet/_topology/portal.svg
|
222
|
+
- app/assets/svgs/ratchet/_topology/sentinel-memory.svg
|
223
|
+
- app/assets/svgs/ratchet/_topology/sentinel.svg
|
224
|
+
- app/assets/svgs/ratchet/_topology/storage.svg
|
164
225
|
- app/helpers/ratchet/application_helper.rb
|
165
226
|
- app/helpers/ratchet/form_helper.rb
|
227
|
+
- app/helpers/ratchet/icon_helper.rb
|
228
|
+
- app/helpers/ratchet/pricing_helper.rb
|
229
|
+
- app/helpers/ratchet/toggle_nav_helper.rb
|
166
230
|
- app/views/layouts/ratchet/default.html.slim
|
167
231
|
- app/views/shared/ratchet/_defs.html.slim
|
232
|
+
- app/views/shared/ratchet/_fonts.html.slim
|
168
233
|
- app/views/shared/ratchet/_footer.html.slim
|
169
234
|
- app/views/shared/ratchet/_header.html.slim
|
170
235
|
- app/views/shared/ratchet/_icons.html.slim
|
171
236
|
- lib/ratchet_design.rb
|
237
|
+
- lib/ratchet_design/config_data.rb
|
172
238
|
- lib/ratchet_design/version.rb
|
173
|
-
- public/core-0.1.
|
174
|
-
- public/
|
175
|
-
- public/
|
176
|
-
- public/fonts-woff-0.1.19.css
|
177
|
-
- public/fonts-woff-0.1.19.css.gz
|
178
|
-
- public/fonts-woff2-0.1.19.css
|
179
|
-
- public/fonts-woff2-0.1.19.css.gz
|
239
|
+
- public/core-0.1.20.js
|
240
|
+
- public/fonts-woff-0.1.20.css
|
241
|
+
- public/fonts-woff2-0.1.20.css
|
180
242
|
homepage:
|
181
243
|
licenses:
|
182
244
|
- MIT
|
@@ -1,55 +0,0 @@
|
|
1
|
-
var esvg = {
|
2
|
-
embed: function(){
|
3
|
-
if (!document.querySelector('#esvg-symbols')) {
|
4
|
-
document.querySelector('body').insertAdjacentHTML('afterbegin', '<svg id="esvg-symbols" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:none"><symbol id="icon-facebook" viewBox="0 0 38 38" width="38" height="38"><path d="M21.4 12.8h2.1V9.4h-2.7c-2.9 0-4.2 1.3-4.2 3.7v2.6h-2V19h2v9.6h3.9v-9.7h2.7l.3-3.2h-3v-1.8c0-.8.2-1.1.9-1.1z"/></symbol><symbol id="icon-github" viewBox="0 0 38 38" width="38" height="38"><path d="M23 35.9v-4.5c0-1.6-.5-2.5-1.1-3 3.6-.4 7.5-1.8 7.5-8.1 0-1.8-.6-3.3-1.7-4.4.2-.4.7-2.1-.2-4.3 0 0-1.4-.4-4.5 1.6-1.3-.3-2.7-.5-4.2-.5-1.4 0-2.8.2-4.2.5-3.1-2.1-4.5-1.6-4.5-1.6-.9 2.3-.3 3.9-.2 4.3-1 1.1-1.7 2.6-1.7 4.4 0 6.3 3.8 7.7 7.4 8.1-.4.4-.9 1.1-1 2.2-1 .4-3.3 1.1-4.8-1.4 0 0-.9-1.6-2.5-1.7 0 0-1.6 0-.1 1 0 0 1 .5 1.8 2.4 0 0 1 2.9 5.5 1.9v3c0 .4-.3 1-1 .8 1.6.5 3.4.9 5.2.9 1.8 0 3.5-.3 5.2-.9-.6.3-.9-.2-.9-.7z"/></symbol><symbol id="icon-google-plus" viewBox="0 0 38 38" width="38" height="38"><path d="M10.6 24c0 2 2.3 3.2 5.1 3.2 3.9 0 5.4-2.1 5.4-3.7 0-1.4-.5-2.3-2-3.4-1.6-1.1-1.9-1.8-.5-2.9.8-.6 1.4-1.5 1.4-2.6 0-1.2-.5-2.2-1.4-2.7h1.3l1.1-1.1h-4.8c-3 0-4.5 1.8-4.5 3.8s1.4 3.6 4.1 3.6c-.4.9-.3 1.6.4 2.2-4.6 0-5.6 2-5.6 3.6zm3-9.5c-.3-1.7.6-3 1.9-3s2.4 1.4 2.6 3.1c.2 1.7-.5 2.8-1.7 2.8-1.3 0-2.6-1.2-2.8-2.9zm2.4 6.3c2.2.1 3.4 1.4 3.4 2.8 0 1.5-1.2 2.6-3.7 2.6-1.9 0-3.3-1.2-3.3-2.7 0-1.4 1.6-2.7 3.6-2.7zM25.2 10.9h-1.1v2.2h-2.2v1.1h2.2v2.2h1.1v-2.2h2.2v-1.1h-2.2"/></symbol><symbol id="icon-ibm" viewBox="0 0 75 30" width="75" height="30"><path d="M0 0v2h14.6V0H0zm16.7 0v2h20.8s-2.1-2-4.9-2H16.7zm24.8 0v2h12.6l-.8-2H41.5zm21.7 0l-.8 2h12.5V0H63.2zM0 4v2h14.6V4H0zm16.7 0v2h23.2s-.3-1.6-.8-2H16.7zm24.8 0v2h14l-.7-2H41.5zm20.2 0L61 6h13.9V4H61.7zM4.2 8v2.1h6.3V8H4.2zm16.7 0v2.1h6.3V8h-6.3zm12.4 0v2.1h6.3S40 9 40 8h-6.7zm12.5 0v2.1H57L56.2 8H45.8zm14.5 0l-.8 2.1h11.3V8H60.3zM4.2 12v2h6.3v-2H4.2zm16.7 0v2H37s1.4-1.1 1.8-2H20.9zm24.9 0v2h6.3v-1.1l.4 1.1H64l.4-1.1V14h6.3v-2H58.9l-.6 1.7-.6-1.7H45.8zM4.2 16v2h6.3v-2H4.2zm16.7 0v2h17.9c-.4-1-1.8-2-1.8-2H20.9zm24.9 0v2h6.3v-2h-6.3zm7.4 0l.8 2h8.7l.7-2H53.2zm11.3 0v2h6.3v-2h-6.3zM4.2 20v2h6.3v-2H4.2zm16.7 0v2h6.3v-2h-6.3zm12.4 0v2H40c0-1-.4-2-.4-2h-6.3zm12.5 0v2h6.3v-2h-6.3zm8.9 0l.8 2h5.8l.8-2h-7.4zm9.8 0v2h6.3v-2h-6.3zM.1 23.9V26h14.6v-2.1H.1zm16.6 0V26h22.5c.5-.5.8-2.1.8-2.1H16.7zm25 0V26h10.4v-2.1H41.7zm14.4 0l.8 2.1h2.9l.7-2.1h-4.4zm8.4 0V26H75v-2.1H64.5zM.1 28v2h14.6v-2H.1zm16.6 0v2h15.9c2.8 0 4.9-2 4.9-2H16.7zm25 0v2h10.4v-2H41.7zm15.8 0l.7 2h.1l.8-2h-1.6zm7 0v2H75v-2H64.5z"/></symbol><symbol id="icon-inbox" viewBox="0 0 76 54" width="76" height="54"><path d="M74 7S38.66 31 38 31C37.34 31 2 7 2 7V2.63h72V7zm0 6.24v38.33H2V13.24s34.59 22.9 36 22.9c1.41 0 36-22.9 36-22.9z"/></symbol><symbol id="icon-linkedin" viewBox="0 0 38 38" width="38" height="38"><path d="M11.6 15.5H15v10.8h-3.4z"/><ellipse cx="13.3" cy="12.1" rx="2" ry="2"/><path d="M27.5 26.4v-6.9c0-2.9-1.6-4.3-3.9-4.3S20.3 17 20.3 17v-1.5h-3.2v10.8h3.2v-5.7c0-1.5.7-2.4 2-2.4 1.2 0 1.8.9 1.8 2.4v5.7h3.4z"/></symbol><symbol id="icon-ratchet" viewBox="0 0 600 120" width="600" height="120"><path d="M502.1 2.5H397v39h-20v-39h-37v101.8l-16.8-30.2c-4.5 7.4-12.6 12.4-21.9 12.4-14.2 0-25.7-11.5-25.7-25.7s11.5-25.7 25.7-25.7c8.2 0 15.5 3.8 20.2 9.8l.6-1 18-31.7c-3.1-2.2-6.7-4.2-11-6-3.7-1.6-8-3-13.1-4.3C311 .6 305.2 0 298.7 0c-8.2 0-16 1.4-23.3 4.2C268 7 261.6 11 256.2 16.3c-4.3 4.2-8 9-10.9 14.5 2.2-5.5 5.8-12.5 11.5-18.1 3.8-3.8 8.2-7.2 12.9-9.2H113.5L82.8 83.6l13.7 32.9h9.6l2.9-8h36.4l2.9 8H222v-77h19.5c-2.1 6.3-3.2 13.1-3.2 20.5 0 8.9 1.5 17.1 4.6 24.4 3.1 7.4 7.4 13.7 12.9 18.9 5.5 5.3 12 9.3 19.5 12.3 7.5 2.9 15.8 4.4 24.7 4.4 6.6 0 12.5-.7 17.7-2.1 5.1-1.4 9.3-2.9 13-4.5 3.6-1.7 7.3-3.5 9.3-5.6v9.6h37v-43h20v43h32l5.8-107.9.6 107.9H503v-37h-32v-7h19v-28h-19v-6h31V3.2l6.3 36.3H532v78h38v-78h23.7l6.3-37h-97.9zm-379 71l4.2-10.9 4.2 10.9h-8.4zm19.3-66.4l18.4 32.4H184v76.1L142.4 7.1zM92 43.5c0-22.9-18.5-41-41.4-41H0v114h37V87.6l16.7 28.9h42.9L74.2 77.1C84.9 69.7 92 57.6 92 43.5zm-50.1 13H37v-21h4.9c5.4 0 9.7 4.7 9.8 10.5-.1 5.1-4.5 10.5-9.8 10.5zm251.9 17.2l-7.6-13.2 7.6-13.1h15l7.5 13.1-7.5 13.2h-15z"/></symbol><symbol id="icon-search" viewBox="0 0 38 38" width="38" height="38"><path d="M26.7 25.1L23 21.3c.7-1.1 1.2-2.4 1.2-3.8-.1-3.6-3-6.5-6.7-6.5-3.6 0-6.6 2.9-6.6 6.6s3 6.6 6.6 6.6c1.4 0 2.7-.5 3.8-1.2l3.7 3.7c.2.2.5.3.9.3.3 0 .6-.1.9-.3.3-.4.3-1.2-.1-1.6m-9.1-2.6c-2.7 0-4.9-2.2-4.9-4.9s2.2-4.9 4.9-4.9 4.9 2.2 4.9 4.9-2.2 4.9-4.9 4.9"/></symbol><symbol id="icon-subscribe" viewBox="0 0 38 38" width="38" height="38"><path d="M21.6 26.9c0-5.8-4.7-10.5-10.5-10.5v3.2c4 0 7.3 3.3 7.3 7.3h3.2zm-6.2-2.2c0-1.2-1-2.2-2.2-2.2-1.2 0-2.2 1-2.2 2.2s1 2.2 2.2 2.2c1.2 0 2.2-.9 2.2-2.2zM27 27c0-8.8-7.1-16-15.9-16v3.2c3.4 0 6.6 1.3 9 3.7s3.7 5.6 3.7 9l3.2.1z"/></symbol><symbol id="icon-twitter" viewBox="0 0 38 38" width="38" height="38"><path d="M27 12.4c-.7.4-1.4.6-2.2.8-.6-.7-1.5-1.1-2.5-1.1-2.3 0-3.9 2.1-3.4 4.3-2.9-.1-5.5-1.5-7.2-3.6-.9 1.5-.4 3.6 1.1 4.6-.6 0-1.1-.1-1.6-.4 0 1.7 1.1 3.2 2.8 3.5-.5.2-1.1.2-1.6.1.4 1.4 1.7 2.4 3.2 2.4-1.5 1.1-3.4 1.6-5.2 1.4 1.5 1 3.3 1.6 5.3 1.6 6.5 0 10.1-5.4 9.9-10.3.7-.5 1.3-1.1 1.9-1.9-.6.2-1.3.4-2 .5.7-.4 1.3-1.2 1.5-1.9z"/></symbol><symbol id="icon-y-combinator" viewBox="0 0 38 38" width="38" height="38"><path d="M22.4 10.9h3.8l-5.3 10v6h-3.3v-6l-5.5-10H16l3.3 7 3.1-7z"/></symbol></svg>')
|
5
|
-
}
|
6
|
-
},
|
7
|
-
icon: function(name, classnames) {
|
8
|
-
var svgName = this.iconName(name)
|
9
|
-
var element = document.querySelector('#'+svgName)
|
10
|
-
|
11
|
-
if (element) {
|
12
|
-
return '<svg class="svg-icon '+svgName+' '+(classnames || '')+'" '+this.dimensions(element)+'><use xlink:href="#'+svgName+'"/></svg>'
|
13
|
-
} else {
|
14
|
-
console.error('File not found: "'+name+'.svg" at app/assets/svgs/ratchet/')
|
15
|
-
}
|
16
|
-
},
|
17
|
-
iconName: function(name) {
|
18
|
-
var before = true
|
19
|
-
if (before) {
|
20
|
-
return "icon-"+this.dasherize(name)
|
21
|
-
} else {
|
22
|
-
return name+"-icon"
|
23
|
-
}
|
24
|
-
},
|
25
|
-
dimensions: function(el) {
|
26
|
-
return 'viewBox="'+el.getAttribute('viewBox')+'" width="'+el.getAttribute('width')+'" height="'+el.getAttribute('height')+'"'
|
27
|
-
},
|
28
|
-
dasherize: function(input) {
|
29
|
-
return input.replace(/[W,_]/g, '-').replace(/-{2,}/g, '-')
|
30
|
-
},
|
31
|
-
load: function(){
|
32
|
-
// If DOM is already ready, embed SVGs
|
33
|
-
if (document.readyState == 'interactive') { this.embed() }
|
34
|
-
|
35
|
-
// Handle Turbolinks (or other things that fire page change events)
|
36
|
-
document.addEventListener("page:change", function(event) { this.embed() }.bind(this))
|
37
|
-
|
38
|
-
// Handle standard DOM ready events
|
39
|
-
document.addEventListener("DOMContentLoaded", function(event) { this.embed() }.bind(this))
|
40
|
-
},
|
41
|
-
aliases: {},
|
42
|
-
alias: function(name) {
|
43
|
-
var aliased = this.aliases[name]
|
44
|
-
if (typeof(aliased) != "undefined") {
|
45
|
-
return aliased
|
46
|
-
} else {
|
47
|
-
return name
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
esvg.load()
|
53
|
-
|
54
|
-
// Work with module exports:
|
55
|
-
if(typeof(module) != 'undefined') { module.exports = esvg }
|