Sha256: b5933c821ef47a1d080da7deee2058f441b4e1a840d5c7a1f8d2da6b2569da84

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

body {
    font-family: 'Dejavu Sans Mono', 'Arial', sans-serif;
    font-size: 13px;
}

* {
    margin: 0;
    padding: 0;
}

.tree-html ul {
    margin-left: 15px;
}

.tree-html li {
    list-style-type: none;
    margin: 10px;
    position: relative;
}

.tree-html li::before {
    content: "";
    position: absolute;
    top: -7px;
    left: -15px;
    border-left: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    width: 15px;
    height: 15px;
}

.tree-html li::after {
    position: absolute;
    content: "";
    top: 8px;
    left: -15px;
    border-left: 1px dotted #ccc;
    width: 15px;
    height: 100%;
}

.tree-html li:last-child::after {
    display: none;
}

ul.tree-html>li:first-child::before {
    display: none;
}

.tree-html li a {
    padding: 2px 5px;
}

.tree-html li a:hover, .tree-html li a:hover+ul li a,
.tree-html li a:focus, .tree-html li a:focus+ul li a {
    background: gray;
}

.tree-html label {
  margin: .2em 0 0 -.6em;
  position: absolute;
  border: 1px solid #ccc;
  background: white;
  width: .6em;
  height: .6em;
  display: inline-block;
  line-height: .65;
}

.tree-html label.placeholder {
  visibility: hidden;
}

.tree-html label::before {
  color: #ccc;
  font-family: serif;
  margin-left: 0.02em;
}

input[type='checkbox'] {
  margin-left: 5px;
  display: none
}

input[type='checkbox']:checked ~ ul {
  display: none
}

input[type="checkbox"] + label::before {
  content: '-';
}

input[type="checkbox"]:checked + label::before {
  content: '+';
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree_html-0.1.1 lib/tree_html/tree_html.css