refactor: sort css classes

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
Patrick Kollitsch 2025-03-29 08:51:01 +07:00
parent c789473802
commit 36503c4f9d
No known key found for this signature in database
GPG Key ID: 01A2661D61A772CA
13 changed files with 20 additions and 20 deletions

View File

@ -6,7 +6,7 @@
{{ define "main" }}
{{ $page := .}}
{{ $section := .Site.GetPage "section" .Section }}
<article class="flex-wrap justify-between flex-l mw8 center ph3">
<article class="flex-l mw8 center ph3 flex-wrap justify-between">
<header class="mt4 w-100">
<aside class="instapaper_ignoref b helvetica tracked ttu">
{{/*

View File

@ -1,7 +1,7 @@
{{ $featured_image := partials.Include "func/GetFeaturedImage.html" . }}
<article class="bb b--black-10">
<div class="no-underline db pv4 ph3 ph0-l dark-gray">
<div class="flex flex-column flex-row-ns">
<div class="db pv4 ph3 ph0-l dark-gray no-underline">
<div class="flex-column flex-row-ns flex">
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter collections.Where our site lives */}}
<div class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }} mb4 mb0-ns w-100 w-40-ns">

View File

@ -1,5 +1,5 @@
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
<div class="bg-white mb3 pa4 gray overflow-hidden">
<div class="w-100 mb4 nested-copy-line-height relative bg-white">
<div class="mb3 pa4 gray overflow-hidden bg-white">
{{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}}
<h1 class="f3 near-black">
<a href="{{ .RelPermalink }}" class="link black dim">

View File

@ -5,9 +5,9 @@
</div>
</article>
<div class="mw8 center">
<section class="flex-ns flex-wrap justify-around mt5">
<section class="flex-ns mt5 flex-wrap justify-around">
{{ range .Pages }}
<div class="relative w-100 mb4 bg-white">
<div class="w-100 mb4 relative bg-white">
{{ .Render "summary" }}
</div>
{{ end }}

View File

@ -3,7 +3,7 @@
<ul class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
{{ range .Translations }}
<li class="list f5 f4-ns fw4 dib {{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
<a class="hover-white no-underline white-90" href="{{ .RelPermalink }}">{{ .Lang }}</a>
<a class="hover-white white-90 no-underline" href="{{ .RelPermalink }}">{{ .Lang }}</a>
</li>
{{ end}}
</ul>

View File

@ -1,6 +1,6 @@
<footer class="{{ .Site.Params.background_color_class | compare.Default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.Home.Permalink }}" >
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="{{ .Site.Home.Permalink }}" >
&copy; {{ with .Site.Copyright | compare.Default .Site.Title }} {{ . | safe.HTML }} {{ now.Format "2006"}} {{ end }}
</a>
<div>{{ partials.IncludeCached "social/follow.html" . }}</div>

View File

@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
<div class="flex-l center items-center justify-between">
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white white-90 dib no-underline">
{{ with .Site.Params.site_logo }}
<img src="{{ urls.RelURL . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" />
{{ else }}
@ -13,7 +13,7 @@
<ul class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
{{ range .Site.Menus.main }}
<li class="list f5 f4-ns fw4 dib {{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ lang.Translate "pageTitle" . }}">
<a class="hover-white white-90 no-underline" href="{{ .URL }}" title="{{ lang.Translate "pageTitle" . }}">
{{ .Name }}
</a>
</li>

View File

@ -3,8 +3,8 @@ You should replace it with '.Render "summary-with-image"' as the use of this par
More info here: https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.8.1` }}
{{ $featured_image := partials.Include "func/GetFeaturedImage.html" . }}
<article class="bb b--black-10">
<div class="no-underline db pv4 ph3 ph0-l dark-gray">
<div class="flex flex-column flex-row-ns">
<div class="db pv4 ph3 ph0-l dark-gray no-underline">
<div class="flex-column flex-row-ns flex">
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
<div class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }} mb4 mb0-ns w-100 w-40-ns">

View File

@ -1,8 +1,8 @@
{{ partials.Include "func/warn.html" `You are currently using 'partial "summary"' in your project templates.
You should replace it with '.Render "summary"' as the use of this partial will be deprecated in future releases.
More info here: https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.8.1` }}
<div class="relative bg-white w-100 mb4 nested-copy-line-height">
<div class="overflow-hidden bg-white mb3 pa4 gray">
<div class="w-100 mb4 nested-copy-line-height relative bg-white">
<div class="mb3 pa4 gray overflow-hidden bg-white">
<span class="f6 db">{{ inflect.Humanize .Section }}</span>
<h1 class="f3 near-black">
<a href="{{ .RelPermalink }}" class="link black dim">

View File

@ -1,7 +1,7 @@
<ul class="pa0">
{{ range .GetTerms "tags" }}
<li class="list di">
<a href="{{ .RelPermalink }}" class="link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif">
<a href="{{ .RelPermalink }}" class="link f5 grow br-pill ba ph3 pv2 mb2 dib black sans-serif no-underline">
{{- .LinkTitle -}}
</a>
</li>