aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-24 10:39:17 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-24 10:39:17 +0100
commit1233c89b66f4e4a8a8aa219921af145ea9996dc9 (patch)
tree0d541c09cf4cf183e78b50c15da80249ffc4772c
parent1c189a12023060a247215073dc1e79cabf86071d (diff)
Move title to the right
-rw-r--r--assets/css/style.css13
-rw-r--r--tmpl/edit2
-rw-r--r--tmpl/root2
-rw-r--r--tmpl/view4
4 files changed, 11 insertions, 10 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 36e0023..f3222e3 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -3,9 +3,6 @@ body {
margin: 5% 10%;
color: #222;
}
-h1 {
- color: #F50;
-}
a {
color: #05A;
text-decoration: none;
@@ -33,9 +30,15 @@ blockquote {
dd {
padding-bottom: 1em;
}
-nav {
+header {
float: right;
}
-nav a {
+header a {
padding: 1ex;
}
+header p {
+ text-align: right;
+ font-size: large;
+ font-weight: bold;
+ color: #F50;
+}
diff --git a/tmpl/edit b/tmpl/edit
index 683567c..2034f47 100644
--- a/tmpl/edit
+++ b/tmpl/edit
@@ -1,4 +1,4 @@
-{{define "title"}}Editing {{.Title}}{{end}}
+{{define "title"}}Edit {{.Title}}{{end}}
{{define "content"}}
<form action="/save/{{.Title}}" method="POST">
<textarea name="body" rows="25" cols="80">{{printf "%s" .Body}}</textarea>
diff --git a/tmpl/root b/tmpl/root
index d9b533c..03659c7 100644
--- a/tmpl/root
+++ b/tmpl/root
@@ -10,7 +10,7 @@
<body>
<section>
<header>
-<h1>{{template "title" .}}</h1>
+<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>
diff --git a/tmpl/view b/tmpl/view
index 24d9b55..68a4c4f 100644
--- a/tmpl/view
+++ b/tmpl/view
@@ -1,4 +1,2 @@
{{define "title"}}{{.Title}}{{end}}
-{{define "content"}}
-{{.HTML}}
-{{end}}
+{{define "content"}}{{.HTML}}{{end}}