footer: Add margin between CCO icons

Treefmt output
This commit is contained in:
Jan Kremer 2025-05-04 12:46:30 +02:00
parent c184aad39e
commit 1f2c1382fa
Signed by: jan
GPG key ID: A7DA689CB3B078EC
7 changed files with 90 additions and 50 deletions

View file

@ -133,7 +133,11 @@ a {
margin: 0.5rem; margin: 0.5rem;
vertical-align: middle; vertical-align: middle;
fill: light-dark(var(--uchu-yin), var(--uchu-yang)); fill: light-dark(var(--uchu-yin), var(--uchu-yang));
@media (prefers-color-scheme: dark) { path { fill: white; } } @media (prefers-color-scheme: dark) {
path {
fill: white;
}
}
} }
} }
@ -149,7 +153,9 @@ header {
list-style: none; list-style: none;
padding: 0 0.5rem; padding: 0 0.5rem;
a { color: light-dark(var(--uchu-yin), var(--uchu-yang)); } a {
color: light-dark(var(--uchu-yin), var(--uchu-yang));
}
.active { .active {
text-decoration: underline; text-decoration: underline;
@ -166,16 +172,21 @@ article {
text-justify: inter-word; text-justify: inter-word;
font-variant-numeric: oldstyle-nums; font-variant-numeric: oldstyle-nums;
img { width: 100%; } img {
width: 100%;
}
>p:nth-of-type(2)::first-letter { > p:nth-of-type(2)::first-letter {
font-size: 3.3rem; font-size: 3.3rem;
float: left; float: left;
line-height: 3rem; line-height: 3rem;
padding-right: 0.2rem; padding-right: 0.2rem;
} }
p, ul { font-family: var(--serif); } p,
ul {
font-family: var(--serif);
}
.dates { .dates {
display: flex; display: flex;
@ -200,11 +211,17 @@ article {
margin: 0; margin: 0;
} }
em { color: var(--uchu-red); } em {
color: var(--uchu-red);
}
strong { color: var(--uchu-orange); } strong {
color: var(--uchu-orange);
}
abbr { text-decoration-color: var(--uchu-blue); } abbr {
text-decoration-color: var(--uchu-blue);
}
table { table {
border-collapse: collapse; border-collapse: collapse;
@ -232,18 +249,25 @@ footer {
text-decoration: none; text-decoration: none;
color: light-dark(var(--uchu-yin), var(--uchu-yang)); color: light-dark(var(--uchu-yin), var(--uchu-yang));
&:hover { text-decoration: none; } &:hover {
text-decoration: none;
}
} }
svg { svg {
height: 0.75rem; height: 0.75rem;
width: 0.75rem; width: 0.75rem;
vertical-align: middle; vertical-align: middle;
margin: 0 1px;
} }
#title { #title {
svg { svg {
@media (prefers-color-scheme: dark) { path { fill: white; } } @media (prefers-color-scheme: dark) {
path {
fill: white;
}
}
} }
} }
} }
@ -269,7 +293,9 @@ footer {
text-decoration: none; text-decoration: none;
} }
h2 { margin: 0; } h2 {
margin: 0;
}
.lead { .lead {
margin: 0; margin: 0;

View file

@ -41,6 +41,11 @@
apps = eachSystem (pkgs: { apps = eachSystem (pkgs: {
default = { default = {
type = "app"; type = "app";
meta = {
description = "Build my blog";
homepage = "https://jankremer.eu";
license = nixpkgs.lib.licenses.cc0;
};
program = program =
(pkgs.writeShellScript "build-website" '' (pkgs.writeShellScript "build-website" ''
set -e set -e

View file

@ -16,6 +16,6 @@
</a> </a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
{{ end }} {{ end }}

View file

@ -15,6 +15,6 @@
</a> </a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
{{ end }} {{ end }}

View file

@ -5,7 +5,12 @@
{{ $lastmodDateHuman := .Lastmod | time.Format ":date_long" }} {{ $lastmodDateHuman := .Lastmod | time.Format ":date_long" }}
{{ $lastmodDateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }} {{ $lastmodDateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
<div class="dates"> <div class="dates">
<p>Editiert: <time datetime="{{ $lastmodDateMachine }}">{{ $lastmodDateHuman }}</time></p> <p>
Editiert:
<time datetime="{{ $lastmodDateMachine }}"
>{{ $lastmodDateHuman }}</time
>
</p>
<p><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p> <p><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
</div> </div>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>

View file

@ -1,6 +1,10 @@
<ul> <ul>
<li> <li>
<a href="https://creativecommons.org/publicdomain/zero/1.0/"> <a
href="https://creativecommons.org/publicdomain/zero/1.0/"
target="_blank"
rel="noopener noreferrer"
>
{{ partial "cc.svg" . }} {{ partial "cc.svg" . }}
{{ partial "zero.svg" . }} {{ partial "zero.svg" . }}
</a> </a>