switchery-rails 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,64 @@
1
+ /*
2
+ *
3
+ * Main stylesheet for Switchery.
4
+ * http://abpetkov.github.io/switchery/
5
+ *
6
+ */
7
+
8
+ /* Switchery defaults. */
9
+
10
+ .switchery {
11
+ background-color: #fff;
12
+ border: 1px solid #dfdfdf;
13
+ border-radius: 20px;
14
+ cursor: pointer;
15
+ display: inline-block;
16
+ height: 30px;
17
+ position: relative;
18
+ vertical-align: middle;
19
+ width: 50px;
20
+
21
+ -moz-user-select: none;
22
+ -khtml-user-select: none;
23
+ -webkit-user-select: none;
24
+ -ms-user-select: none;
25
+ user-select: none;
26
+ box-sizing: content-box;
27
+ background-clip: content-box;
28
+ }
29
+
30
+ .switchery > small {
31
+ background: #fff;
32
+ border-radius: 100%;
33
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
34
+ height: 30px;
35
+ position: absolute;
36
+ top: 0;
37
+ width: 30px;
38
+ }
39
+
40
+ /* Switchery sizes. */
41
+
42
+ .switchery-small {
43
+ border-radius: 20px;
44
+ height: 20px;
45
+ width: 33px;
46
+ }
47
+
48
+ .switchery-small > small {
49
+ height: 20px;
50
+ width: 20px;
51
+ }
52
+
53
+ .switchery-large {
54
+ border-radius: 40px;
55
+ height: 40px;
56
+ width: 66px;
57
+ }
58
+
59
+ .switchery-large > small {
60
+ height: 40px;
61
+ width: 40px;
62
+ }
63
+
64
+
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: switchery-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Guillaume Hain
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: This gem provides Switchery driver for your Rails application
56
+ email:
57
+ - zedtux@zedroot.org
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".ruby-gemset"
64
+ - ".ruby-version"
65
+ - CHANGELOG.md
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - lib/switchery-rails.rb
71
+ - lib/switchery/rails.rb
72
+ - lib/switchery/rails/engine.rb
73
+ - lib/switchery/rails/version.rb
74
+ - switchery-rails.gemspec
75
+ - vendor/assets/javascripts/switchery.js
76
+ - vendor/assets/stylesheets/switchery.css
77
+ homepage: https://github.com/abpetkov/switchery
78
+ licenses:
79
+ - MIT
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.4.5
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Use Switchery for Rails
101
+ test_files: []