Permalink
Browse files

Add some styles to email_to_friend extension

  • Loading branch information...
1 parent af9db26 commit 7cfb3c8613ce573b48f338facde6c2844ec1f0e5 @devilcoders devilcoders committed Feb 10, 2012
@@ -26,7 +26,7 @@ select {
input[type='text'], input[type='password'],
input[type="email"], input[type="url"],
-input[type="phone"] {
+input[type="phone"], textarea {
font-size: 18px;
padding: 7px 5px 5px;
border: 2px solid #A0A0A0;
@@ -203,7 +203,7 @@ footer #copyright {
text-align: right;
}
-button, a.button, .button {
+button, a.button, .button, input[type="submit"] {
border: none;
background-color: #0095DA;
color: #fff!important;
@@ -0,0 +1,13 @@
+if Rails.application.railties.all.map(&:railtie_name).include? "spree_email_to_friend"
+
+ Deface::Override.new(:virtual_path => "spree/products/show",
+ :name => "converted_product_description_351026984",
+ :disabled => true)
+
+ Deface::Override.new(:virtual_path => "spree/products/show",
+ :name => "add_email_to_friend_under_add_to_cart_button",
+ :insert_before => '[data-hook="product_description"]',
+ :text => "<p class=\"email_to_friend\"><%= link_to t('email_to_friend.send_to_friend'), email_to_friend_url('product', @product), :class => 'button' %></p>",
+ :squence => {:after => 'converted_product_description_351026984'})
+
+end
@@ -1,4 +1,4 @@
Deface::Override.new(:virtual_path => %q{spree/users/show},
:name => %q{replace_account_header},
- :replace => %q{h1},
+ :replace => %q{h3:contains('accurate_title')},
:text => %q{<h1><%= t("my_account") %><%= link_to "(edit)", edit_account_path, :id => "edit_account_link" %></h1>})
@@ -67,7 +67,7 @@
</div>
</td>
<td class="unit-price">
- <%= product_price(product) %>
+ <%= number_to_currency product.price %>
</td>
</tr>
<% end -%>

0 comments on commit 7cfb3c8

Please sign in to comment.