snaptable 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -0
- data/app/assets/stylesheets/snaptable/table.css.scss +13 -0
- data/lib/snaptable/rails/version.rb +1 -1
- data/lib/snaptable/version.rb +1 -1
- data/snaptable.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 001d1c6a25e1a6e57c482ed0840e0711ffef6cbd
|
4
|
+
data.tar.gz: a1f14e3d907baa4652dd7da582d02de2a6b424de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c222093601fa74c74a0ffcaae005d41caabb0308cf42662cb945f47f70dfcaf9ccad4b94fef8e55083acb68db16ef35bda22c7167a23f2a6be66afb142406f6
|
7
|
+
data.tar.gz: 654368ee81afd9b7015148bcebbe7b25bbe40da88bcf5ae78e396c8df886efbc174666d59c4eaea0dc18b520ec9f6b24859da465d5877a0efa0ad0d7e017932e
|
data/README.md
CHANGED
@@ -18,6 +18,24 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install snaptable
|
20
20
|
|
21
|
+
Include the assets:
|
22
|
+
|
23
|
+
```css
|
24
|
+
# application.css
|
25
|
+
/*
|
26
|
+
*= require_self
|
27
|
+
*= require_tree .
|
28
|
+
*= require snaptable
|
29
|
+
*/
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
```js
|
34
|
+
# application.js
|
35
|
+
//= require_tree .
|
36
|
+
//= require snaptable
|
37
|
+
```
|
38
|
+
|
21
39
|
## Usage
|
22
40
|
|
23
41
|
### Basic table
|
@@ -11,6 +11,16 @@
|
|
11
11
|
a {
|
12
12
|
text-decoration: none;
|
13
13
|
}
|
14
|
+
// show scrollbar
|
15
|
+
&::-webkit-scrollbar {
|
16
|
+
-webkit-appearance: none;
|
17
|
+
width: 7px;
|
18
|
+
}
|
19
|
+
&::-webkit-scrollbar-thumb {
|
20
|
+
border-radius: 4px;
|
21
|
+
background-color: rgba(0,0,0,.5);
|
22
|
+
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
|
23
|
+
}
|
14
24
|
|
15
25
|
table {
|
16
26
|
border-collapse: collapse;
|
@@ -50,6 +60,9 @@
|
|
50
60
|
}
|
51
61
|
}
|
52
62
|
}
|
63
|
+
tr.odd {
|
64
|
+
background: #fff;
|
65
|
+
}
|
53
66
|
tr.even {
|
54
67
|
background: #f8f8f8;
|
55
68
|
}
|
data/lib/snaptable/version.rb
CHANGED
data/snaptable.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_dependency "rails", ">= 4.2.0"
|
26
26
|
spec.add_dependency "railties", ">= 4.2.0"
|
27
|
-
spec.add_dependency "will_paginate"
|
28
|
-
spec.add_dependency "sass-rails"
|
27
|
+
spec.add_dependency "will_paginate"
|
28
|
+
spec.add_dependency "sass-rails"
|
29
29
|
spec.add_dependency "jquery-rails"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snaptable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khcr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sass-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: jquery-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|