remove some styles that are causing mobile chrome to look bad

This commit is contained in:
Ted Unangst 2019-12-04 00:40:22 -05:00
parent 9483854d18
commit 9e7e4e88df
2 changed files with 2 additions and 11 deletions

View File

@ -274,15 +274,6 @@ a.In { }
font-weight: normal; font-weight: normal;
font-family: monospace; } 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. */ /* Overrides to avoid excessive margins on small devices. */
@media (max-width: 37.5em) { @media (max-width: 37.5em) {

4
web.go
View File

@ -1991,7 +1991,7 @@ func avatate(w http.ResponseWriter, r *http.Request) {
} }
func serveasset(w http.ResponseWriter, r *http.Request) { 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 dir := viewDir
if r.URL.Path == "/local.css" { if r.URL.Path == "/local.css" {
dir = dataDir dir = dataDir
@ -2000,7 +2000,7 @@ func serveasset(w http.ResponseWriter, r *http.Request) {
} }
func servehelp(w http.ResponseWriter, r *http.Request) { func servehelp(w http.ResponseWriter, r *http.Request) {
name := mux.Vars(r)["name"] 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) http.ServeFile(w, r, viewDir+"/docs/"+name)
} }
func servehtml(w http.ResponseWriter, r *http.Request) { func servehtml(w http.ResponseWriter, r *http.Request) {