From 7d0c30a7ae54adc94301ed83dcac09673796d51c Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Tue, 1 Nov 2011 13:09:02 +0100 Subject: [PATCH] Standardset styling --- app/views/elements/_contactform_view.html.erb | 31 ++++++------------ assets/stylesheets/standard_set.css | 32 ++++++++++++++++++- 2 files changed, 40 insertions(+), 23 deletions(-) diff --git a/app/views/elements/_contactform_view.html.erb b/app/views/elements/_contactform_view.html.erb index 64afc3e8fe..f6377e919e 100644 --- a/app/views/elements/_contactform_view.html.erb +++ b/app/views/elements/_contactform_view.html.erb @@ -5,9 +5,7 @@
- + <%= f.label :salutation, t('alchemy.contactform.labels.salutation') %> <%= f.select( @@ -23,9 +21,7 @@
- + <%= f.label :firstname, t('alchemy.contactform.labels.firstname') %> <%= f.text_field(:firstname, :class => "field") %> @@ -33,9 +29,7 @@
- * + <%= f.label :lastname, (t('alchemy.contactform.labels.lastname') + '*').html_safe %> <%= f.text_field(:lastname, :class => "field") %> @@ -43,9 +37,7 @@
- + <%= f.label :address, t('alchemy.contactform.labels.address') %> <%= f.text_field :address, :class => 'field' %> @@ -53,9 +45,7 @@
- + <%= f.label :zip, t('alchemy.contactform.labels.zip') %> <%= f.text_field :zip, :class => 'field short' %> @@ -64,9 +54,7 @@
- + <%= f.label :phone, t('alchemy.contactform.labels.phone') %> <%= f.text_field :phone, :class => 'field' %> @@ -74,9 +62,7 @@
- * + <%= f.label :email, (t('alchemy.contactform.labels.email') + '*').html_safe %> <%= f.text_field :email, :class => 'field' %> @@ -84,8 +70,9 @@
- <%= f.text_area :message %> + <%= f.text_area :message %>
+

*) <%= t('alchemy.contactform.labels.mandatory_fields') %>

<%= f.button t('alchemy.contactform.labels.send'), :name => nil, :class => 'button' %>

diff --git a/assets/stylesheets/standard_set.css b/assets/stylesheets/standard_set.css index 773fe878ed..bd2d74414b 100644 --- a/assets/stylesheets/standard_set.css +++ b/assets/stylesheets/standard_set.css @@ -1,3 +1,5 @@ +/* @override http://localhost:3000/stylesheets/alchemy/standard_set.css */ + body { margin: 0; padding: 0; @@ -371,4 +373,32 @@ label { p.right { text-align: right; -} \ No newline at end of file +} + +.search_results ul { + list-style-type: none; + padding: 0 0 0 12px; +} + +.search_results ul li { + margin-bottom: 2em; +} + +.search_results ul li p { + margin-top: 0.5em; + margin-bottom: 0.5em; +} + +.search_results ul li h3 { + margin-bottom: 0.5em; + margin-top: 0.5em; +} + +.search_results ul li h4 { + margin-top: 0.5em; + margin-bottom: 0.5em; +} + +.search_results em { + font-weight: bold; +}