tree_html 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tree_html/tree_html.css +8 -1
- data/lib/tree_html/version.rb +1 -1
- data/lib/tree_html.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e374310feba94ee773d5f9a1be28921511624372
|
4
|
+
data.tar.gz: 359d21212bb21754e671faae08a1f63af110cb64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '097d811662c5a1291a01d670aacc1c86790f02477d00a85a061930e4a6585f239cf604e7f165acd926154f1ae0f2935c2307f11eabaa612917a0b2137f07718d'
|
7
|
+
data.tar.gz: 72d181750752c1fb6e51b2d6319d4eaac03b6926361c8a9732b5dd85c118282891bc6455ad1312f9b454eae318025206414bc5aeb1b9988a6e5a84597ba06c57
|
data/lib/tree_html/tree_html.css
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
body {
|
2
2
|
font-family: 'Dejavu Sans Mono', 'Arial', sans-serif;
|
3
|
+
font-size: 13px;
|
3
4
|
}
|
4
5
|
|
5
6
|
* {
|
@@ -56,14 +57,20 @@ ul.tree-html>li:first-child::before {
|
|
56
57
|
}
|
57
58
|
|
58
59
|
.tree-html label {
|
59
|
-
margin:
|
60
|
+
margin: .2em 0 0 -.6em;
|
61
|
+
position: absolute;
|
60
62
|
border: 1px solid #ccc;
|
63
|
+
background: white;
|
61
64
|
width: .6em;
|
62
65
|
height: .6em;
|
63
66
|
display: inline-block;
|
64
67
|
line-height: .65;
|
65
68
|
}
|
66
69
|
|
70
|
+
.tree-html label.placeholder {
|
71
|
+
visibility: hidden;
|
72
|
+
}
|
73
|
+
|
67
74
|
.tree-html label::before {
|
68
75
|
color: #ccc;
|
69
76
|
font-family: serif;
|
data/lib/tree_html/version.rb
CHANGED
data/lib/tree_html.rb
CHANGED
@@ -22,7 +22,7 @@ module TreeHtml
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def checkbox
|
25
|
-
children_for_tree_html.empty? ? '' : "<input type='checkbox' id='#{object_id}'><label for='#{object_id}'></label>"
|
25
|
+
children_for_tree_html.empty? ? "<label class='placeholder'></label>" : "<input type='checkbox' id='#{object_id}'><label for='#{object_id}'></label>"
|
26
26
|
end
|
27
27
|
|
28
28
|
def sub_ul
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tree_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.5.2
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: generate plain css tree structure
|