From dd518c7a54b28e6410707935d152a91cf772d486 Mon Sep 17 00:00:00 2001 From: Robert Brook Date: Fri, 25 Apr 2008 07:36:00 +0100 Subject: [PATCH] style tweaks --- app/controllers/questions_controller.rb | 1 + app/views/layouts/application.haml | 8 +++----- public/stylesheets/screen.css | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 public/stylesheets/screen.css diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index 93258de9..6e04263f 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -1,6 +1,7 @@ class QuestionsController < ApplicationController def index + @title = "Questions" @questions = Question.find(:all) respond_to do |format| format.html # index.rhtml diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 9b017ed4..58ee61af 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -2,11 +2,9 @@ %html %head %title Lords Q+A - - # %link{ :rel=>"stylesheet", :href=>"http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css", :type=>"text/css" } - - # %link{ :rel=>"stylesheet", :type=>"text/css", :href=>"http://yui.yahooapis.com/2.5.1/build/assets/skins/sam/skin.css" } - %style{ :type=>"text/css"} - = "#custom-doc { width: 66%; min-width: 740px; font-size: 1.3em; margin-left: 5em}" - = ".asking_member, .answering { font-weight: bold }" + = stylesheet_link_tag "http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css" + = stylesheet_link_tag "http://yui.yahooapis.com/2.5.1/build/assets/skins/sam/skin.css" + = stylesheet_link_tag "screen" %body #custom-doc.yui-t7 #hd diff --git a/public/stylesheets/screen.css b/public/stylesheets/screen.css new file mode 100644 index 00000000..938a1ebe --- /dev/null +++ b/public/stylesheets/screen.css @@ -0,0 +1,2 @@ +#custom-doc { width: 66%; min-width: 740px; font-size: 1.3em; margin-left: 5em} +.asking_member, .answering { font-weight: bold } \ No newline at end of file