all repos — honk @ 4ecb3d97dc4c0b98a5a8f24aa4fad23116be1908

my fork of honk

formatting, inter css
Anirudh Oppiliappan x@icyphox.sh
Thu, 08 Dec 2022 20:51:57 +0530
commit

4ecb3d97dc4c0b98a5a8f24aa4fad23116be1908

parent

757bb4cea44f69d71dbd6b6c6e857bd00569e211

4 files changed, 16 insertions(+), 14 deletions(-)

jump to
M fun.gofun.go

@@ -64,17 +64,17 @@ }

func prettifydate(d time.Time) string { var customMags = []humanize.RelTimeMagnitude{ - {time.Second, "now", time.Second}, - {2 * time.Second, "1s %s", 1}, - {time.Minute, "%ds %s", time.Second}, - {2 * time.Minute, "1m %s", 1}, - {time.Hour, "%dm %s", time.Minute}, - {2 * time.Hour, "1h %s", 1}, - {humanize.Day, "%dh %s", time.Hour}, - {2 * humanize.Day, "1d %s", 1}, - {humanize.Week, "%dd %s", humanize.Day}, - {2 * humanize.Week, "1w %s", 1}, - {humanize.Month, "%dw %s", humanize.Week}, + {time.Second, "now", time.Second}, + {2 * time.Second, "1s %s", 1}, + {time.Minute, "%ds %s", time.Second}, + {2 * time.Minute, "1m %s", 1}, + {time.Hour, "%dm %s", time.Minute}, + {2 * time.Hour, "1h %s", 1}, + {humanize.Day, "%dh %s", time.Hour}, + {2 * humanize.Day, "1d %s", 1}, + {humanize.Week, "%dd %s", humanize.Day}, + {2 * humanize.Week, "1w %s", 1}, + {humanize.Month, "%dw %s", humanize.Week}, } since := time.Since(d)
M honk.gohonk.go

@@ -55,6 +55,7 @@ SkinnyCSS bool `json:",omitempty"`

OmitImages bool `json:",omitempty"` MentionAll bool `json:",omitempty"` InlineQuotes bool `json:",omitempty"` + Avahex bool `json:",omitempty"` Avatar string `json:",omitempty"` CustomDisplay string `json:",omitempty"` Banner string `json:",omitempty"`
M views/header.htmlviews/header.html

@@ -2,6 +2,7 @@ <!doctype html>

<html> <head> <title>honk</title> + <link href="https://cdn.icyphox.sh/fonts/inter.css" rel="stylesheet"> <link href="/style.css{{ .StyleParam }}" rel="stylesheet"> {{ if .LocalStyleParam }} <link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
M views/style.cssviews/style.css

@@ -42,7 +42,7 @@ background: var(--bg-page);

color: var(--fg); font-size: 1rem !important; word-wrap: break-word; - font-family: -apple-system, "Inter", sans-serif, "Noto Color Emoji"; + font-family: "InterVar", -apple-system, sans-serif, "Noto Color Emoji"; line-height: 1.2; overscroll-behavior-y: contain; overflow: overlay;

@@ -66,7 +66,7 @@ overflow-x: auto;

} form, input, textarea { - font-family: -apple-system, "Inter", sans-serif, "Noto Color Emoji"; + font-family: "InterVar", -apple-system, sans-serif, "Noto Color Emoji"; } p { margin-top: 1em;

@@ -157,7 +157,7 @@ }

label.button, button, select { border: none; font-size: 1rem; - font-family: -apple-system, "Inter", sans-serif, "Noto Color Emoji"; + font-family: "InterVar", -apple-system, sans-serif, "Noto Color Emoji"; color: var(--fg); padding: 0.2em; background: var(--bg-dark);