Skip to content

Commit

Permalink
Fix (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff committed Feb 22, 2024
1 parent 97a7066 commit 0946294
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/layouts/partials/icons-search.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ <h2 id="icons" class="mt-2 display-3 fw-bold d-inline-block">
aria-expanded="false" aria-label="View all icon sets">
<img src="/modus-solid/svg/caret-down.svg" class="opacity-75" alt height="24" width="24">
</button>
<div class="dropdown-menu dropdown-menu-icons">
<ul class="dropdown-menu dropdown-menu-icons">
{{ $currentPage := . }}
{{ range .Site.Menus.icons }}
<li class="nav-item mx-0 mx-sm-1 mx-md-2">
<li class="nav-item">
<div>
{{ with .Pre }}
{{- . -}}
Expand All @@ -23,7 +23,7 @@ <h2 id="icons" class="mt-2 display-3 fw-bold d-inline-block">
{{- . -}}
{{ end }}</div>
{{ end }}
</div>
</ul>
</div>
</div>
<div class="col-12 col-sm-4 text-end">
Expand Down
10 changes: 5 additions & 5 deletions docs/layouts/partials/usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2 id="usage" class="fw-bold">Usage</h2>
<div class="row my-4">
<div class="col-md-4">
<h3 id="icon-font">Icon font</h3>
<h6>Use in web applications, on buttons, and anywhere you need more than a few icons.</h6>
<h4 class="h6">Use in web applications, on buttons, and anywhere you need more than a few icons.</h4>
<p>Icon fonts including every icon are also included for Modus Icons. Include the icon web fonts in your
page via CSS, then reference the ligature names as needed in your HTML (e.g.,
<code>&lt;i class=&quot;modus-icons&quot;&gt;lightbulb_on&lt;/i&gt;</code>).
Expand Down Expand Up @@ -81,7 +81,7 @@ <h6>Use in web applications, on buttons, and anywhere you need more than a few i
<div class="row my-4">
<div class="col-md-4">
<h3 id="sprite">SVG Sprite</h3>
<h6> Use for static sites when you only need a few icons.</h6>
<h4 class="h6"> Use for static sites when you only need a few icons.</h4>
<p>Copy the <code>{{ with .iconset }}{{- . -}}{{ end }}-icons.svg</code> SVG sprite file to your directory of choice.
Insert any icon with the <code>&lt;use&gt;</code> element. Use the icon&rsquo;s filename
as the fragment identifier (e.g., <code>toggles</code> is <code>#toggles</code>). SVG sprites allow you to
Expand Down Expand Up @@ -139,7 +139,7 @@ <h6> Use for static sites when you only need a few icons.</h6>
<div class="row my-4">
<div class="col-md-4">
<h3 id="external-image">External SVG image</h3>
<h6> Use for static sites when you only need a few icons.</h6>
<h4 class="h6"> Use for static sites when you only need a few icons.</h4>
<p>Copy the Modus Icons SVGs to your directory of choice and reference them like normal images with the
<code>&lt;img&gt;</code> element.
</p>
Expand All @@ -156,7 +156,7 @@ <h6> Use for static sites when you only need a few icons.</h6>
<div class="row my-4">
<div class="col-md-4">
<h3 id="embedded">Embedded SVG code</h3>
<h6>Use when you don't want any dependency.</h6>
<h4 class="h6">Use when you don't want any dependency.</h4>
<p>Embed your icons within the HTML of your page (as opposed to an external image file). Here we&rsquo;ve used a
custom <code>width</code> and <code>height</code>.
</div>
Expand All @@ -179,7 +179,7 @@ <h6>Use when you don't want any dependency.</h6>
<div class="row">
<div class="col-md-4">
<h3 id="css">CSS</h3>
<h6>Use when you don't want any dependency.</h6>
<h4 class="h6">Use when you don't want any dependency.</h4>
<p>You can also use the SVG within your CSS (<strong>be sure to escape any characters</strong>, such as
<code>#</code> to <code>%23</code> when specifying hex color values). When no dimensions are specified via
<code>width</code> and <code>height</code> on the <code>&lt;svg&gt;</code>, the icon will fill the available
Expand Down

0 comments on commit 0946294

Please sign in to comment.