kanso-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +41 -0
- data/Rakefile +1 -0
- data/kanso-rails.gemspec +22 -0
- data/lib/kanso/rails.rb +8 -0
- data/lib/kanso/rails/version.rb +5 -0
- data/vendor/assets/images/icon-sprite.png +0 -0
- data/vendor/assets/images/icon-sprite@2x.png +0 -0
- data/vendor/assets/stylesheets/kanso.css +269 -0
- metadata +89 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Michal Krejčí
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Kanso
|
2
|
+
|
3
|
+
Kanso - Semantic Flat Buttons integration with Rails and Asset Pipeline.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'kanso-rails'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install kanso-rails
|
18
|
+
|
19
|
+
Then add kanso to your `application.css`
|
20
|
+
|
21
|
+
*= require kanso
|
22
|
+
|
23
|
+
or `application.css.scss`
|
24
|
+
|
25
|
+
@import "kanso";
|
26
|
+
|
27
|
+
## Examples
|
28
|
+
|
29
|
+
For usage and examples check Kanso [docs](http://www.kolszewski.com/kanso).
|
30
|
+
|
31
|
+
## Credits
|
32
|
+
|
33
|
+
[Kris Olszewski](http://www.kolszewski.com) for an amazing [Kanso](http://www.kolszewski.com/kanso) button set.
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
1. Fork it
|
38
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
41
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/kanso-rails.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'kanso/rails/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'kanso-rails'
|
9
|
+
spec.version = Kanso::Rails::VERSION
|
10
|
+
spec.authors = ['Michal Krejčí']
|
11
|
+
spec.email = ['mikekreeki@gmail.com']
|
12
|
+
spec.description = 'Kanso - Semantic Flat Buttons integration with Rails and Asset Pipeline'
|
13
|
+
spec.summary = 'Kanso - Semantic Flat Buttons integration with Rails and Asset Pipeline'
|
14
|
+
spec.homepage = 'http://www.kolszewski.com/kanso/'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files`.split($/)
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
end
|
data/lib/kanso/rails.rb
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1,269 @@
|
|
1
|
+
/**
|
2
|
+
* Kanso - Semantic Flat Buttons
|
3
|
+
* Author & copyright (c) 2013: Kris Olszewski
|
4
|
+
* Mertize Icons by Alessio Atzeni
|
5
|
+
* Support: IE8+
|
6
|
+
*
|
7
|
+
* Repo: https://github.com/KrisOlszewski/Kanso/
|
8
|
+
*/
|
9
|
+
.button {
|
10
|
+
display: inline-block;
|
11
|
+
margin: 0;
|
12
|
+
padding: 10px 25px;
|
13
|
+
border: 0;
|
14
|
+
border-radius: 2px;
|
15
|
+
color: #ffffff;
|
16
|
+
vertical-align: middle;
|
17
|
+
text-align: center;
|
18
|
+
font-weight: bold;
|
19
|
+
font-size: 14px;
|
20
|
+
font-family: Arial, "Lucida Grande", sans-serif;
|
21
|
+
line-height: 20px;
|
22
|
+
cursor: pointer;
|
23
|
+
outline: none;
|
24
|
+
background-color: #383d40;
|
25
|
+
-webkit-transition: all 0.15s ease-in-out;
|
26
|
+
-moz-transition: all 0.15s ease-in-out;
|
27
|
+
-o-transition: all 0.15s ease-in-out;
|
28
|
+
transition: all 0.15s ease-in-out;
|
29
|
+
-webkit-box-sizing: border-box;
|
30
|
+
-moz-box-sizing: border-box;
|
31
|
+
box-sizing: border-box;
|
32
|
+
}
|
33
|
+
.button:hover,
|
34
|
+
.button:focus {
|
35
|
+
background-color: #50575b;
|
36
|
+
}
|
37
|
+
.button.is-active,
|
38
|
+
.button:active {
|
39
|
+
background-color: #202325;
|
40
|
+
}
|
41
|
+
.button.is-disabled,
|
42
|
+
.button[disabled] {
|
43
|
+
background-color: #687176;
|
44
|
+
}
|
45
|
+
.button:hover,
|
46
|
+
.button:focus {
|
47
|
+
color: #ffffff;
|
48
|
+
}
|
49
|
+
.button.is-disabled,
|
50
|
+
.button[disabled] {
|
51
|
+
pointer-events: none;
|
52
|
+
}
|
53
|
+
.button.is-primary {
|
54
|
+
background-color: #3fc1f1;
|
55
|
+
}
|
56
|
+
.button.is-primary:hover,
|
57
|
+
.button.is-primary:focus {
|
58
|
+
background-color: #6fd0f4;
|
59
|
+
}
|
60
|
+
.button.is-primary.is-active,
|
61
|
+
.button.is-primary:active {
|
62
|
+
background-color: #11b1ec;
|
63
|
+
}
|
64
|
+
.button.is-primary.is-disabled,
|
65
|
+
.button.is-primary[disabled] {
|
66
|
+
background-color: #9ee0f8;
|
67
|
+
}
|
68
|
+
.button.is-secondary {
|
69
|
+
background-color: #73c0ca;
|
70
|
+
}
|
71
|
+
.button.is-secondary:hover,
|
72
|
+
.button.is-secondary:focus {
|
73
|
+
background-color: #98d1d8;
|
74
|
+
}
|
75
|
+
.button.is-secondary.is-active,
|
76
|
+
.button.is-secondary:active {
|
77
|
+
background-color: #4eafbc;
|
78
|
+
}
|
79
|
+
.button.is-secondary.is-disabled,
|
80
|
+
.button.is-secondary[disabled] {
|
81
|
+
background-color: #bde1e6;
|
82
|
+
}
|
83
|
+
.button.is-success {
|
84
|
+
background-color: #2eb398;
|
85
|
+
}
|
86
|
+
.button.is-success:hover,
|
87
|
+
.button.is-success:focus {
|
88
|
+
background-color: #45cfb3;
|
89
|
+
}
|
90
|
+
.button.is-success.is-active,
|
91
|
+
.button.is-success:active {
|
92
|
+
background-color: #248a76;
|
93
|
+
}
|
94
|
+
.button.is-success.is-disabled,
|
95
|
+
.button.is-success[disabled] {
|
96
|
+
background-color: #6ddac4;
|
97
|
+
}
|
98
|
+
.button.is-danger {
|
99
|
+
background-color: #e76049;
|
100
|
+
}
|
101
|
+
.button.is-danger:hover,
|
102
|
+
.button.is-danger:focus {
|
103
|
+
background-color: #ed8776;
|
104
|
+
}
|
105
|
+
.button.is-danger.is-active,
|
106
|
+
.button.is-danger:active {
|
107
|
+
background-color: #e03a1d;
|
108
|
+
}
|
109
|
+
.button.is-danger.is-disabled,
|
110
|
+
.button.is-danger[disabled] {
|
111
|
+
background-color: #f3afa3;
|
112
|
+
}
|
113
|
+
.button.is-link {
|
114
|
+
background-color: transparent;
|
115
|
+
color: #3fc1f1;
|
116
|
+
}
|
117
|
+
.button.is-link:hover,
|
118
|
+
.button.is-link:focus,
|
119
|
+
.button.is-link.is-active,
|
120
|
+
.button.is-link:active {
|
121
|
+
background-color: transparent;
|
122
|
+
color: #383d40;
|
123
|
+
}
|
124
|
+
.button.is-link.is-disabled,
|
125
|
+
.button.is-link[disabled] {
|
126
|
+
background-color: transparent;
|
127
|
+
color: #687176;
|
128
|
+
}
|
129
|
+
.button.is-embossed {
|
130
|
+
-webkit-box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.2);
|
131
|
+
-moz-box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.2);
|
132
|
+
box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.2);
|
133
|
+
}
|
134
|
+
.button.is-embossed.is-active,
|
135
|
+
.button.is-embossed:active,
|
136
|
+
.button.is-embossed.is-disabled,
|
137
|
+
.button.is-embossed[disabled] {
|
138
|
+
-webkit-box-shadow: none;
|
139
|
+
-moz-box-shadow: none;
|
140
|
+
box-shadow: none;
|
141
|
+
}
|
142
|
+
.button.is-block {
|
143
|
+
display: block;
|
144
|
+
width: 100%;
|
145
|
+
}
|
146
|
+
.button.has-icon {
|
147
|
+
padding: 10px;
|
148
|
+
}
|
149
|
+
.button.has-icon.has-text {
|
150
|
+
padding: 10px 15px 10px 10px;
|
151
|
+
}
|
152
|
+
.button.has-icon.has-text [class^="icon-"],
|
153
|
+
.button.has-icon.has-text [class*=" icon-"] {
|
154
|
+
margin-right: 10px;
|
155
|
+
}
|
156
|
+
input.button,
|
157
|
+
button.button {
|
158
|
+
font-weight: normal;
|
159
|
+
width: auto;
|
160
|
+
}
|
161
|
+
.button-group-row:after,
|
162
|
+
.button-group-row:before {
|
163
|
+
display: table;
|
164
|
+
content: '';
|
165
|
+
line-height: 0;
|
166
|
+
}
|
167
|
+
.button-group-row:after {
|
168
|
+
clear: both;
|
169
|
+
}
|
170
|
+
.button-group {
|
171
|
+
position: relative;
|
172
|
+
display: block;
|
173
|
+
float: left;
|
174
|
+
}
|
175
|
+
.button-group + .button-group {
|
176
|
+
margin-left: 40px;
|
177
|
+
}
|
178
|
+
.button-group.push-right {
|
179
|
+
float: right;
|
180
|
+
}
|
181
|
+
.button-group > .button {
|
182
|
+
display: block;
|
183
|
+
float: left;
|
184
|
+
margin-right: 5px;
|
185
|
+
}
|
186
|
+
.button-group > .button:last-child {
|
187
|
+
margin-right: 0;
|
188
|
+
}
|
189
|
+
[class^="icon-"],
|
190
|
+
[class*=" icon-"] {
|
191
|
+
display: inline-block;
|
192
|
+
overflow: hidden;
|
193
|
+
margin: 0;
|
194
|
+
padding: 0;
|
195
|
+
width: 20px;
|
196
|
+
height: 20px;
|
197
|
+
background-image: url('/assets/icon-sprite.png');
|
198
|
+
background-repeat: no-repeat;
|
199
|
+
vertical-align: top;
|
200
|
+
text-indent: 20px;
|
201
|
+
font: 0/0 a;
|
202
|
+
}
|
203
|
+
.icon-search {
|
204
|
+
background-position: 0 0;
|
205
|
+
}
|
206
|
+
.icon-check {
|
207
|
+
background-position: -20px 0;
|
208
|
+
}
|
209
|
+
.icon-plus {
|
210
|
+
background-position: -40px 0;
|
211
|
+
}
|
212
|
+
.icon-minus {
|
213
|
+
background-position: -60px 0;
|
214
|
+
}
|
215
|
+
.icon-cross {
|
216
|
+
background-position: -80px 0;
|
217
|
+
}
|
218
|
+
.icon-help {
|
219
|
+
background-position: -100px 0;
|
220
|
+
}
|
221
|
+
.icon-pin {
|
222
|
+
background-position: -120px 0;
|
223
|
+
}
|
224
|
+
.icon-cloud {
|
225
|
+
background-position: -140px 0;
|
226
|
+
}
|
227
|
+
.icon-arrow-left {
|
228
|
+
background-position: -160px 0;
|
229
|
+
}
|
230
|
+
.icon-arrow-right {
|
231
|
+
background-position: -180px 0;
|
232
|
+
}
|
233
|
+
.icon-arrow-up {
|
234
|
+
background-position: -200px 0;
|
235
|
+
}
|
236
|
+
.icon-arrow-down {
|
237
|
+
background-position: -220px 0;
|
238
|
+
}
|
239
|
+
.icon-attachment {
|
240
|
+
background-position: -240px 0;
|
241
|
+
}
|
242
|
+
.icon-chat {
|
243
|
+
background-position: -260px 0;
|
244
|
+
}
|
245
|
+
.icon-config {
|
246
|
+
background-position: -280px 0;
|
247
|
+
}
|
248
|
+
.icon-tool {
|
249
|
+
background-position: -300px 0;
|
250
|
+
}
|
251
|
+
.icon-phone {
|
252
|
+
background-position: -320px 0;
|
253
|
+
}
|
254
|
+
.icon-minimize {
|
255
|
+
background-position: -340px 0;
|
256
|
+
}
|
257
|
+
.icon-maximize {
|
258
|
+
background-position: -360px 0;
|
259
|
+
}
|
260
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
261
|
+
[class^="icon-"],
|
262
|
+
[class*=" icon-"] {
|
263
|
+
background-size: 380px 20px;
|
264
|
+
-webkit-background-size: 380px 20px;
|
265
|
+
-moz-background-size: 380px 20px;
|
266
|
+
-o-background-size: 380px 20px;
|
267
|
+
background-image: url('/assets/icon-sprite@2x.png');
|
268
|
+
}
|
269
|
+
}
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kanso-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Michal Krejčí
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Kanso - Semantic Flat Buttons integration with Rails and Asset Pipeline
|
47
|
+
email:
|
48
|
+
- mikekreeki@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- Gemfile
|
55
|
+
- LICENSE.txt
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- kanso-rails.gemspec
|
59
|
+
- lib/kanso/rails.rb
|
60
|
+
- lib/kanso/rails/version.rb
|
61
|
+
- vendor/assets/images/icon-sprite.png
|
62
|
+
- vendor/assets/images/icon-sprite@2x.png
|
63
|
+
- vendor/assets/stylesheets/kanso.css
|
64
|
+
homepage: http://www.kolszewski.com/kanso/
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 1.8.25
|
86
|
+
signing_key:
|
87
|
+
specification_version: 3
|
88
|
+
summary: Kanso - Semantic Flat Buttons integration with Rails and Asset Pipeline
|
89
|
+
test_files: []
|