Skip to content
Merged
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
12 changes: 12 additions & 0 deletions assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,18 @@ hr {
border: 1px solid var(--color-divider);
}

.feather {
width: 1.8ch;
height: 1.8ch;
stroke: currentColor;
fill: none;
stroke-width: 2;
stroke-linecap: square;
stroke-linejoin: square;
vertical-align: sub;
margin: 0;
}

/* FILTHY HACKS BEGIN */

/* Override logo with black text version */
Expand Down
6 changes: 6 additions & 0 deletions exampleSite/content/test-product/feather/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
description: Feather icon usage
title: Feather
weight: 300
toc: true
---
17 changes: 17 additions & 0 deletions exampleSite/content/test-product/feather/permitted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
description: Where feather icons are allowed to be used
title: Permitted usage
weight: 100
---

[Feather Icons](https://feathericons.com/) is a free icon library with a permissive license (MIT). We use it for our minimal icon needs in place of FontAwesome in Oldframe.

{{<fe "circle">}}

[Feather link{{<fe "circle">}}](#)

{{<fe "circle">}} in text.

{{<warning>}}
This is a Warning callout. There was previously a bug with **bold text** that we should be aware of and continue to check for. This callout was invoked with the `<warning>` shortcode. It has no custom title. {{<fe "alert-triangle">}}
{{</warning>}}
5 changes: 5 additions & 0 deletions layouts/partials/feather.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- /* Usage: */ -}}
{{- /* (dict "context" . "icon" "circle") */ -}}
<svg class="feather">
<use href="/images/feather-sprite.svg#{{ .icon }}"></use>
</svg>
1 change: 1 addition & 0 deletions layouts/shortcodes/fe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ partial "feather" (dict "context" . "icon" (.Get 0)) }}
1 change: 1 addition & 0 deletions static/images/feather-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading