Skip to content
Browse files

Added Haml options to config.ru and set format to :html5

  • Loading branch information...
1 parent 6e394b8 commit 18084992bee2fb89357d6ca556d207ac987e3833 adamstac committed Apr 18, 2011
Showing with 35 additions and 16 deletions.
  1. +10 −0 config.ru
  2. +24 −15 public/stylesheets/stylesheet.css
  3. +1 −1 views/layouts/application.haml
View
10 config.ru
@@ -12,6 +12,16 @@ require 'compass'
# The project root directory
root = ::File.dirname(__FILE__)
+# Set the haml options
+# http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options
+class Haml::Engine
+ alias old_initialize initialize
+ def initialize(lines, options)
+ options.update(:format => :html5)
+ old_initialize(lines, options)
+ end
+end
+
# Compass
Compass.add_project_configuration(root + '/config.rb')
Compass.configure_sass_plugin!
View
39 public/stylesheets/stylesheet.css
@@ -43,6 +43,30 @@ table {
font-family: "Helvetica-Neue", Helvetica, Arial, sans-serif;
}
+.font-arial {
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.font-times {
+ font-family: times, "Times New Roman", Georgia, sans-serif;
+}
+
+.font-georgia {
+ font-family: Georgia, times, "Times New Roman", sans-serif;
+}
+
+a {
+ color: green;
+ text-decoration: none;
+}
+a:hover {
+ color: #00b300;
+ text-decoration: underline;
+}
+a:focus, a:active {
+ outline: none;
+}
+
a:hover, a:active {
outline: none;
}
@@ -174,21 +198,6 @@ h1, h2, h3, h4, h5, h6 {
font-weight: bold;
}
-a {
- color: green;
- text-decoration: none;
-}
-a:active, a:visited {
- color: green;
-}
-a:hover {
- color: #00b300;
- text-decoration: underline;
-}
-a:focus, a:active {
- outline: none;
-}
-
.ir, .image-replacement {
display: block;
text-indent: -999em;
View
2 views/layouts/application.haml
@@ -1,4 +1,4 @@
-!!! 5
+!!!
%html{html_attrs}
%head
%title= @title

0 comments on commit 1808499

Please sign in to comment.
Something went wrong with that request. Please try again.