Browse files

Changed more styles

  • Loading branch information...
1 parent b3ed785 commit a2c511d59e9e689d5bcc2cfb7549ba8948bf2bff julius committed Apr 8, 2012
View
2 app/assets/stylesheets/store/products.css
@@ -1,4 +1,4 @@
-body#product-list h1, body#product-details h1 {
+body#product-list h1, body#product-details h1, #info #container #banner h1 {
margin: 0px;
}
body#product-details #product-images {
View
15 app/assets/stylesheets/store/taxonomy.css.erb
@@ -2,28 +2,35 @@ body#product-list, body#product-details {
background-image: url(<%= asset_path 'store/bg.jpg' %>);
}
-body#product-details #banner, body#product-list #banner {
+body#product-details #banner, body#product-list #banner, #info #container #banner {
height: 143px;
background-repeat: no-repeat;
margin-bottom: 30px;
}
-body#product-details #banner, body#product-list #banner {
+body#product-details #banner, body#product-list #banner, #info #container #banner {
position: relative;
}
-body#product-details #banner h1, body#product-list #banner h1 {
+body#product-details #banner h1, body#product-list #banner h1, #info #container #banner h1 {
position: absolute;
color: #fff;
font-family: Trebuchet MS;
font-size: 4em;
line-height: 140px;
text-shadow: rgba(0,0,0,1) 1px 1px 2px;
+ z-index: 2;
}
-body#product-list #banner img {
+body#product-list #banner img, #info #container #banner img {
position: absolute;
top: 0; left: 0;
z-index: 1;
+
+}
+
+#info #container #banner img {
+ width: 1200px;
+ height: 143px;
}
body#product-list #main, body#product-details #main, body#content #main {
View
4 app/overrides/replace_body.rb
@@ -27,13 +27,13 @@
<%= link_to_cart %>
</nav>
</header>
-
+
<% if content_for?(:banner) %>
<div id="banner" role="banner">
<%= yield :banner %>
</div>
<% end %>
-
+
<div id="main" role="main">
<% if flash.notice %>
<div class="flash notice"><%= flash.notice %></div>
View
7 app/overrides/replace_products.rb
@@ -1,10 +1,15 @@
+#encoding: utf-8
Deface::Override.new(:virtual_path => %q{spree/shared/_products},
:name => %q{replace_products},
:replace => %q{#products[data-hook]},
:closing_selector => %q{},
:text => %q{<% @body_id = 'product-list' %>
-<%= render 'spree/shared/product_banner' %>
+ <%= content_for :banner do %>
+ <h1>Prekės</h1>
+ <%= image_tag "store/satellite-radios-bg.jpg", :alt => "Satellite Radios" %>
+ <% end %>
+
<% index = 0 %>
<div class="list" id="products" data-hook>
<% products.each do |product| %>

0 comments on commit a2c511d

Please sign in to comment.