mobile_reset 0.1.1

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.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ mobile_reset
2
+ ============
3
+
4
+ A compass extension for resetting mobile specific styles. An extension of the [Meyer CSS Reset](http://meyerweb.com/eric/tools/css/reset/) applied to modern mobile browsers, particularly Mobile Safari.
5
+
6
+ ## Usage
7
+ From the command line:
8
+
9
+ (sudo) gem install mobile_reset
10
+
11
+ Or, from your project's Gemfile:
12
+
13
+ gem 'mobile_reset'
14
+
15
+ At the top of your main SCSS file, add the following:
16
+
17
+ @import 'mobile_reset';
18
+
19
+ In your compass config file:
20
+
21
+ require 'mobile_reset'
22
+
23
+ From the command line:
24
+
25
+ compass install 'mobile_reset'
26
+
27
+ If you're using jQuery, you can add the following to automatically disable the long tap touch callout dialog in mobile safari on all links with `href='#'`:
28
+
29
+ $(window).load(function() {
30
+ $('a[href="#"]').addClass('no-touch-callout');
31
+ }
@@ -0,0 +1,3 @@
1
+ require 'compass'
2
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
3
+ Compass::Frameworks.register('mobile_reset', :path => extension_path)
@@ -0,0 +1,36 @@
1
+ // Disable shadow effects in textfield inputs
2
+ input[type="password"],
3
+ input[type="datetime"],
4
+ input[type="datetime-local"],
5
+ input[type="date"],
6
+ input[type="email"],
7
+ input[type="month"],
8
+ input[type="number"],
9
+ input[type="tel"],
10
+ input[type="text"],
11
+ input[type="time"],
12
+ input[type="week"],
13
+ input[type="url"],
14
+ textarea {
15
+ -webkit-appearance: none;
16
+ }
17
+
18
+ // Disable webkit tap-highlighting on non-links
19
+ body {
20
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
21
+ tap-highlight-color: rgba(0,0,0,0);
22
+ }
23
+
24
+ // Enable webkit tap-highlighting on links and inputs
25
+ a,
26
+ input,
27
+ textarea {
28
+ -webkit-tap-highlight-color: #999;
29
+ tap-highlight-color: #999;
30
+ }
31
+
32
+ // Add this class to any links that are overridden by Javascript
33
+ // In jQuery: $('a[href="#"]').addClass('no-touch-callout');
34
+ .no-touch-callout {
35
+ -webkit-touch-callout: none;
36
+ }
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mobile_reset
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
11
+ platform: ruby
12
+ authors:
13
+ - Sam Grossberg
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-07-23 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: compass
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 29
29
+ segments:
30
+ - 0
31
+ - 11
32
+ version: "0.11"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: a compass extension for resetting mobile specific styles
36
+ email: sam.grossberg@gmail.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - README.md
45
+ - lib/mobile_reset.rb
46
+ - stylesheets/_mobile_reset.scss
47
+ homepage: http://www.samgrossberg.com/
48
+ licenses: []
49
+
50
+ post_install_message:
51
+ rdoc_options: []
52
+
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
72
+ version: "0"
73
+ requirements: []
74
+
75
+ rubyforge_project:
76
+ rubygems_version: 1.8.24
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: a compass extension for resetting mobile specific styles
80
+ test_files: []
81
+