003077f697d6

Styling.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 28 Sep 2011 23:50:41 -0400
parents dc8ba07e8157
children 0f766eda5d9f
branches/tags (none)
files resources/public/css/style.less src/newseasons/templates/main.clj

Changes

diff -r dc8ba07e8157 -r 003077f697d6 resources/public/css/style.less
--- 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;
+    }
+}
diff -r dc8ba07e8157 -r 003077f697d6 src/newseasons/templates/main.clj
--- 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]