feat/css-cleanup #2

Merged
millironx merged 41 commits from feat/css-cleanup into master 2024-12-02 02:51:14 +00:00
7 changed files with 24 additions and 44 deletions
Showing only changes of commit e7972cfd81 - Show all commits

View file

@ -257,11 +257,8 @@ footer {
box-sizing: content-box; box-sizing: content-box;
display: inline-block; display: inline-block;
height: 1em; height: 1em;
vertical-align: -0.125em;
}
.fa-container.fa-fw svg {
width: 1.25em; width: 1.25em;
vertical-align: -0.125em;
} }
.fa-container svg path { .fa-container svg path {

View file

@ -62,16 +62,15 @@ stories.
Around the web you can find me at (in order of subjective importance) Around the web you can find me at (in order of subjective importance)
- {{< fa github yes >}} GitHub: [@MillironX](https://github.com/MillironX) - {{< fa github >}} GitHub: [@MillironX](https://github.com/MillironX)
- {{< fa orcid yes >}} ORDiD: - {{< fa orcid >}} ORDiD:
[0000-0003-1219-9320](https://orcid.org/0000-0003-1219-9320) [0000-0003-1219-9320](https://orcid.org/0000-0003-1219-9320)
- {{< fa gitlab yes >}} GitLab: [@MillironX](https://gitlab.com/MillironX) - {{< fa gitlab >}} GitLab: [@MillironX](https://gitlab.com/MillironX)
- {{< fa vimeo yes >}} Vimeo: - {{< fa vimeo >}} Vimeo:
[Thomas Christensen II](https://vimeo.com/tchristensenii) [Thomas Christensen II](https://vimeo.com/tchristensenii)
- {{< fa stack-overflow yes >}} StackExchange: - {{< fa stack-overflow >}} StackExchange:
[Milliron X](https://stackexchange.com/users/4863541/milliron-x) [Milliron X](https://stackexchange.com/users/4863541/milliron-x)
- {{< fa steam yes >}} Steam: - {{< fa steam >}} Steam: [MillironX](https://steamcommunity.com/id/millironx)
[MillironX](https://steamcommunity.com/id/millironx)
This list is intended to verify my identity on other sites. Please do _not_ use This list is intended to verify my identity on other sites. Please do _not_ use
it as fodder to try and "follow" me on each of these platforms. I stand with it as fodder to try and "follow" me on each of these platforms. I stand with

View file

@ -15,10 +15,7 @@
<div class="card-header"> <div class="card-header">
<div class="thumb-icon-wrapper"> <div class="thumb-icon-wrapper">
<span class="thumb-icon-badge"> <span class="thumb-icon-badge">
{{- $fontAwesomePath := print "assets/graphics/fa/" . ".svg" -}} {{- partial "fa.html" . -}}
<span class="fa-container fa-fw">
{{- readFile $fontAwesomePath | safeHTML -}}
</span>
</span> </span>
</div> </div>
</div> </div>
@ -63,9 +60,9 @@
<a <a
href="{{ .RelPermalink }}" href="{{ .RelPermalink }}"
class="card-link {{ if eq .LinkTitle "Thomas A. Christensen II" }} class="card-link {{ if eq .LinkTitle "Thomas A. Christensen II" }}
fw-bolder bolder
{{ end }}" {{ end }}"
><i class="fad fa-user"></i> {{ .LinkTitle }}</a >{{- partial "fa.html" "user" }} {{ .LinkTitle }}</a
> >
{{ end }} {{ end }}
@ -82,7 +79,7 @@
<div class="card-footer"> <div class="card-footer">
{{ range (.GetTerms "tags") }} {{ range (.GetTerms "tags") }}
<a href="{{ .RelPermalink }}" class="icon-link card-link" <a href="{{ .RelPermalink }}" class="icon-link card-link"
><i class="fad fa-tag"></i> {{ .LinkTitle }}</a >{{- partial "fa.html" "tag" }} {{ .LinkTitle }}</a
> >
{{ end }} {{ end }}
</div> </div>

View file

@ -3,12 +3,12 @@
{{ if eq $i 0 }} {{ if eq $i 0 }}
{{ with $.Site.GetPage (printf "/%s/%s" "categories" $category) }} {{ with $.Site.GetPage (printf "/%s/%s" "categories" $category) }}
{{ $iconDictionary := dict {{ $iconDictionary := dict
"video" "fad fa-video" "video" "video"
"paper" "fad fa-book" "paper" "book"
"poster" "fad fa-presentation" "poster" "presentation"
"thesis" "fad fa-graduation-cap" "thesis" "graduation-cap"
"presentation" "fad fa-podium" "presentation" "podium"
"web" "fad fa-globe" "web" "globe"
}} }}
{{ $categoryIcon := index $iconDictionary $category }} {{ $categoryIcon := index $iconDictionary $category }}
<a <a
@ -16,7 +16,7 @@
href="{{ .RelPermalink }}" href="{{ .RelPermalink }}"
title="{{ humanize $category }}" title="{{ humanize $category }}"
> >
<i class="{{ $categoryIcon | default "fad fa-tag" }} fa-fw"></i> {{- partial "fa.html" $categoryIcon -}}
</a> </a>
{{ end }} {{ end }}
{{ end }} {{ end }}

4
layouts/partials/fa.html Normal file
View file

@ -0,0 +1,4 @@
{{- $fontAwesomePath := print "assets/graphics/fa/" . ".svg" -}}
<span class="fa-container fa-fw">
{{- readFile $fontAwesomePath | safeHTML -}}
</span>

View file

@ -7,13 +7,7 @@
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}" class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ .URL }}" href="{{ .URL }}"
> >
{{- $fontAwesomePath := print "assets/graphics/fa/" .Params.icon ".svg" -}} {{- partial "fa.html" .Params.icon -}}
<span
class="fa-container
fa-fw"
>
{{- readFile $fontAwesomePath | safeHTML -}}
</span>
{{ .Name }} {{ .Name }}
</a> </a>
{{ end }} {{ end }}

View file

@ -1,13 +1,2 @@
{{- $faName := .Get 0 -}} {{- $faName := .Get 0 -}}
{{- $isFullWidth := .Get 1 -}} {{- partial "fa.html" $faName -}}
{{- $fontAwesomePath := print "assets/graphics/fa/" $faName ".svg" -}}
<span
class="fa-container{{- if eq $isFullWidth "yes" }}
fa-fw
{{ end -}}"
>
{{- readFile $fontAwesomePath | safeHTML -}}
</span>