Remove inline styling where possible

alternate-navbar
Maik de Kruif 3 years ago
parent a8c9b46f6a
commit ea4c2dc200
Signed by: maik
GPG Key ID: 44A55AD1F0673FA6
  1. 6
      config.toml
  2. 6
      themes/maik-blog/assets/scss/_header.scss
  3. 2
      themes/maik-blog/layouts/index.html
  4. 9
      themes/maik-blog/layouts/partials/logo.html

@ -99,12 +99,6 @@ googleAnalytics = "UA-136337666-1"
[params.logo] [params.logo]
logoText = "$ cd /home/" logoText = "$ cd /home/"
logoHomeLink = "/" logoHomeLink = "/"
# Set true to remove the logo cursor entirely.
# logoCursorDisabled = false
# Set to a valid CSS color to change the cursor in the logo.
# logoCursorColor = "#67a2c9"
# Set to a valid CSS time value to change the animation duration, "0s" to disable.
# logoCursorAnimate = "2s"
# Uncomment this if you want a portrait on your start page # Uncomment this if you want a portrait on your start page
[params.portrait] [params.portrait]

@ -27,6 +27,10 @@
margin: 0 auto; margin: 0 auto;
width: 760px; width: 760px;
max-width: 100%; max-width: 100%;
a {
text-decoration: none;
}
} }
} }
@ -47,4 +51,4 @@
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
} }

@ -1,5 +1,5 @@
{{ define "main" }} {{ define "main" }}
<main role="main" style=""> <main role="main">
<div> <div>
{{- if .Site.Params.Portrait.Path }} {{- 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 ))}} {{- 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 ))}}

@ -1,5 +1,5 @@
<a href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}" <a
style="text-decoration: none;"> href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}">
<div class="logo"> <div class="logo">
{{- if .Site.Params.Logo.path }} {{- if .Site.Params.Logo.path }}
{{- partial "image.html" (dict "path" .Site.Params.Logo.path "alt" .Site.Params.Logo.alt) }} {{- 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__mark">></span>
<span class="logo__text">{{- with .Site.Params.Logo.logoText }}{{ . }}{{ else }}$ cd /home/{{ end }}<span <span class="logo__text">{{- with .Site.Params.Logo.logoText }}{{ . }}{{ else }}$ cd /home/{{ end }}<span
id="nav-terminal"></span></span> id="nav-terminal"></span></span>
<span class="logo__cursor" style="{{- with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end -}} <span class="logo__cursor"></span>
{{- with.Site.Params.Logo.logoCursorColor }}background-color:{{ . }};{{ end -}}
{{- with.Site.Params.Logo.logoCursorAnimate }}animation-duration:{{ . }};{{ end -}}">
</span>
{{- end }} {{- end }}
</div> </div>
</a> </a>
Loading…
Cancel
Save