Skip to content

Commit

Permalink
Smaller borders and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
olibu committed Apr 19, 2024
1 parent 1dc1323 commit 60383f9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 41 deletions.
9 changes: 5 additions & 4 deletions index-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,23 @@ h1 {
#dump .hexCurrent .dlen { color: #00b6b6; }

.treecollapse ul li{
border-left: 2px solid #888;
border-left: 1px solid #888;
}

.treecollapse ul li::before{
content: '';
display: block;
position: absolute;
top: calc(var(--spacing) / -2);
left: -2px;
top: calc(var(--spacing) / -1.6);
left: -1px;
width: calc(var(--spacing) + 2px);
height: calc(var(--spacing) + 1px);
border: solid #888;
border-width: 0 0 2px 2px;
border-width: 0 0 1px 1px;
}

.treecollapse summary::before{
z-index: 1;
top: 1px;
background: url('tree-icon-dark.svg');
}
10 changes: 5 additions & 5 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ header {
}
.treecollapse {
--spacing: 1.5rem;
--radius: 10px;
--radius: 8px;
padding-inline-start: 0px;
}

Expand All @@ -231,7 +231,7 @@ header {
}

.treecollapse ul li{
border-left: 2px solid #ddd;
border-left: 1px solid #ddd;
}

.treecollapse ul li:last-child{
Expand All @@ -242,12 +242,12 @@ header {
content: '';
display: block;
position: absolute;
top: calc(var(--spacing) / -2);
left: -2px;
top: calc(var(--spacing) / -1.6);
left: -1px;
width: calc(var(--spacing) + 2px);
height: calc(var(--spacing) + 1px);
border: solid #ddd;
border-width: 0 0 2px 2px;
border-width: 0 0 1px 1px;
}

.treecollapse summary{
Expand Down
31 changes: 16 additions & 15 deletions tree-icon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 18 additions & 17 deletions tree-icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60383f9

Please sign in to comment.