remove some styles that are causing mobile chrome to look bad
Ted Unangst tedu@tedunangst.com
Wed, 04 Dec 2019 00:40:22 -0500
2 files changed,
2 insertions(+),
11 deletions(-)
M
docs/mandoc.css
→
docs/mandoc.css
@@ -274,15 +274,6 @@ .Li { font-style: normal;
font-weight: normal; font-family: monospace; } -/* Tooltip support. */ - -h1.Sh, h2.Ss { position: relative; } -.An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft, -.Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs, -.St, .Sx, .Sy, .Va, .Vt, .Xr { - display: inline-block; - position: relative; } - /* Overrides to avoid excessive margins on small devices. */ @media (max-width: 37.5em) {
M
web.go
→
web.go
@@ -1991,7 +1991,7 @@ w.Write(a)
} func serveasset(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Cache-Control", "max-age=7776000") + //w.Header().Set("Cache-Control", "max-age=7776000") dir := viewDir if r.URL.Path == "/local.css" { dir = dataDir@@ -2000,7 +2000,7 @@ http.ServeFile(w, r, dir+"/views"+r.URL.Path)
} func servehelp(w http.ResponseWriter, r *http.Request) { name := mux.Vars(r)["name"] - w.Header().Set("Cache-Control", "max-age=3600") + //w.Header().Set("Cache-Control", "max-age=3600") http.ServeFile(w, r, viewDir+"/docs/"+name) } func servehtml(w http.ResponseWriter, r *http.Request) {