Skip to content

Commit

Permalink
feat(#102): align svg with text and set spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
tuurep committed Aug 15, 2024
1 parent 11c5b9c commit 8903b13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion static/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ hr {
margin: 24px 0;
}

/* UI icons */
/* parent directory link */
#top-nav > a {
display: inline-flex;
align-items: center;
}
.icon-back {
fill: var(--icon-back);
}
11 changes: 9 additions & 2 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body {
*[class^="content-"] {
max-width: 900px;
margin: auto;
}
}
.content-txt { max-width: 1200px; }

/* --------------------------------------------------------------------------
Expand All @@ -26,7 +26,14 @@ body {
ul.dir-list { padding: 0 }
li[class^='dir-list-'] {
list-style: none;
margin: 0.25rem 0;
}
li[class^='dir-list-'] > a {
display: inline-flex;
align-items: center;
padding: 0.05rem 0;
}
li[class^='dir-list-'] > a > svg {
margin-right: 0.3rem;
}
.icon-directory { fill: var(--icon-directory); }
.icon-file { fill: var(--icon-file); }

0 comments on commit 8903b13

Please sign in to comment.