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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32e02a7a7197313a2373e84da8c2f3749ff37861
4
- data.tar.gz: 6ce9b46ee6beda93e6600d744095c2174b9f768c
3
+ metadata.gz: e374310feba94ee773d5f9a1be28921511624372
4
+ data.tar.gz: 359d21212bb21754e671faae08a1f63af110cb64
5
5
  SHA512:
6
- metadata.gz: c701672785acb2a3184878705877c62eeee4c031b3f7101cc0e5d1981596fa737ad91f047e7e15e6b6aa45d71620043b4f81c40b669eb15aafc08b36d2569da1
7
- data.tar.gz: af7d0900a0b7a083975561b920229b0e74fe329f3562b350b5b228f790f0b3836eee5fe8025eb39de651f03000d659c92b43e91a64c3c8d7565e98fc4ea57cec
6
+ metadata.gz: '097d811662c5a1291a01d670aacc1c86790f02477d00a85a061930e4a6585f239cf604e7f165acd926154f1ae0f2935c2307f11eabaa612917a0b2137f07718d'
7
+ data.tar.gz: 72d181750752c1fb6e51b2d6319d4eaac03b6926361c8a9732b5dd85c118282891bc6455ad1312f9b454eae318025206414bc5aeb1b9988a6e5a84597ba06c57
@@ -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: 0 0 0 5px;
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;
@@ -1,3 +1,3 @@
1
1
  module TreeHtml
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-15 00:00:00.000000000 Z
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.6.8
94
+ rubygems_version: 2.5.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: generate plain css tree structure