From cd1e868dafdc6c1d29139f423141440f6f9b71e4 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 10 Dec 2017 13:03:47 +1300 Subject: [PATCH] fix phantom space between dom elements; fix search box being split into two lines in some cases; add more padding in mobile layout --- ArchiveState.go | 31 +++++++++++++++---------------- static/style.css | 11 ++++++++++- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/ArchiveState.go b/ArchiveState.go index 70e9636..2032371 100644 --- a/ArchiveState.go +++ b/ArchiveState.go @@ -296,29 +296,28 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) { « - - ` + fmt.Sprintf("%d", this.page) + ` - + + ` + fmt.Sprintf("%d", this.page) + ` + » `)) } w.Write([]byte(` -
- + - -
- - - - -
-
- - + +
+ + + + +
+
+ + -
+
`)) // Header ends diff --git a/static/style.css b/static/style.css index cc36d88..cc218c8 100644 --- a/static/style.css +++ b/static/style.css @@ -96,11 +96,18 @@ select { .nav { background: #DDD; box-shadow: 0px 4px 24px #CCC; + + font-size:0; /* remove phantom spaces between elements */ } .nav form { display: inline; } +.nav .btn, .nav .current-page, .nav select { + font-size: 12px; + line-height: 12px; +} + .nav .btn { background: white; color:black; @@ -211,7 +218,7 @@ select { text-align:center; } - .nav, .nav select { + .nav .btn, .nav .current-page, .nav select { font-size: 16px; line-height:16px; } @@ -236,7 +243,9 @@ select { } .area-search { + display:block; float:none; + margin-top: 4px; } #searchbox {