Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bootstrap-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ module:
target: static/apple-touch-icon.png
- source: docs/static/assets/img/favicons/favicon.ico
target: static/favicon.ico
- source: bootstrap-icons.svg
target: static/bootstrap-icons.svg

params:
description: "Official open source SVG icon library for Bootstrap"
Expand Down
14 changes: 14 additions & 0 deletions docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ Embed your icons within the HTML of your page (as opposed to an external image f
</div>
</div>

<div class="row my-4">
<div class="col-md-4 col-xl-3">
{{< md >}}
### Sprite
Reference the sprite file containing all the icons with the `<use>` element. And select the symbol with the fragment identifer. Here it's `#heart-fill`.
{{< /md >}}
</div>
<div class="col-md-8 col-xl-9">
{{< example >}}<svg class="bi" width="32" height="32" fill="currentColor">
<use xlink:href="bootstrap-icons.svg#heart-fill"/>
</svg>{{< /example >}}
</div>
</div>

<div class="row my-4">
<div class="col-md-4 col-xl-3">
{{< md >}}
Expand Down
Loading