facades 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  pkg/*
5
5
  .DS_Store
6
6
  vendor/bundle
7
+ .rbenv-gemsets
@@ -0,0 +1,63 @@
1
+ (function(){
2
+ var root = this,
3
+ F = {};
4
+
5
+ F.mobile = (function(){
6
+ return (/android|webos|iphone|ipad|ipod|blackberry/i).test(navigator.userAgent);
7
+ })();
8
+
9
+ F.device = (function(){
10
+ if((/ipad/i).test(navigator.userAgent)) return 'ipad';
11
+ if((/iphone|ipod/i).test(navigator.userAgent)) return 'iphone';
12
+ if((/android/i).test(navigator.userAgent)) return 'android';
13
+ if((/webos/i).test(navigator.userAgent)) return 'webos';
14
+ if((/blackberry/i).test(navigator.userAgent)) return 'blackberry';
15
+ })();
16
+
17
+ F.click = ( F.mobile == true ) ? "touchstart" : "click";
18
+
19
+ F.mobileResize = function(){
20
+ var doc = root.document, viewportmeta, scrollTop, bodycheck;
21
+
22
+ // If there's a hash, or addEventListener is undefined, stop here
23
+ if( !location.hash && root.addEventListener ){
24
+ window.scrollTo( 0, 1 );
25
+ scrollTop = 1;
26
+
27
+ function getScrollTop(){
28
+ return root.pageYOffset || doc.compatMode === "CSS1Compat" && doc.documentElement.scrollTop || doc.body.scrollTop || 0;
29
+ }
30
+
31
+ //reset to 0 on bodyready, if needed
32
+ bodycheck = setInterval(function(){
33
+ if( doc.body ){
34
+ clearInterval( bodycheck );
35
+ scrollTop = getScrollTop();
36
+ win.scrollTo( 0, scrollTop === 1 ? 0 : 1 );
37
+ }}, 15 );
38
+
39
+ win.addEventListener( "load", function(){
40
+ setTimeout(function(){
41
+ //at load, if user hasn't scrolled more than 20 or so...
42
+ if( getScrollTop() < 20 ){
43
+ //reset to hide addr bar at onload
44
+ win.scrollTo( 0, scrollTop === 1 ? 0 : 1 );
45
+ }
46
+ }, 0);
47
+ });
48
+ }
49
+
50
+ if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
51
+ viewportmeta = document.querySelector('meta[name="viewport"]');
52
+ if (viewportmeta) {
53
+ viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
54
+ document.body.addEventListener('gesturestart', function () {
55
+ viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
56
+ }, false);
57
+ }
58
+ }
59
+ };
60
+
61
+ root.F = F;
62
+
63
+ })( this );
@@ -13,6 +13,7 @@ module Facades
13
13
  initializer 'load facades assets' do |app|
14
14
  app.config.sass.load_paths ||= []
15
15
  app.config.sass.load_paths << Facades.scss_path
16
+ app.config.assets.paths << File.join(Facades.app_path, 'assets')
16
17
  end
17
18
 
18
19
  initializer 'configure simple_form' do |app|
@@ -1,3 +1,3 @@
1
1
  module Facades
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -16,6 +16,7 @@ arrow_left_light: 'e00f'
16
16
  arrow_up_light: 'e010'
17
17
  play: 'e011'
18
18
  pause: 'e012'
19
+ person: 'e059'
19
20
  fast_forward: 'e013'
20
21
  rewind: 'e014'
21
22
  stop: 'e015'
@@ -207,4 +207,44 @@ bolt: 'f0e7'
207
207
  sitemap: 'f0e8'
208
208
  umbrella: 'f0e9'
209
209
  paste: 'f0ea'
210
- user_md: 'f200'
210
+ user_md: 'f0f0'
211
+ lightbulb: 'f0eb'
212
+ exchange: 'f0ec'
213
+ cloud_download: 'f0ed'
214
+ cloud_upload: 'f0ee'
215
+ user_md: 'f0f0'
216
+ stethoscope: 'f0f1'
217
+ suitcase: 'f0f2'
218
+ bell_alt: 'f0f3'
219
+ coffee: 'f0f4'
220
+ food: 'f0f5'
221
+ file_alt: 'f0f6'
222
+ building: 'f0f7'
223
+ hospital: 'f0f8'
224
+ ambulance: 'f0f9'
225
+ medkit: 'f0fa'
226
+ fighter_jet: 'f0fb'
227
+ beer: 'f0fc'
228
+ h_sign: 'f0fd'
229
+ plus_sign_alt: 'f0fe'
230
+ double_angle_l: 'f100'
231
+ double_angle_r: 'f101'
232
+ double_angle_u: 'f102'
233
+ double_angle_d: 'f103'
234
+ angle_left: 'f104'
235
+ angle_right: 'f105'
236
+ angle_up: 'f106'
237
+ angle_down: 'f107'
238
+ desktop: 'f108'
239
+ laptop: 'f109'
240
+ tablet: 'f10a'
241
+ mobile_phone: 'f10b'
242
+ circle_blank: 'f10c'
243
+ quote_left: 'f10d'
244
+ quote_right: 'f10e'
245
+ spinner: 'f110'
246
+ circle: 'f111'
247
+ reply: 'f112'
248
+ github_alt: 'f113'
249
+ folder_close_a: 'f114'
250
+ folder_open_al: 'f115'
@@ -34,15 +34,17 @@ $include-headline-styles: true !default;
34
34
  //---------------------------------------------------
35
35
 
36
36
  $support-for-original-webkit-gradients: false;
37
+ $legacy-support-for-ie6:false;
38
+ $legacy-support-for-ie7:false;
37
39
 
38
40
  // ----------------------------------------------------------------------------------------
39
41
  // Icon Packs
40
42
  // ----------------------------------------------------------------------------------------
41
- /*
42
- Available packs include
43
- - Facades
44
- - FontAwesome
45
- */
43
+ //
44
+ // Available packs include
45
+ // - Facades
46
+ // - FontAwesome
47
+
46
48
  $icon-pack:'facades' !default;
47
49
  $icon-font-family:icon-font($icon-pack) !default;
48
50
 
@@ -65,7 +65,7 @@ blockquote { margin: 1em 40px; }
65
65
 
66
66
  dfn { font-style: italic; }
67
67
 
68
- hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
68
+ hr { display: block; height: 1px; border: 0; border-top: 1px solid $horizontal-rule-color; margin: 1em 0; padding: 0; }
69
69
 
70
70
  ins { background: #ff9; color: #000; text-decoration: none; }
71
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facades
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-22 00:00:00.000000000 Z
12
+ date: 2013-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -132,13 +132,13 @@ extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
134
  - .gitignore
135
- - .rbenv-gemsets
136
135
  - .rvmrc
137
136
  - .travis.yml
138
137
  - Gemfile
139
138
  - Guardfile
140
139
  - README.md
141
140
  - Rakefile
141
+ - app/assets/javascripts/facades.js
142
142
  - app/assets/javascripts/facades/debug/grid.js
143
143
  - app/controllers/facades_controller.rb
144
144
  - app/helpers/facades_helper.rb
@@ -238,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: 674460780164901873
241
+ hash: -1237208342485112586
242
242
  required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  none: false
244
244
  requirements:
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  segments:
249
249
  - 0
250
- hash: 674460780164901873
250
+ hash: -1237208342485112586
251
251
  requirements: []
252
252
  rubyforge_project: facades
253
253
  rubygems_version: 1.8.23
data/.rbenv-gemsets DELETED
@@ -1 +0,0 @@
1
- global