chore(lib): update fontawesome 5.13.0 -> 6.1.1

This commit is contained in:
Dillon
2022-05-07 01:54:31 +08:00
parent 28bc034af0
commit 09ea77eff1
35 changed files with 53 additions and 9363 deletions

View File

@@ -1,9 +1,9 @@
{{- /* Checkbox unchecked */ -}}
{{- $old := `<input disabled="" type="checkbox">` -}}
{{- $new := `<i class="far fa-square fa-fw"></i>` -}}
{{- $new := `<i class="far fa-square fa-fw" aria-hidden="true"></i>` -}}
{{- $content := replace . $old $new -}}
{{- /* Checkbox checked */ -}}
{{- $old = `<input checked="" disabled="" type="checkbox">` -}}
{{- $new = `<i class="far fa-check-square fa-fw"></i>` -}}
{{- $new = `<i class="far fa-check-square fa-fw" aria-hidden="true"></i>` -}}
{{- return replace $content $old $new -}}

View File

@@ -1,5 +1,5 @@
{{- /* Font Awesome */ -}}
{{- /* :(far fa-circle): -> <i class="far fa-circle fa-fw"></i> */ -}}
{{- /* :(far fa-circle): -> <i class="far fa-circle fa-fw" aria-hidden="true"></i> */ -}}
{{- $REin := ` (:\([\w- ]+?\):)` -}}
{{- $REout := `&nbsp;$1` -}}
@@ -10,5 +10,5 @@
{{- $content = replaceRE $REin $REout . -}}
{{- $REin = `:\(([\w- ]+?)\):` -}}
{{- $REout = `<i class="$1"></i>` -}}
{{- $REout = `<i class="$1" aria-hidden="true"></i>` -}}
{{- return replaceRE $REin $REout $content -}}