fohrcard-styles 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 906dad2503d60e5b9ac3cbcfc93324cbe46db58b
4
+ data.tar.gz: 07279ed16d348da333b61989341ec4ac18794d78
5
+ SHA512:
6
+ metadata.gz: 462d6d6369ad3985c586f9173535347a4a17d26c881673ea40c0b1d5077044b0effd1e6a253a30a7adc451e9e8958026a58c10334fe75e5ea8e137c1eaeb9f91
7
+ data.tar.gz: 7141d864587b0786691cafdbeb18a1d06e6a4d0681ae6e95366dfac625e6c2ff11c0d010c0fe717d068afdad80c89115cb9c72a98e5c89f57fa9dd18ef629c41
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -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/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ before_install: gem install bundler -v 1.10.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in styles.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Styles
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/styles`. 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 'styles'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install styles
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. Then, run `rake false` to run the tests. 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]/styles.
36
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "styles"
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
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module Styles
2
+ VERSION = "0.1.0"
3
+ end
data/lib/styles.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "styles/version"
2
+
3
+ module Styles
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
data/styles.gemspec ADDED
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'styles/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "fohrcard-styles"
8
+ spec.version = Styles::VERSION
9
+ spec.authors = ["richard tong"]
10
+ spec.email = ["rich@fohrcard.com"]
11
+
12
+ spec.summary = %q{Fohr Card Styles}
13
+ spec.description = %q{Fohr Card Styles Description}
14
+ spec.homepage = "https://github.com/fohrcard/styles"
15
+
16
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
+ # delete this section to allow pushing this gem to any host.
18
+
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.10"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_dependency "font-awesome-rails"
28
+
29
+ end
@@ -0,0 +1 @@
1
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ // $("body").on("focus", "input", function(e) {
2
+ // $("body").append("loop<br>");
3
+ // })
@@ -0,0 +1,53 @@
1
+ $(function() {
2
+
3
+ // Fix sidebar nav on scroll
4
+ var elementPosition = $('nav .fix-on-scroll').offset();
5
+ $(window).scroll(function(){
6
+ if($(window).scrollTop() > elementPosition.top){
7
+ $('nav .fix-on-scroll').css('position','fixed').css('top','0').css('margin-top','20px');
8
+ } else {
9
+ $('nav .fix-on-scroll').css('position','static');
10
+ }
11
+ });
12
+
13
+ // Click event to scroll to top
14
+ $('.scroll-to-top').click(function(){
15
+ $('html, body').animate({scrollTop : 0},400);
16
+ return false;
17
+ });
18
+
19
+ // Click event to scroll to specific div
20
+ $('.scroll-to-view').click(function(){
21
+ var elem_id = $(this).attr("href");
22
+ var top_of_elem = $(elem_id).offset().top;
23
+ $('html, body').animate({scrollTop : top_of_elem - 20 },400);
24
+ return false;
25
+ });
26
+
27
+ // Highlight active sidebar item on scroll
28
+
29
+ var anchorId = $(this).attr("href");
30
+
31
+ if (anchorId.length > 1 && $(anchorId)) {
32
+ var target = $(anchorId).offset().top - offset;
33
+ } else {
34
+ var target = 0;
35
+ }
36
+
37
+ });
38
+
39
+ function setActiveListElements(event){
40
+ var windowPos = $(window).scrollTop();
41
+ $('nav #page-menu li a[href^="#"]').each(function() {
42
+ var currentLink = $(this);
43
+ if ($(currentLink.attr("href")).length > 0) {
44
+ var refElement = $(currentLink.attr("href"));
45
+ if (refElement.position().top <= windowPos && (refElement.position().top + refElement.height() + $("nav #page-menu").height() ) > windowPos) {
46
+ $('nav #page-menu li a').removeClass("current");
47
+ currentLink.addClass("current");
48
+ } else {
49
+ currentLink.removeClass("current");
50
+ }
51
+ }
52
+ });
53
+ }
Binary file
@@ -0,0 +1,52 @@
1
+ .bg-black
2
+ background: #000000
3
+ .bg-dk-grey
4
+ background: #333333
5
+ .bg-grey
6
+ background: #666666
7
+ .bg-md-grey
8
+ background: #aaa
9
+ .bg-lt-grey
10
+ background: #ddd
11
+
12
+ .bg-blue
13
+ background: #3a9dfa
14
+
15
+ .bg-cyan
16
+ background: #00bcd4
17
+
18
+ .bg-cyan-lighten-1
19
+ background: #26c6da
20
+ .bg-cyan-lighten-2
21
+ background: #4dd0e1
22
+ .bg-cyan-lighten-3
23
+ background: #80deea
24
+ .bg-cyan-lighten-4
25
+ background: #b2ebf2
26
+ .bg-cyan-lighten-5
27
+ background: #e0f7fa
28
+
29
+ .bg-cyan-darken-1
30
+ background: #00acc1
31
+ .bg-cyan-darken-2
32
+ background: #0097a7
33
+ .bg-cyan-darken-3
34
+ background: #00838f
35
+ .bg-cyan-darken-4
36
+ background: #006064
37
+
38
+ .bg-cyan-accent-1
39
+ background: #84ffff
40
+ .bg-cyan-accent-2
41
+ background: #18ffff
42
+ .bg-cyan-accent-3
43
+ background: #00e5ff
44
+ .bg-cyan-accent-4
45
+ background: #00b8d4
46
+
47
+ .bg-red
48
+ background: #f44336
49
+ .bg-red-lighten-1
50
+ background: #ef5350
51
+ .bg-red-lighten-2
52
+ background: #e57373
@@ -0,0 +1,51 @@
1
+ .btn
2
+ background: #111
3
+ color: #fff
4
+ border: none
5
+ font-size: 12px
6
+ font-family: "Roboto"
7
+ font-weight: 500
8
+ height: 40px
9
+ display: inline-block
10
+ margin: 0px
11
+ padding: 0px 20px 5px 20px
12
+ line-height: 32px
13
+ -webkit-transition: 0.2s
14
+ border: 3px solid #111
15
+ outline: none
16
+
17
+ &.left
18
+ margin-left: 0px
19
+ margin-right: 5px
20
+
21
+ &.right
22
+ margin-left: 5px
23
+ margin-right: 0px
24
+
25
+ &:hover
26
+ background: $cyan
27
+ border: 3px solid $cyan
28
+ color: #fff
29
+ text-decoration: none
30
+
31
+ &.outline
32
+ background: #fff
33
+ color: #111
34
+
35
+ &:hover
36
+ background: none
37
+ color: $cyan
38
+
39
+ &.hover-red
40
+ &:hover
41
+ background: none
42
+ color: $red
43
+ border-color: $red
44
+
45
+ &.grey
46
+ color: #bbb
47
+ border-color: #ccc
48
+
49
+ &.fw
50
+ width: 100%
51
+ margin-bottom: 15px
@@ -0,0 +1,94 @@
1
+ // Global Colors
2
+
3
+ $black: #000000
4
+ $dk-grey: #333333
5
+ $grey: #666666
6
+ $md-grey: #aaa
7
+ $lt-grey: #ddd
8
+
9
+ $blue: #3a9dfa
10
+ $blue-hover: #2184d8
11
+ $blue-focus: #5ac4ff
12
+
13
+ $cyan: #00bcd4
14
+
15
+ $cyan-lighten-1: #26c6da
16
+ $cyan-lighten-2: #4dd0e1
17
+ $cyan-lighten-3: #80deea
18
+ $cyan-lighten-4: #b2ebf2
19
+ $cyan-lighten-5: #e0f7fa
20
+
21
+ $cyan-darken-1: #00acc1
22
+ $cyan-darken-2: #0097a7
23
+ $cyan-darken-3: #00838f
24
+ $cyan-darken-4: #006064
25
+
26
+ $cyan-accent-1: #84ffff
27
+ $cyan-accent-2: #18ffff
28
+ $cyan-accent-3: #00e5ff
29
+ $cyan-accent-4: #00b8d4
30
+
31
+ $red: #f44336
32
+ $red-lighten-1: #ef5350
33
+ $red-lighten-2: #e57373
34
+ $red-hover: #d50000
35
+
36
+ // Text Colors
37
+
38
+ .text-white
39
+ color: #fff
40
+ .text-black
41
+ color: #000000
42
+ .text-dk-grey
43
+ color: #333333
44
+ .text-grey
45
+ color: #666666
46
+ .text-md-grey
47
+ color: #aaa
48
+ .text-lt-grey
49
+ color: #ddd
50
+
51
+ .text-blue
52
+ color: #3a9dfa
53
+
54
+
55
+ .text-cyan
56
+ color: #00bcd4
57
+
58
+ .text-cyan-lighten-1
59
+ color: #26c6da
60
+ .text-cyan-lighten-2
61
+ color: #4dd0e1
62
+ .text-cyan-lighten-3
63
+ color: #80deea
64
+ .text-cyan-lighten-4
65
+ color: #b2ebf2
66
+ .text-cyan-lighten-5
67
+ color: #e0f7fa
68
+
69
+ .text-cyan-darken-1
70
+ color: #00acc1
71
+ .text-cyan-darken-2
72
+ color: #0097a7
73
+ .text-cyan-darken-3
74
+ color: #00838f
75
+ .text-cyan-darken-4
76
+ color: #006064
77
+
78
+ .text-cyan-accent-1
79
+ color: #84ffff
80
+ .text-cyan-accent-2
81
+ color: #18ffff
82
+ .text-cyan-accent-3
83
+ color: #00e5ff
84
+ .text-cyan-accent-4
85
+ color: #00b8d4
86
+
87
+ .text-red
88
+ color: #f44336
89
+ .text-red-lighten-1
90
+ color: #ef5350
91
+ .text-red-lighten-2
92
+ color: #e57373
93
+ .text-red-hover
94
+ color: #d50000
File without changes
@@ -0,0 +1,289 @@
1
+ fieldset
2
+ border: 0px
3
+ padding: 0px
4
+ margin: 0px
5
+
6
+ input[type='text'],
7
+ input[type='url'],
8
+ input[type='email'],
9
+ input[type='password'],
10
+ input[type='number'],
11
+ textarea
12
+ border: 2px solid #eee
13
+ font-family: "Hoefler"
14
+ width: 100%
15
+ padding: 10px 15px
16
+ font-size: 15px
17
+ resize: none
18
+ margin-bottom: 15px
19
+ -webkit-transition: 0.2s
20
+
21
+ &:focus
22
+ border: 2px solid #ccc
23
+ outline: none
24
+
25
+
26
+ label
27
+ abbr
28
+ display: none
29
+
30
+
31
+ // SIMPLE FORM STYLES
32
+
33
+ .simple_form
34
+
35
+ #error_explanation
36
+ color: #fff
37
+ font-family: "Roboto"
38
+ font-weight: 700
39
+ font-size: 11px
40
+ padding: 10px 0px 13px 0px
41
+ width: 100%
42
+ margin: 5px auto 20px auto
43
+ border: 1px solid $red
44
+ border-left: 3px solid $red
45
+ background: $red
46
+
47
+ p
48
+ margin-left: 15px
49
+ font-size: 11px
50
+ padding: 0px
51
+ margin-bottom: 0px
52
+
53
+ i
54
+ margin-right: 8px
55
+ font-size: 11px
56
+
57
+ input:focus,
58
+ textarea:focus,
59
+ button:focus
60
+ outline: none
61
+ background: #fff
62
+
63
+ fieldset, .form-inputs
64
+ padding: 0px
65
+ margin: 0px
66
+ padding-bottom: 20px
67
+ float: left
68
+ clear: both
69
+ width: 100%
70
+ border: 0px
71
+
72
+ legend
73
+ text-transform: uppercase
74
+ letter-spacing: 2px
75
+ font-weight: bold
76
+ padding: 15px 0px 17px 0px
77
+ border-bottom: 3px solid #111
78
+ font-size: 13px
79
+ margin-bottom: 30px
80
+ width: 100%
81
+
82
+ i.material-icons
83
+ font-size: 11px
84
+
85
+ span
86
+ text-transform: none
87
+ letter-spacing: 0px
88
+ font-size: 11px
89
+ font-weight: 400
90
+ color: #333
91
+ line-height: 18px
92
+
93
+ label
94
+ font-size: 10px
95
+ letter-spacing: 1px
96
+ font-weight: 500
97
+ display: inline-block
98
+ text-transform: uppercase
99
+ text-align: left
100
+ color: #888
101
+ line-height: 12px
102
+ margin-bottom: 10px
103
+ float: left
104
+
105
+ i
106
+ display: inline-block
107
+ margin-right: 5px
108
+ color: #888
109
+ width: 15px
110
+
111
+ abbr[title]
112
+ color: #ccc
113
+ border-bottom: 0px
114
+ letter-spacing: 0px
115
+ display: inline-block
116
+ margin-left: -15px
117
+ margin-right: 7px
118
+ // hide for now
119
+ display: none
120
+
121
+ .input-group
122
+ clear: both
123
+ width: 100%
124
+ float: left
125
+ display: block
126
+ margin-bottom: 25px
127
+
128
+ input[type='text'],
129
+ input[type='url'],
130
+ input[type='email'],
131
+ input[type='password'],
132
+ textarea
133
+ border: 2px solid #eee
134
+ font-family: "Hoefler"
135
+ width: 100%
136
+ padding: 10px 15px
137
+ font-size: 15px
138
+ resize: none
139
+
140
+ &:focus
141
+ border: 2px solid #ddd
142
+
143
+ textarea
144
+ height: 100px
145
+
146
+ &.large
147
+ height: 400px
148
+
149
+ // PREFIXES
150
+
151
+ .prefix-wrapper
152
+ padding: 0px 10px
153
+
154
+ .prefix-label
155
+ display: table-cell
156
+ clear: both
157
+ float: left
158
+ min-width: 25%
159
+ width: auto
160
+ border: 2px solid #eee
161
+ border-right: 0px
162
+ font-family: "Hoefler"
163
+ padding: 10px 15px 10px 20px
164
+ font-size: 15px
165
+ background: #f8f8f8
166
+ color: #aaa
167
+ font-style: italic
168
+
169
+ .prefix-input
170
+ display: table-cell
171
+ width: auto
172
+ max-width: 75%
173
+ min-width: 50%
174
+ float: left
175
+
176
+
177
+
178
+ // RADIO BUTTONS & CHECK BOXES
179
+ .checkbox, .radio
180
+
181
+ label
182
+ font-size: 11px
183
+ letter-spacing: 0px
184
+ font-weight: 400
185
+ display: inline-block
186
+ text-transform: none
187
+ text-align: left
188
+ color: #333
189
+ line-height: 12px
190
+ margin-top: 5px
191
+ margin-bottom: 5px
192
+ float: left
193
+ min-width: 50%
194
+
195
+
196
+ input
197
+ margin-right: 7px
198
+
199
+ // ERRORS
200
+
201
+ &.has-error
202
+ color: $red-lighten-1
203
+
204
+ label
205
+ color: $red-lighten-1
206
+ font-weight: 700
207
+
208
+ i
209
+ color: $red-lighten-1
210
+
211
+ span.help
212
+ font-size: 10px
213
+ font-weight: 500
214
+ display: inline-block
215
+ text-transform: lowercase
216
+ text-align: left
217
+ color: $red-lighten-2
218
+ clear: both
219
+ float: left
220
+ margin-top: -10px
221
+ margin-left: 20px
222
+ padding-bottom: 7px
223
+
224
+ @include respond-to(xs)
225
+ float: none
226
+ position: relative
227
+ clear: none
228
+ top: -5px
229
+ margin-left: 2px
230
+
231
+ &.inline
232
+ clear: none
233
+ margin-top: 0px
234
+ margin-left: 2px
235
+
236
+ input[type='text'],
237
+ input[type='url'],
238
+ input[type='email'],
239
+ input[type='password'],
240
+ textarea
241
+ color: #333
242
+ border-color: $red-lighten-1
243
+
244
+ input:focus,
245
+ textarea:focus,
246
+ button:focus
247
+ border-color: $red-lighten-1
248
+ color: #333
249
+
250
+ p.help-block
251
+ font-size: 10px
252
+ font-weight: 500
253
+ display: inline-block
254
+ text-align: left
255
+ color: #aaa
256
+ position: relative
257
+ top: -7px
258
+ left: 0px
259
+ margin-left: 20px
260
+ margin-bottom: 20px
261
+ clear: both
262
+ float: left
263
+
264
+ @include respond-to(xs)
265
+ margin-bottom: 0px
266
+
267
+ a
268
+ color: #aaa
269
+
270
+ &:hover
271
+ color: #888
272
+
273
+ .select-wrapper
274
+ .input-wrapper
275
+ clear: both
276
+ margin-left: 13px
277
+ margin-bottom: 15px
278
+
279
+ @include respond-to(xs)
280
+ margin-bottom: 0px
281
+
282
+ select
283
+ margin-bottom: 5px
284
+ margin-left: 5px
285
+
286
+
287
+ .action-group, .form-actions
288
+ padding-right: 5px
289
+ padding-bottom: 150px