Created (very) early application layoutmaster
authorJon Wood <[email protected]>
Mon, 7 Jan 2008 22:13:47 +0000 (7 22:13 +0000)
committerJon Wood <[email protected]>
Mon, 7 Jan 2008 22:13:47 +0000 (7 22:13 +0000)
Blog/.gitignore
Blog/app/views/layouts/application.haml [new file with mode: 0644]
Blog/public/stylesheets/sass/main.sass [new file with mode: 0644]

index 92d7d45..ceb1a2a 100644 (file)
@@ -1,3 +1,5 @@
 config/database.yml
 db/*.sqlite3
 tmp/*/*
+log/*
+public/stylesheets/*.css # Stylsheets are generated using SASS
diff --git a/Blog/app/views/layouts/application.haml b/Blog/app/views/layouts/application.haml
new file mode 100644 (file)
index 0000000..71dba1b
--- /dev/null
@@ -0,0 +1,16 @@
+!!!
+%html
+  %head
+    %title "Blog Demo"
+    = stylesheet_link_tag 'main'
+       
+  %body
+    #container
+      #header
+        %h1 Notes on a Blank Pad
+      
+      #content
+        = yield
+        
+    #footer
+      %p Copyright &copy; Jon Wood, 2008
\ No newline at end of file
diff --git a/Blog/public/stylesheets/sass/main.sass b/Blog/public/stylesheets/sass/main.sass
new file mode 100644 (file)
index 0000000..2f977ef
--- /dev/null
@@ -0,0 +1,32 @@
+!title = #4679ae
+
+*
+  margin: 0
+  padding: 0
+  font-family: sans-serif
+  font-size: 1em
+
+body
+  background-color: #222
+       
+#container
+  width: 80%
+  background-color: white
+  margin-left: auto
+  margin-right: auto
+  padding: 1em
+  
+  h1
+    font-size: 1.6em
+    color= !title
+  
+  h2
+    font-size: 1.4em
+    color= !title
+    
+#footer
+  text-align: center
+  font-size: 0.8em
+  
+  margin-top: 1em
+  color: #888
\ No newline at end of file