Skip to content

Commit

Permalink
fixed lucide icon alignments (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
uroybd authored Mar 7, 2023
1 parent 548d04c commit 4edcab6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/site/_includes/components/filetree.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
{% elif fileOrFolder.isFolder%}
<div class="folder inner-folder" x-data="{isOpen: $persist(false).as('{{currentPath}}')}" @click.stop="isOpen=!isOpen">
<div class="foldername-wrapper">
<div class="foldername-wrapper align-icon">
<i x-show="isOpen" style="display: none;" icon-name="chevron-down"></i>
<i x-show="!isOpen" icon-name="chevron-right"></i>
<span class="foldername">{{fileOrFolderName}}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/site/_includes/components/searchButton.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="search-button" onclick="toggleSearch()">
<div class="search-button align-icon" onclick="toggleSearch()">
<span class="search-icon">
<i icon-name="search" ></i>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/site/_includes/components/searchContainer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<span>Enter to select</span>
</div>

<div class="navigation-hint">
<div class="navigation-hint align-icon">
<i icon-name="arrow-up" aria-hidden="true"></i>
<i icon-name="arrow-down" aria-hidden="true"></i>
<span>to navigate</span>
Expand Down
6 changes: 6 additions & 0 deletions src/site/styles/digital-garden-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -735,3 +735,9 @@ body.links-note-icon .internal-link[data-note-icon="3"]::before {
align-items: center;
}
}


.align-icon {
display: inline-flex;
align-items: center;
}

0 comments on commit 4edcab6

Please sign in to comment.