Colour tweaks

This commit is contained in:
JP Hastings-Spital 2023-12-24 22:01:11 +00:00
parent 5316a99346
commit 6a901c75cd
13 changed files with 32 additions and 23 deletions

View file

@ -105,11 +105,3 @@
padding: 0.2em 0;
}
hgroup {
nav {
svg {
width: 1em;
height: 1em;
}
}
}

View file

@ -147,8 +147,16 @@ a[href^="https://web.archive.org/"] {
}
a:not(.noaccent) {
.daytime {
color: lch(60% 60 var(--accentHue));
}
&:hover {
color: var(--accent);
.daytime {
color: inherit;
}
}
transition-property: color, filter;
@ -806,4 +814,4 @@ mark {
@media (prefers-color-scheme: dark) {
background-color: $dark-background
}
}
}

View file

@ -25,7 +25,7 @@
text-decoration: none;
}
* {
h1, h2 {
margin: 0;
}
@ -443,16 +443,20 @@ figure {
li {
display: inline-block;
margin-right: 2rem;
margin-right: 1rem;
vertical-align: middle;
svg {
color: var(--accent);
margin-right: 0.3rem;
color: lch(60% 60 var(--accentHue));
margin-right: 0.2rem;
vertical-align: -0.125em;
width: 1em;
height: 1em;
}
a:hover svg {
color: var(--accent);
}
}
}

View file

@ -19,4 +19,4 @@ I'd really love to go to EMF Camp this year (it'd be my first time, despite how
>
> A temporary town of nearly three thousand like-minded people enjoying a long weekend of talks, performances, and workshops on everything from blacksmithing to biometrics, chiptunes to computer security, high altitude ballooning to lockpicking, origami to democracy, and online privacy to knitting.
>
> To help matters along, we provide fast internet, power to the tent, good beer, and amazing installations, entirely organised by a dedicated team of volunteers.
> To help matters along, we provide fast internet, power to the tent, good beer, and amazing installations, entirely organised by a dedicated team of volunteers.

View file

@ -14,6 +14,8 @@ summary: A tour of the development of Britain's radical left, told through the L
attending: [jp, yvette]
---
It's a drop-in event, so we'll probably end up going after work at ~17:30.
> Join us for an early evening sneak peek at the archives related to the radical left.
>
> Drop in to see some of our flagship collections on the theme of the early development of the British Left. On display will be items from anti-fascist activism, the Independent Labour Party, the Social Democratic Federation, anarchism, strikes, protests, and much more!

View file

@ -4,7 +4,6 @@ date: 2023-10-24 08:08:08 BST
summary: The collection of RSS feeds I subscribe to, parcelled up so you can subscribe easily too.
outputs:
- html
- rss
- opml
---

View file

@ -35,7 +35,7 @@
{{ if .Page.Params.emoji }}<span class="post-emoji">{{ .Page.Params.emoji }}</span>{{ end }}
<span class="post-title">{{.Page.Title}}</span>
<span class="post-day">
{{ .Date.Format "Jan 2"}} {{ if or (lt (.Date.Format "15") 9) (gt (.Date.Format "15") 17) }}🌙{{ else }}🌞{{ end }}
{{ .Date.Format "Jan 2"}} <span class="daytime">{{ if or (lt (.Date.Format "15") 9) (gt (.Date.Format "15") 17) }}☾{{ else }}☀︎{{ end }}</span>
</span>
</a>
</li>

View file

@ -1,4 +1,5 @@
{{- if eq . "calendar"}}Calendar (.ics)
{{- else if eq . "rss"}}Feed (RSS)
{{- if eq . "calendar"}}Calendar
{{- else if eq . "rss"}}RSS Feed
{{- else if eq . "opml" }}OPML Feed
{{- else }}Alternate
{{- end -}}

View file

@ -1,10 +1,12 @@
{{ if gt (len .OutputFormats) 1 }}
{{ $page := .}}
<nav>
<ul class="feedlinks">
{{ range $page.OutputFormats }}
{{ if ne .Rel "alternate" }}{{ continue }}{{ end }}
{{ $link := ($page.OutputFormats.Get .Name).Permalink }}
<a href="{{ $link | safeURL }}" title="{{ partial "alternatename.txt" .Name }}">{{ partial "svg.html" (dict "name" .Name) }}</a>
<li><a href="{{ $link | safeURL }}" title="{{ partial "alternatename.txt" .Name }}">{{ partial "svg.html" (dict "name" .Name) }} {{ partial "alternatename.txt" .Name }}</a></li>
{{ end }}
</ul>
</nav>
{{ end }}

View file

@ -112,6 +112,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z"/></svg>
{{- else if (eq .name "opencollective") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12c2.54 0 4.894-.79 6.834-2.135l-3.107-3.109a7.715 7.715 0 1 1 0-13.512l3.107-3.109A11.943 11.943 0 0 0 12 0zm9.865 5.166l-3.109 3.107A7.67 7.67 0 0 1 19.715 12a7.682 7.682 0 0 1-.959 3.727l3.109 3.107A11.943 11.943 0 0 0 24 12c0-2.54-.79-4.894-2.135-6.834z"/></svg>
{{- else if (eq .name "opml") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>
{{- else if (eq .name "orcid") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM7.369 4.378c.525 0 .947.431.947.947s-.422.947-.947.947a.95.95 0 0 1-.947-.947c0-.525.422-.947.947-.947zm-.722 3.038h1.444v10.041H6.647V7.416zm3.562 0h3.9c3.712 0 5.344 2.653 5.344 5.025 0 2.578-2.016 5.025-5.325 5.025h-3.919V7.416zm1.444 1.303v7.444h2.297c3.272 0 4.022-2.484 4.022-3.722 0-2.016-1.284-3.722-4.097-3.722h-2.222z"/></svg>
{{- else if (eq .name "patreon") -}}

View file

@ -1,4 +1,4 @@
{{- $date := . -}}
{{- $extraClass := slice -}}
{{ if reflect.IsSlice . -}}{{ $date = index . 0 }}{{ $extraClass = index . 1 }}{{ end -}}
<time class="{{ with $extraClass }}{{.}}{{ end }}" timestamp="{{ $date }}" title="{{ time $date | dateFormat "2006-01-02 15:04 MST" }}">{{ time $date | dateFormat "January 2" }}{{ if ne (time $date | dateFormat "2006") (now | dateFormat "2006") }}, {{ time $date | dateFormat "2006" }}{{ end }}</time>
<time class="{{ with $extraClass }}{{.}}{{ end }}" timestamp="{{ $date }}" title="{{ time $date | dateFormat "2006-01-02 15:04 MST" }}">{{ partial "year-relative-date.txt" $date }}</time>

View file

@ -0,0 +1 @@
{{ time . | dateFormat "January 2" }}{{ if ne (time . | dateFormat "2006") (now | dateFormat "2006") }}, {{ time . | dateFormat "2006" }}{{ end }}

View file

@ -8,9 +8,7 @@
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
</h1>
<ul class="feedlinks">
<li><a href="./feeds.opml" target="_blank">{{ partial "svg.html" (dict "name" "rss") }}OPML feed</a></li>
</ul>
{{ partial "alternates.html" . }}
</hgroup>
{{ if .Content }}