formatting, inter css
Anirudh Oppiliappan x@icyphox.sh
Thu, 08 Dec 2022 20:51:57 +0530
4 files changed,
16 insertions(+),
14 deletions(-)
M
fun.go
→
fun.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.go
→
honk.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.html
→
views/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.css
→
views/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);