Remove inline styling where possible

This commit is contained in:
2021-11-10 20:02:52 +01:00
parent a8c9b46f6a
commit ea4c2dc200
4 changed files with 9 additions and 14 deletions
+5 -1
View File
@@ -27,6 +27,10 @@
margin: 0 auto;
width: 760px;
max-width: 100%;
a {
text-decoration: none;
}
}
}
@@ -47,4 +51,4 @@
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "main" }}
<main role="main" style="">
<main role="main">
<div>
{{- if .Site.Params.Portrait.Path }}
{{- partial "image.html" (dict "path" .Site.Params.Portrait.Path "alt" .Site.Params.Portrait.Alt "class" "circle" "style" (printf "max-width:%s" .Site.Params.Portrait.Size ))}}
+3 -6
View File
@@ -1,5 +1,5 @@
<a href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}"
style="text-decoration: none;">
<a
href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}">
<div class="logo">
{{- if .Site.Params.Logo.path }}
{{- partial "image.html" (dict "path" .Site.Params.Logo.path "alt" .Site.Params.Logo.alt) }}
@@ -7,10 +7,7 @@
<span class="logo__mark">></span>
<span class="logo__text">{{- with .Site.Params.Logo.logoText }}{{ . }}{{ else }}$ cd /home/{{ end }}<span
id="nav-terminal"></span></span>
<span class="logo__cursor" style="{{- with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end -}}
{{- with.Site.Params.Logo.logoCursorColor }}background-color:{{ . }};{{ end -}}
{{- with.Site.Params.Logo.logoCursorAnimate }}animation-duration:{{ . }};{{ end -}}">
</span>
<span class="logo__cursor"></span>
{{- end }}
</div>
</a>