mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Move the icon to a partial and optimize it.
This commit is contained in:
parent
3898df1f5a
commit
8bc6692082
@ -17,7 +17,7 @@
|
||||
|
||||
<li class="bd-sidenav-group my-1{{ if $active_group }} active{{ end }} js-sidenav-group">
|
||||
<a class="d-inline-flex align-items-center bd-sidenav-group-link" href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ if $group.pages }}{{ $link_slug }}/{{ end }}">
|
||||
<svg class="bd-sidenav-group-link-icon" width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="currentColor" stroke-width="2" d="M5 14l6-6-6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
{{- partial "icons/arrow.svg" (dict "class" "bd-sidenav-group-link-icon" "width" "16" "height" "16") -}}
|
||||
<div>{{- $group.title -}}</div>
|
||||
</a>
|
||||
|
||||
|
1
site/layouts/partials/icons/arrow.svg
Normal file
1
site/layouts/partials/icons/arrow.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 16 16"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14l6-6-6-6"/></svg>
|
After Width: | Height: | Size: 318 B |
Loading…
x
Reference in New Issue
Block a user