openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ee97147ecdb50b6d80554a9eea22d6230ec74ad2
parent f408a6962f0d53e63902156f5da44f14303c31a8
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Fri,  4 Sep 2020 13:27:14 +0300

Style up

Diffstat:
Mii-node/lib/style.css | 38++++++++++++++++++++++++++++++++++----
Mii-node/tpl/footer.tpl | 1+
Mii-node/tpl/header.tpl | 1+
Mii-node/tpl/pager.tpl | 9++++++++-
4 files changed, 44 insertions(+), 5 deletions(-)

diff --git a/ii-node/lib/style.css b/ii-node/lib/style.css @@ -1,9 +1,39 @@ .msgtext { white-space: pre-wrap; } -.selected { - background: red; +/* .selected { */ +/* background: red; */ +/* } */ +#body { + max-width: 60em; + margin-left:auto; + margin-right:auto; +} +.fsmaller { + font-size: smaller; +} +#pager { +// font-size: smaller; + padding: 0.5em; + margin-left:auto; + margin-right:auto; } + +#pager a, a:visited { + color: #777777; + text-decoration: none; +} + +#pager a:hover { + color: #000000; +} + +#pager .selected { + color: #ffffff; + background: #55aaaa; + text-decoration: none; +} + #echolist, #topiclist { margin: 0; margin-left:auto; @@ -25,9 +55,9 @@ #echolist .echo, #topiclist .topic { font-weight: normal; text-align: left; - max-width: 32em; - width: 32em; + width: 100%; } + #echolist .count, #echolist .topics, #topiclist .topics, #topiclist .posts { text-align: center; } diff --git a/ii-node/tpl/footer.tpl b/ii-node/tpl/footer.tpl @@ -1,2 +1,3 @@ +</div> </body> </html> diff --git a/ii-node/tpl/header.tpl b/ii-node/tpl/header.tpl @@ -8,4 +8,5 @@ <title>go-ii</title> </head> <body> +<div id="body"> {{ with .User }}{{.Name}}{{end}} diff --git a/ii-node/tpl/pager.tpl b/ii-node/tpl/pager.tpl @@ -1,7 +1,14 @@ +{{$.Pages}} +{{ if gt $.Pages 100 }} +<div id="pager" class ="fsmaller"> +{{ else }} +<div id="pager"> +{{ end }} {{ range .Pager }} {{ if eq . $.Page }} -[{{.}}] +<span class="selected">{{.}}</span> {{ else }} <a href="/{{$.BasePath}}/{{.}}">{{.}}</a> {{ end }} {{ end }} +</div>