aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-24 11:51:19 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-24 11:51:19 +0100
commit653e1cc05453eae8e05ccc2de141721bea0b485d (patch)
treeae6644cb0b1cc3441f62f4bc6f93a1e88d5446b8
parentdab14c5d1570f44071bb278bc19e7623dcba35f7 (diff)
Restyle nav
-rw-r--r--assets/css/style.css6
-rw-r--r--tmpl/root14
2 files changed, 8 insertions, 12 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 6b34512..3ef4259 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -30,13 +30,13 @@ blockquote {
dd {
padding-bottom: 1em;
}
-header {
+nav {
float: right;
}
-header a {
+nav a, nav span {
padding: 1ex;
}
-header p {
+nav span {
text-align: right;
font-size: large;
font-weight: bold;
diff --git a/tmpl/root b/tmpl/root
index 03659c7..093ad19 100644
--- a/tmpl/root
+++ b/tmpl/root
@@ -8,20 +8,16 @@
<link rel='stylesheet' type='text/css' href='/css/font-awesome.min.css'>
</head>
<body>
-<section>
-<header>
-<p>{{template "title" .}}</p>
<nav>
- <a href="/" title="home"><i class="fa fa-home"></i></a>
- <a href="/index" title="index"><i class="fa fa-list"></i></a>
- {{with .Title}}
+ <span>{{template "title" .}}</span>
+ {{with .Title -}}
<a href="/edit/{{.}}" title="edit {{.}}"><i class="fa fa-pencil"></i></a>
<!--a href="/del/{{.}}" title="delete {{.}}"><i class="fa fa-trash"></i></a-->
- {{end}}
+ {{- end}}
+ <a href="/" title="home"><i class="fa fa-home"></i></a>
+ <a href="/index" title="index"><i class="fa fa-list"></i></a>
</nav>
-</header>
{{template "content" .}}
-</section>
</body>
</html>
{{end}}