bootstrap-switch-rails-bcj-version 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +64 -0
- data/Rakefile +1 -0
- data/bootstrap-switch-rails-bcj-version.gemspec +23 -0
- data/lib/bootstrap-switch-rails.rb +14 -0
- data/lib/bootstrap-switch-rails/engine.rb +8 -0
- data/lib/bootstrap-switch-rails/railtie.rb +7 -0
- data/lib/bootstrap-switch-rails/version.rb +7 -0
- data/update_from_vendor.sh +18 -0
- data/vendor/assets/javascripts/bootstrap-switch.js +710 -0
- data/vendor/assets/stylesheets/bootstrap2-switch.scss +519 -0
- data/vendor/assets/stylesheets/bootstrap3-switch.scss +195 -0
- metadata +90 -0
@@ -0,0 +1,195 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* bootstrap-switch - v3.3.2
|
3
|
+
* http://www.bootstrap-switch.org
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2012-2013 Mattia Larentis
|
6
|
+
*
|
7
|
+
* ========================================================================
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
* ========================================================================
|
20
|
+
*/
|
21
|
+
|
22
|
+
.bootstrap-switch {
|
23
|
+
display: inline-block;
|
24
|
+
direction: ltr;
|
25
|
+
cursor: pointer;
|
26
|
+
border-radius: 4px;
|
27
|
+
border: 1px solid;
|
28
|
+
border-color: #cccccc;
|
29
|
+
position: relative;
|
30
|
+
text-align: left;
|
31
|
+
overflow: hidden;
|
32
|
+
line-height: 8px;
|
33
|
+
z-index: 0;
|
34
|
+
-webkit-user-select: none;
|
35
|
+
-moz-user-select: none;
|
36
|
+
-ms-user-select: none;
|
37
|
+
user-select: none;
|
38
|
+
vertical-align: middle;
|
39
|
+
-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
40
|
+
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
41
|
+
}
|
42
|
+
.bootstrap-switch .bootstrap-switch-container {
|
43
|
+
display: inline-block;
|
44
|
+
top: 0;
|
45
|
+
border-radius: 4px;
|
46
|
+
-webkit-transform: translate3d(0, 0, 0);
|
47
|
+
transform: translate3d(0, 0, 0);
|
48
|
+
}
|
49
|
+
.bootstrap-switch .bootstrap-switch-handle-on,
|
50
|
+
.bootstrap-switch .bootstrap-switch-handle-off,
|
51
|
+
.bootstrap-switch .bootstrap-switch-label {
|
52
|
+
-webkit-box-sizing: border-box;
|
53
|
+
-moz-box-sizing: border-box;
|
54
|
+
box-sizing: border-box;
|
55
|
+
cursor: pointer;
|
56
|
+
display: inline-block !important;
|
57
|
+
padding: 6px 12px;
|
58
|
+
font-size: 14px;
|
59
|
+
line-height: 20px;
|
60
|
+
}
|
61
|
+
.bootstrap-switch .bootstrap-switch-handle-on,
|
62
|
+
.bootstrap-switch .bootstrap-switch-handle-off {
|
63
|
+
text-align: center;
|
64
|
+
z-index: 1;
|
65
|
+
}
|
66
|
+
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
|
67
|
+
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
|
68
|
+
color: #fff;
|
69
|
+
background: #428bca;
|
70
|
+
}
|
71
|
+
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
|
72
|
+
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
|
73
|
+
color: #fff;
|
74
|
+
background: #5bc0de;
|
75
|
+
}
|
76
|
+
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
|
77
|
+
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
|
78
|
+
color: #fff;
|
79
|
+
background: #5cb85c;
|
80
|
+
}
|
81
|
+
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
|
82
|
+
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
|
83
|
+
background: #f0ad4e;
|
84
|
+
color: #fff;
|
85
|
+
}
|
86
|
+
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
|
87
|
+
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
|
88
|
+
color: #fff;
|
89
|
+
background: #d9534f;
|
90
|
+
}
|
91
|
+
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
|
92
|
+
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
|
93
|
+
color: #000;
|
94
|
+
background: #eeeeee;
|
95
|
+
}
|
96
|
+
.bootstrap-switch .bootstrap-switch-label {
|
97
|
+
text-align: center;
|
98
|
+
margin-top: -1px;
|
99
|
+
margin-bottom: -1px;
|
100
|
+
z-index: 100;
|
101
|
+
color: #333333;
|
102
|
+
background: #ffffff;
|
103
|
+
}
|
104
|
+
.bootstrap-switch .bootstrap-switch-handle-on {
|
105
|
+
border-bottom-left-radius: 3px;
|
106
|
+
border-top-left-radius: 3px;
|
107
|
+
}
|
108
|
+
.bootstrap-switch .bootstrap-switch-handle-off {
|
109
|
+
border-bottom-right-radius: 3px;
|
110
|
+
border-top-right-radius: 3px;
|
111
|
+
}
|
112
|
+
.bootstrap-switch input[type='radio'],
|
113
|
+
.bootstrap-switch input[type='checkbox'] {
|
114
|
+
position: absolute !important;
|
115
|
+
top: 0;
|
116
|
+
left: 0;
|
117
|
+
opacity: 0;
|
118
|
+
filter: alpha(opacity=0);
|
119
|
+
z-index: -1;
|
120
|
+
}
|
121
|
+
.bootstrap-switch input[type='radio'].form-control,
|
122
|
+
.bootstrap-switch input[type='checkbox'].form-control {
|
123
|
+
height: auto;
|
124
|
+
}
|
125
|
+
.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
|
126
|
+
.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
|
127
|
+
.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label {
|
128
|
+
padding: 1px 5px;
|
129
|
+
font-size: 12px;
|
130
|
+
line-height: 1.5;
|
131
|
+
}
|
132
|
+
.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
|
133
|
+
.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,
|
134
|
+
.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label {
|
135
|
+
padding: 5px 10px;
|
136
|
+
font-size: 12px;
|
137
|
+
line-height: 1.5;
|
138
|
+
}
|
139
|
+
.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,
|
140
|
+
.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,
|
141
|
+
.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label {
|
142
|
+
padding: 6px 16px;
|
143
|
+
font-size: 18px;
|
144
|
+
line-height: 1.33;
|
145
|
+
}
|
146
|
+
.bootstrap-switch.bootstrap-switch-disabled,
|
147
|
+
.bootstrap-switch.bootstrap-switch-readonly,
|
148
|
+
.bootstrap-switch.bootstrap-switch-indeterminate {
|
149
|
+
cursor: default !important;
|
150
|
+
}
|
151
|
+
.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
|
152
|
+
.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
|
153
|
+
.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,
|
154
|
+
.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
|
155
|
+
.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
|
156
|
+
.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,
|
157
|
+
.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
|
158
|
+
.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label,
|
159
|
+
.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label {
|
160
|
+
opacity: 0.5;
|
161
|
+
filter: alpha(opacity=50);
|
162
|
+
cursor: default !important;
|
163
|
+
}
|
164
|
+
.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container {
|
165
|
+
-webkit-transition: margin-left 0.5s;
|
166
|
+
transition: margin-left 0.5s;
|
167
|
+
}
|
168
|
+
.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on {
|
169
|
+
border-bottom-left-radius: 0;
|
170
|
+
border-top-left-radius: 0;
|
171
|
+
border-bottom-right-radius: 3px;
|
172
|
+
border-top-right-radius: 3px;
|
173
|
+
}
|
174
|
+
.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off {
|
175
|
+
border-bottom-right-radius: 0;
|
176
|
+
border-top-right-radius: 0;
|
177
|
+
border-bottom-left-radius: 3px;
|
178
|
+
border-top-left-radius: 3px;
|
179
|
+
}
|
180
|
+
.bootstrap-switch.bootstrap-switch-focused {
|
181
|
+
border-color: #66afe9;
|
182
|
+
outline: 0;
|
183
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
184
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
185
|
+
}
|
186
|
+
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label,
|
187
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label {
|
188
|
+
border-bottom-right-radius: 3px;
|
189
|
+
border-top-right-radius: 3px;
|
190
|
+
}
|
191
|
+
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label,
|
192
|
+
.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label {
|
193
|
+
border-bottom-left-radius: 3px;
|
194
|
+
border-top-left-radius: 3px;
|
195
|
+
}
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bootstrap-switch-rails-bcj-version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.3.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Blaed Johnston
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-08 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.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: A small gem for putting bootstrap-switch into the Rails asset pipeline,
|
42
|
+
all credit for this goes to the original creator, Manuel van Rijn. see https://github.com/manuelvanrjin/bootstrap-switch-rails.
|
43
|
+
this is created to include a tweak to the bootstrap-switch source that I needed
|
44
|
+
for a specific project
|
45
|
+
email:
|
46
|
+
- blaedj@gmail.com
|
47
|
+
executables: []
|
48
|
+
extensions: []
|
49
|
+
extra_rdoc_files: []
|
50
|
+
files:
|
51
|
+
- ".gitignore"
|
52
|
+
- Gemfile
|
53
|
+
- LICENSE.txt
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- bootstrap-switch-rails-bcj-version.gemspec
|
57
|
+
- lib/bootstrap-switch-rails.rb
|
58
|
+
- lib/bootstrap-switch-rails/engine.rb
|
59
|
+
- lib/bootstrap-switch-rails/railtie.rb
|
60
|
+
- lib/bootstrap-switch-rails/version.rb
|
61
|
+
- update_from_vendor.sh
|
62
|
+
- vendor/assets/javascripts/bootstrap-switch.js
|
63
|
+
- vendor/assets/stylesheets/bootstrap2-switch.scss
|
64
|
+
- vendor/assets/stylesheets/bootstrap3-switch.scss
|
65
|
+
homepage: https://github.com/blaedj/bootstrap-switch-rails
|
66
|
+
licenses:
|
67
|
+
- MIT, Apache License v2.0
|
68
|
+
metadata: {}
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.4.5
|
86
|
+
signing_key:
|
87
|
+
specification_version: 4
|
88
|
+
summary: an asset gemification of the bootstrap-switch plugin
|
89
|
+
test_files: []
|
90
|
+
has_rdoc:
|