ratchet_design 0.1.7 → 0.1.8
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 +4 -4
- data/app/assets/images/ratchet/favicon.ico +0 -0
- data/app/assets/images/ratchet/safari-pinned-tab.svg +1 -0
- data/app/assets/javascripts/ratchet/core.js +2 -0
- data/app/assets/javascripts/ratchet/enhancement/_swap.js +71 -64
- data/app/assets/javascripts/ratchet/enhancement/lightbox.js +256 -0
- data/app/assets/javascripts/ratchet/enhancement/loader.js +4 -4
- data/app/assets/javascripts/ratchet/shim/classlist.js +1 -1
- data/app/assets/javascripts/ratchet/shim/scope.js +94 -0
- data/app/assets/stylesheets/ratchet/_core.scss +2 -1
- data/app/assets/stylesheets/ratchet/base/_button.scss +1 -1
- data/app/assets/stylesheets/ratchet/base/_form.scss +58 -38
- data/app/assets/stylesheets/ratchet/base/_text.scss +8 -8
- data/app/assets/stylesheets/ratchet/enhancement/_lightbox.scss +93 -0
- data/app/assets/stylesheets/ratchet/enhancement/_loader.scss +1 -1
- data/app/assets/stylesheets/ratchet/enhancement/_tooltip.scss +6 -1
- data/app/assets/stylesheets/ratchet/utility/_global.scss +1 -2
- data/app/helpers/ratchet/application_helper.rb +5 -0
- data/app/helpers/ratchet/form_helper.rb +140 -0
- data/app/views/layouts/ratchet/default.html.slim +2 -1
- data/app/views/shared/ratchet/_footer.html.slim +1 -1
- data/lib/ratchet_design/version.rb +1 -1
- data/lib/ratchet_design.rb +1 -0
- data/public/assets/ratchet/core-0.1.8.js +107 -0
- data/public/assets/ratchet/core-0.1.8.js.gz +0 -0
- data/public/assets/ratchet/core-0.1.8.map.json +1 -0
- data/public/assets/ratchet/{fonts-woff-0.1.7.css → fonts-woff-0.1.8.css} +0 -0
- data/public/assets/ratchet/{fonts-woff-0.1.7.css.gz → fonts-woff-0.1.8.css.gz} +0 -0
- data/public/assets/ratchet/{fonts-woff2-0.1.7.css → fonts-woff2-0.1.8.css} +0 -0
- data/public/assets/ratchet/{fonts-woff2-0.1.7.css.gz → fonts-woff2-0.1.8.css.gz} +0 -0
- metadata +42 -10
- data/app/assets/javascripts/ratchet/enhancement/_lightbox.js +0 -93
- data/public/assets/ratchet/core-0.1.7.js +0 -105
- data/public/assets/ratchet/core-0.1.7.js.gz +0 -0
- data/public/assets/ratchet/core-0.1.7.map.json +0 -1
File without changes
|
Binary file
|
File without changes
|
Binary file
|
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.8
|
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: 2016-
|
12
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cyborg
|
@@ -39,6 +39,20 @@ dependencies:
|
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '3.1'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: country_select
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '2.5'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '2.5'
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: bundler
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,6 +67,20 @@ dependencies:
|
|
53
67
|
- - "~>"
|
54
68
|
- !ruby/object:Gem::Version
|
55
69
|
version: '1.12'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rack-cors
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.4'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.4'
|
56
84
|
- !ruby/object:Gem::Dependency
|
57
85
|
name: rake
|
58
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,22 +107,24 @@ files:
|
|
79
107
|
- LICENSE.txt
|
80
108
|
- README.md
|
81
109
|
- app/assets/images/ratchet/favicon.ico
|
110
|
+
- app/assets/images/ratchet/safari-pinned-tab.svg
|
82
111
|
- app/assets/javascripts/ratchet/_svg.js
|
83
112
|
- app/assets/javascripts/ratchet/base/form.js
|
84
113
|
- app/assets/javascripts/ratchet/base/mobilemenu.js
|
85
114
|
- app/assets/javascripts/ratchet/base/validation.js
|
86
115
|
- app/assets/javascripts/ratchet/core.js
|
87
116
|
- app/assets/javascripts/ratchet/enhancement/_collapse.js
|
88
|
-
- app/assets/javascripts/ratchet/enhancement/_lightbox.js
|
89
117
|
- app/assets/javascripts/ratchet/enhancement/_swap.js
|
90
118
|
- app/assets/javascripts/ratchet/enhancement/_switcheroo.js
|
91
119
|
- app/assets/javascripts/ratchet/enhancement/_textcounter.js
|
120
|
+
- app/assets/javascripts/ratchet/enhancement/lightbox.js
|
92
121
|
- app/assets/javascripts/ratchet/enhancement/loader.js
|
93
122
|
- app/assets/javascripts/ratchet/enhancement/notice.js
|
94
123
|
- app/assets/javascripts/ratchet/enhancement/sticky.js
|
95
124
|
- app/assets/javascripts/ratchet/enhancement/waypoints.js
|
96
125
|
- app/assets/javascripts/ratchet/shim/classlist.js
|
97
126
|
- app/assets/javascripts/ratchet/shim/object.assign.js
|
127
|
+
- app/assets/javascripts/ratchet/shim/scope.js
|
98
128
|
- app/assets/javascripts/ratchet/utility/ajax.js
|
99
129
|
- app/assets/javascripts/ratchet/utility/compile_data.js
|
100
130
|
- app/assets/javascripts/ratchet/utility/from_top.js
|
@@ -120,6 +150,7 @@ files:
|
|
120
150
|
- app/assets/stylesheets/ratchet/enhancement/_contrast-section.scss
|
121
151
|
- app/assets/stylesheets/ratchet/enhancement/_feature.scss
|
122
152
|
- app/assets/stylesheets/ratchet/enhancement/_hero.scss
|
153
|
+
- app/assets/stylesheets/ratchet/enhancement/_lightbox.scss
|
123
154
|
- app/assets/stylesheets/ratchet/enhancement/_loader.scss
|
124
155
|
- app/assets/stylesheets/ratchet/enhancement/_notice.scss
|
125
156
|
- app/assets/stylesheets/ratchet/enhancement/_sticky-sidebar.scss
|
@@ -140,19 +171,20 @@ files:
|
|
140
171
|
- app/assets/svgs/ratchet/twitter.svg
|
141
172
|
- app/assets/svgs/ratchet/y-combinator.svg
|
142
173
|
- app/helpers/ratchet/application_helper.rb
|
174
|
+
- app/helpers/ratchet/form_helper.rb
|
143
175
|
- app/views/layouts/ratchet/default.html.slim
|
144
176
|
- app/views/shared/ratchet/_footer.html.slim
|
145
177
|
- app/views/shared/ratchet/_header.html.slim
|
146
178
|
- app/views/shared/ratchet/_icons.html.slim
|
147
179
|
- lib/ratchet_design.rb
|
148
180
|
- lib/ratchet_design/version.rb
|
149
|
-
- public/assets/ratchet/core-0.1.
|
150
|
-
- public/assets/ratchet/core-0.1.
|
151
|
-
- public/assets/ratchet/core-0.1.
|
152
|
-
- public/assets/ratchet/fonts-woff-0.1.
|
153
|
-
- public/assets/ratchet/fonts-woff-0.1.
|
154
|
-
- public/assets/ratchet/fonts-woff2-0.1.
|
155
|
-
- public/assets/ratchet/fonts-woff2-0.1.
|
181
|
+
- public/assets/ratchet/core-0.1.8.js
|
182
|
+
- public/assets/ratchet/core-0.1.8.js.gz
|
183
|
+
- public/assets/ratchet/core-0.1.8.map.json
|
184
|
+
- public/assets/ratchet/fonts-woff-0.1.8.css
|
185
|
+
- public/assets/ratchet/fonts-woff-0.1.8.css.gz
|
186
|
+
- public/assets/ratchet/fonts-woff2-0.1.8.css
|
187
|
+
- public/assets/ratchet/fonts-woff2-0.1.8.css.gz
|
156
188
|
homepage:
|
157
189
|
licenses:
|
158
190
|
- MIT
|
@@ -1,93 +0,0 @@
|
|
1
|
-
Event = require('compose-event')
|
2
|
-
/**
|
3
|
-
* Lightbox.js 0.0.2
|
4
|
-
* A lightbox plugin that makes sense
|
5
|
-
* @author Kyle Foster (@hkfoster)
|
6
|
-
* @license MIT
|
7
|
-
**/
|
8
|
-
|
9
|
-
// Transport
|
10
|
-
( function( root, factory ) {
|
11
|
-
if ( typeof define === 'function' && define.amd ) {
|
12
|
-
define( factory );
|
13
|
-
} else if ( typeof exports === 'object' ) {
|
14
|
-
module.exports = factory;
|
15
|
-
} else {
|
16
|
-
root.lightbox = factory( root );
|
17
|
-
}
|
18
|
-
})( this, function( root ) {
|
19
|
-
|
20
|
-
'use strict';
|
21
|
-
|
22
|
-
// Define global variable(s)
|
23
|
-
var lightboxTrigger = document.querySelectorAll( '[rel="lightbox"]' );
|
24
|
-
|
25
|
-
// Only run if lightbox trigger is present
|
26
|
-
if ( lightboxTrigger ) {
|
27
|
-
init();
|
28
|
-
}
|
29
|
-
|
30
|
-
// Where the magic happens
|
31
|
-
function init() {
|
32
|
-
|
33
|
-
// Preload lightbox images
|
34
|
-
for ( var imgIndex = 0; imgIndex < lightboxTrigger.length; imgIndex ++ ) {
|
35
|
-
|
36
|
-
// Create a temporary image element
|
37
|
-
var tempImg = new Image();
|
38
|
-
|
39
|
-
// And use it to load up image(s)
|
40
|
-
tempImg.src = lightboxTrigger[ imgIndex ].href;
|
41
|
-
|
42
|
-
}
|
43
|
-
|
44
|
-
// Attach our click listener
|
45
|
-
Event.on(document, 'click', '[rel="lightbox"]', openLightbox)
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
// Open lightbox function
|
50
|
-
function openLightbox( event ) {
|
51
|
-
|
52
|
-
// Prevent default behavior/bubbling
|
53
|
-
event.stopPropagation();
|
54
|
-
event.preventDefault();
|
55
|
-
|
56
|
-
// Define scoped variable(s)
|
57
|
-
var lightboxUrl = event.target.href,
|
58
|
-
lightboxCont = '<aside class="lightbox-overlay"><figure class="lightbox-content"><img src="' + lightboxUrl + '" alt=""><a class="close-btn" href="#?"></a></figure></aside>';
|
59
|
-
|
60
|
-
// Open the lightbox
|
61
|
-
document.body.insertAdjacentHTML('beforeend' lightboxCont );
|
62
|
-
|
63
|
-
// Prevent scrolling while lightbox is shown
|
64
|
-
document.body.style.overflow = 'hidden';
|
65
|
-
|
66
|
-
Event.one('.close-btn', 'click', closeLightbox)
|
67
|
-
|
68
|
-
}
|
69
|
-
|
70
|
-
// Close lightbox function
|
71
|
-
function closeLightbox( event ) {
|
72
|
-
|
73
|
-
// Prevent default behavior/bubbling
|
74
|
-
event.stopPropagation();
|
75
|
-
event.preventDefault();
|
76
|
-
|
77
|
-
// Define scoped variable(s)
|
78
|
-
var lightboxOverlay = document.querySelector( '.lightbox-overlay' ),
|
79
|
-
lightboxContent = lightboxOverlay.querySelector( '.lightbox-content' ),
|
80
|
-
|
81
|
-
// Kick off closing animation
|
82
|
-
lightboxContent.className += ' closing';
|
83
|
-
|
84
|
-
Event.one(lightboxContent, 'animationend', function() {
|
85
|
-
// Remove the lightbox from the DOM
|
86
|
-
document.body.removeChild( lightboxOverlay );
|
87
|
-
|
88
|
-
// And turn scrolling back on
|
89
|
-
document.body.style.overflow = '';
|
90
|
-
})
|
91
|
-
}
|
92
|
-
|
93
|
-
});
|