Skip to content

Commit

Permalink
Dev edition: add borders to DOM tree styles
Browse files Browse the repository at this point in the history
  • Loading branch information
momdo authored and domenic committed Jul 13, 2017
1 parent cfb8b9e commit 047eb9c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions dev/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -570,3 +570,41 @@ html:not(.index) ol.toc ol {
box-shadow: none;
}
}
/* DOM tree borders */
ul.domTree, ul.domTree ul {
padding: 0 0 0 1em;
margin: 0;
}

ul.domTree li {
padding: 0;
margin: 0;
list-style: none;
position: relative;
}

ul.domTree li li {
list-style: none;
}

ul.domTree li:first-child::before {
position: absolute;
top: 0;
height: 0.6em;
left: -0.75em;
width: 0.5em;
border-style: none none solid solid;
content: '';
border-width: 0.1em;
}

ul.domTree li:not(:last-child)::after {
position: absolute;
top: 0;
bottom: -0.6em;
left: -0.75em;
width: 0.5em;
border-style: none none solid solid;
content: '';
border-width: 0.1em;
}

0 comments on commit 047eb9c

Please sign in to comment.