givelively-assets 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,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 495dbfdc200a494c23446b008f55b5fd01d4c619
4
+ data.tar.gz: 1e2a9772fc19418a9da59b67f4096e9c8f1f41d2
5
+ SHA512:
6
+ metadata.gz: a805604ba4fe1545bcd254be6e5d2af4d70b318899475b78a92265294ef15b9de661beaccd422f2633ac1c71626131757c6afde29976ad796fc17d654692b091
7
+ data.tar.gz: 5ce70ea41c56c0ccb89be9ca6d4855354d86e6476b07e2276ab34585b31f2f6a02cda91a6344ef2c50be3772fe4a71d819caf1922dc595993d059fd9903daaf6
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in givelively-assets.gemspec
4
+ gemspec
@@ -0,0 +1,36 @@
1
+ # Givelively::Assets
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/givelively/assets`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'givelively-assets'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install givelively-assets
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/givelively-assets.
36
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,56 @@
1
+ $(document).on('turbolinks:load', function() {
2
+ var hero = $('.hero')
3
+ var subnav = $( '.page-subnav' )
4
+
5
+ $('body').on('click', '.toggle-open', function(){
6
+ if (subnav) {
7
+ $(subnav).fadeOut(200, openedMobileNavSettings());
8
+ } else {
9
+ openedMobileNavSettings();
10
+ }
11
+ });
12
+
13
+ $('body').on('click', '.toggle-close, .blur-cover', function(){
14
+ closedMobileNavSettings()
15
+ if (subnav) {
16
+ $(subnav).show();
17
+ }
18
+ });
19
+
20
+ function setUpSubnavOnHomePage() {
21
+ if ( hero && subnav ) {
22
+ $(window).scroll(function () {
23
+ var limit = hero.height()
24
+ if ( $( window ).scrollTop() > limit) {
25
+ subnav.addClass( 'page-subnav-visible' );
26
+ }
27
+ if ( $( window ).scrollTop() < ( limit + 1 ) ) {
28
+ subnav.removeClass( 'page-subnav-visible' );
29
+ }
30
+ });
31
+ }
32
+ closedMobileNavSettings();
33
+ }
34
+
35
+ function openedMobileNavSettings() {
36
+ $('.mobile-nav').addClass("mobile-nav-in-view");
37
+ $('html, body').addClass('scroll-freeze');
38
+ $('.blurable-content').addClass('blur-cover');
39
+ $('.nav-left').addClass('blur-cover');
40
+ $('input').prop('disabled', true);
41
+ $(document).bind('touchmove', function(e) {
42
+ e.preventDefault();
43
+ });
44
+ }
45
+
46
+ function closedMobileNavSettings() {
47
+ $('.mobile-nav').removeClass("mobile-nav-in-view");
48
+ $('html, body').removeClass('scroll-freeze');
49
+ $('.blurable-content').removeClass('blur-cover');
50
+ $('.nav-left').removeClass('blur-cover');
51
+ $('input').prop('disabled', false);
52
+ $(document).unbind('touchmove');
53
+ }
54
+
55
+ setUpSubnavOnHomePage()
56
+ });
@@ -0,0 +1,420 @@
1
+ body {
2
+ font-family: din-2014, sans-serif;
3
+ font-style: normal;
4
+ font-size:1.25rem;
5
+ letter-spacing: 0.03rem;
6
+ color: #464646;
7
+ background: #fefefe;
8
+ }
9
+
10
+ .scroll-freeze {
11
+ margin: 0;
12
+ overflow: hidden;
13
+ }
14
+
15
+ p {
16
+ line-height: 1.4;
17
+ }
18
+
19
+ .hero p a {
20
+ text-decoration: underline;
21
+ }
22
+
23
+ a {
24
+
25
+ color: $give-lively-teal;
26
+
27
+ &:hover {
28
+ color: $give-lively-teal;
29
+ }
30
+
31
+ &.brand-primary-color {
32
+ color: $give-lively-teal;
33
+ &:hover {
34
+ color: $give-lively-teal;
35
+ }
36
+ }
37
+
38
+ &.brand-white-color {
39
+ color: $give-lively-white;
40
+ &:hover {
41
+ color: $give-lively-white;
42
+ }
43
+ }
44
+
45
+ &.hero-link {
46
+ color: $give-lively-white;
47
+ text-decoration: underline;
48
+ &:hover {
49
+ color: $give-lively-white;
50
+ }
51
+ }
52
+ }
53
+
54
+ .smaller {
55
+ font-size:80%;
56
+ }
57
+
58
+ .brand-primary-color {
59
+ color: $give-lively-teal;
60
+ }
61
+
62
+ .brand-white-color {
63
+ color: $give-lively-white;
64
+ }
65
+
66
+ .brand-gray-color {
67
+ color: $give-lively-gray;
68
+ }
69
+
70
+ .gray-line {
71
+ background-color: $give-lively-gray;
72
+ height: 2px;
73
+ margin-top: 12px;
74
+ width: 100%;
75
+ }
76
+
77
+ .btn-primary {
78
+ background-color:$give-lively-orange;
79
+ border:4px solid $give-lively-orange;
80
+
81
+ &:hover {
82
+ background-color:$give-lively-hover-orange;
83
+ border:4px solid $give-lively-hover-orange;
84
+ }
85
+ }
86
+
87
+ .btn-lg {
88
+ @include media-breakpoint-down(sm) {
89
+ padding: 0.5rem 1rem;
90
+ }
91
+ }
92
+
93
+ .btn-gl-primary {
94
+ background-color: $give-lively-branded-btn-color;
95
+ border: none;
96
+ color: $give-lively-white;
97
+
98
+ &:hover {
99
+ background-color: $give-lively-hover-branded-btn-color;
100
+ color: $give-lively-white;
101
+ border: $give-lively-branded-btn-color;
102
+ }
103
+ }
104
+
105
+ .btn-outline-secondary {
106
+ color: $give-lively-white;
107
+ border: 4px solid $give-lively-white;
108
+
109
+ &:hover {
110
+ background-color: $give-lively-white;
111
+ color: $give-lively-teal;
112
+ border: 4px solid $give-lively-white;
113
+ }
114
+ }
115
+
116
+ .text-muted {
117
+ color: $light-grey-text-color !important;
118
+ }
119
+
120
+ .radius-50 {
121
+ border-radius:50px;
122
+ }
123
+
124
+ .shadow {
125
+ -webkit-box-shadow: 0 -1px 8px 1px rgba(155, 155, 155, 0.2);
126
+ -moz-box-shadow: 0 -1px 8px 1px rgba(155, 155, 155, 0.2);
127
+ box-shadow: 0 -1px 8px 1px rgba(155, 155, 155, 0.2);
128
+ }
129
+
130
+ h1,h2,h3,h4,h5,h6 {
131
+ color: #03363d;
132
+ }
133
+
134
+ h1 {
135
+ font-size:3rem;
136
+ font-weight:600;
137
+
138
+ @include media-breakpoint-down(md) {
139
+ font-size:2.5rem;
140
+ line-height:1;
141
+ }
142
+
143
+ @include media-breakpoint-down(sm) {
144
+ font-size:1.8rem;
145
+ line-height:1;
146
+ }
147
+
148
+ }
149
+
150
+ h2 {
151
+ font-size:2.3rem;
152
+ font-weight:600;
153
+
154
+ @include media-breakpoint-down(sm) {
155
+ font-size:1.625rem;
156
+ }
157
+ }
158
+
159
+ h3 {
160
+ font-size:1.9rem;
161
+ font-weight:600;
162
+
163
+ @include media-breakpoint-down(sm) {
164
+ font-size:1.375rem;
165
+ }
166
+ }
167
+
168
+ h4 {
169
+ font-weight:600;
170
+ font-size: 1.7rem;
171
+ }
172
+
173
+ h5 {
174
+ line-height: 1.3;
175
+ font-weight:400;
176
+
177
+ @include media-breakpoint-down(sm) {
178
+ line-height:1.2;
179
+ }
180
+
181
+ }
182
+
183
+
184
+
185
+ h6 {
186
+ line-height: 1.5;
187
+ }
188
+
189
+ p {
190
+ @include media-breakpoint-down(sm) {
191
+ font-size: 1rem;
192
+ }
193
+ }
194
+
195
+ .clear-div {
196
+ clear: both;
197
+ }
198
+
199
+ .hero {
200
+ background-size: 100% 100%;
201
+ background-repeat: no-repeat;
202
+ object-fit: contain;
203
+ margin: 0 auto;
204
+ }
205
+
206
+ .disbursements-hero {
207
+ background-image: image-url("pymt_bg");
208
+ background-size: 100% 100%;
209
+ background-repeat: no-repeat;
210
+ object-fit: contain;
211
+ margin: 0 auto;
212
+
213
+ @include media-breakpoint-down(sm) {
214
+ background-image: image-url("smartdonations_bg_top_mobile");
215
+ }
216
+ }
217
+
218
+ .homepage-hero {
219
+ background-image: image-url("product_page/desktop/PP_top_Bg.png");
220
+ background-size: cover;
221
+ background-position-y: bottom;
222
+
223
+ @include media-breakpoint-down(sm) {
224
+ background-image: image-url("background_top_mobile");
225
+ }
226
+ }
227
+
228
+ .sub-container {
229
+ background-image: image-url("subheader_background");
230
+ object-fit: contain;
231
+ margin: 0 auto;
232
+ }
233
+
234
+ .brand-background-light {
235
+ background-color: rgba($competition-card-color, 0.2);
236
+ }
237
+
238
+ .gl-bordered {
239
+ border: 3px solid #FFF;
240
+ border-top: none;
241
+ .title {
242
+ position: absolute;
243
+ top: -15px;
244
+ left: 0px;
245
+
246
+ .title-before, .title-after {
247
+ content: '';
248
+ height: 3px;
249
+ margin-top: 15px;
250
+ background-color: #FFF;
251
+ width: 100%;
252
+ }
253
+
254
+ .title-before {
255
+ left: -1px;
256
+ }
257
+
258
+ .title-after {
259
+ right: -1px;
260
+ }
261
+ }
262
+ }
263
+
264
+ .circle {
265
+ position: relative;
266
+ z-index: -2;
267
+ width: 100%;
268
+
269
+ .circle-container {
270
+ position: absolute;
271
+ }
272
+
273
+ img {
274
+ width: 100%;
275
+ }
276
+
277
+ .circle-right {
278
+ .circle-container {
279
+ right: 0;
280
+ width: 250px;
281
+ top: 550px;
282
+ }
283
+ }
284
+
285
+ .circle-image-top-right-container {
286
+ right: 0;
287
+ }
288
+ }
289
+
290
+ .circle-top-right-disbursements {
291
+ bottom: 300px;
292
+
293
+ .circle-image-top-right-container {
294
+ width: 300px;
295
+ right: -15px;
296
+ top: 350px;
297
+
298
+ @include media-breakpoint-down(sm) {
299
+ width: 140px;
300
+ top: 486px;
301
+ }
302
+ }
303
+ }
304
+
305
+ .lower-background {
306
+ background-image: image-url("bg-bottom@2x.png");
307
+ background-size: cover;
308
+ }
309
+
310
+ .disbursement-works-lower-background {
311
+ background-image: image-url("pymt_bg_bottom.png");
312
+ background-size: 100% 140%;
313
+ background-repeat: no-repeat;
314
+ background-position-y: 400px;
315
+ /*height: 300px;*/
316
+
317
+ @include media-breakpoint-down(sm) {
318
+ background-size: 100%;
319
+ background-position-y: 815px;
320
+ }
321
+ }
322
+
323
+ .hidden {
324
+ display: none;
325
+ }
326
+
327
+ .col-half {
328
+ -webkit-box-flex: 0;
329
+ -webkit-flex: 0 0 4.1666666%;
330
+ -ms-flex: 0 0 4.1666666%;
331
+ flex: 0 0 4.1666666%;
332
+ width: 100%;
333
+ max-width: 4.1666666%;
334
+ }
335
+
336
+ .call-out {
337
+ font-size: .7em;
338
+ font-weight: 200;
339
+ width: fit-content;
340
+ height: 36px;
341
+ border-radius: 4px;
342
+ background-color: #0a8695;
343
+
344
+ .new-box {
345
+ background-color: $give-lively-white;
346
+ height: 20px;
347
+ border-radius: 3px;
348
+ color: #0a8695;
349
+ text-align: center;
350
+ }
351
+ }
352
+
353
+ .smart-donations-product {
354
+ .circle {
355
+ .circle-container {
356
+ left: 50px;
357
+ top: 150px;
358
+ width: 450px;
359
+ }
360
+ }
361
+ }
362
+
363
+ .responsive {
364
+ .circle {
365
+ .circle-container {
366
+ left: -450px;
367
+ top: -130px;
368
+ width: 500px;
369
+ }
370
+ }
371
+ }
372
+
373
+
374
+
375
+ @mixin vertical-align($position: relative) {
376
+ position: $position;
377
+ top: 50%;
378
+ -webkit-transform: translateY(-50%);
379
+ -ms-transform: translateY(-50%);
380
+ transform: translateY(-50%);
381
+ }
382
+
383
+ .vertical-align-content-container {
384
+ padding-top: 10%;
385
+
386
+ @include media-breakpoint-up(lg) {
387
+ padding-top: 13%;
388
+ }
389
+
390
+ @include media-breakpoint-up(xl) {
391
+ padding-top: 20%;
392
+ }
393
+ }
394
+
395
+ @media screen and ( max-width: 576px ) {
396
+ .gl-bordered h3 {
397
+ padding: 0;
398
+ }
399
+
400
+ .lower-background {
401
+ background-image: image-url("background-bottom-mobile.png");
402
+ }
403
+ }
404
+
405
+ @media screen and ( max-width: 992px ) {
406
+ .circle-top-left {
407
+ .circle-image-top-left-container {
408
+ top: -50px;
409
+ width: 250px;
410
+ }
411
+ }
412
+
413
+ .circle-top-right {
414
+ .circle-image-top-right-container {
415
+ top: 250px;
416
+ width: 250px;
417
+ }
418
+ }
419
+ }
420
+
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "givelively/assets"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'givelively/assets/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "givelively-assets"
8
+ spec.version = Givelively::Assets::VERSION
9
+ spec.authors = ["Larry Adames"]
10
+ spec.email = ["adames.larry@gmail.com\n"]
11
+
12
+ spec.summary = %q{The gem holds base assets that are common across all our applications}
13
+ spec.homepage = "https://github.com/givelively/givelively-assets-gem"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ f.match(%r{^(test|spec|features)/})
17
+ end
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.14"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
@@ -0,0 +1,8 @@
1
+ require "givelively/assets/version"
2
+
3
+ module Givelively
4
+ module Assets
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module Givelively
2
+ module Assets
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: givelively-assets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Larry Adames
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-10-24 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.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description:
42
+ email:
43
+ - 'adames.larry@gmail.com
44
+
45
+ '
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - Gemfile
52
+ - README.md
53
+ - Rakefile
54
+ - app/assets/javascripts/nav.js
55
+ - app/assets/stylesheets/global.scss
56
+ - bin/console
57
+ - bin/setup
58
+ - givelively-assets.gemspec
59
+ - lib/givelively/assets.rb
60
+ - lib/givelively/assets/version.rb
61
+ homepage: https://github.com/givelively/givelively-assets-gem
62
+ licenses: []
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.5.2
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: The gem holds base assets that are common across all our applications
84
+ test_files: []