--- a/resources/public/css/style.less Wed Sep 28 23:40:36 2011 -0400
+++ b/resources/public/css/style.less Wed Sep 28 23:50:41 2011 -0400
@@ -1,7 +1,7 @@
header {
text-align: center;
margin-top: 24px;
- margin-bottom: 32px;
+ margin-bottom: 32px !important;
padding-bottom: 12px;
border-bottom: 2px solid #ddd;
}
@@ -25,3 +25,12 @@
margin-top: -12px;
margin-bottom: 32px;
}
+.page-title {
+ position: relative;
+
+ .logout {
+ position: absolute;
+ top: -6px;
+ right: 2px;
+ }
+}
--- a/src/newseasons/templates/main.clj Wed Sep 28 23:40:36 2011 -0400
+++ b/src/newseasons/templates/main.clj Wed Sep 28 23:50:41 2011 -0400
@@ -40,10 +40,11 @@
(defpartial inner [title & content]
(base
- [:h2.sixteen.columns title]
- content
- (form-to [:post "/logout"]
- (submit-button "Log Out"))))
+
+ [:h2.sixteen.columns.page-title [:div.logout
+ (form-to [:post "/logout"]
+ (submit-button "Log Out"))]title]
+ content))
; Pages -----------------------------------------------------------------------
@@ -77,7 +78,7 @@
[:li
[:h3 (link-to (r "artistViewUrl") (r "artistName"))]
(form-to [:post "/add"]
- [:input {:type "hidden" :name "artist-id" :value (r "artistId")}]
+ [:input {:type "hidden" :name "artist-id" :value (r "artistId")}]
(submit-button "Watch for this Show"))])
(defpartial search [query results]