From 7c1dee80ee0690aadc7966adf0e9838b354e8d24 Mon Sep 17 00:00:00 2001 From: benji Date: Thu, 19 Feb 2015 18:07:34 +0100 Subject: [PATCH] fix some css --- app/assets/stylesheets/orders.css.scss | 22 ++++++++++++++++++++-- app/views/order_items/_order_item.html.erb | 6 ++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/orders.css.scss b/app/assets/stylesheets/orders.css.scss index 70d4b99..ea86f6f 100644 --- a/app/assets/stylesheets/orders.css.scss +++ b/app/assets/stylesheets/orders.css.scss @@ -1,11 +1,29 @@ // Place all the styles related to the Orders controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ -.form-control.input-lg{ +.form-control.input-lg { height:66px; text-align: center; } -.big-form-button{ + +.big-form-button { height:65px; width:65px; } + +.form_row_image { + height: 100px; + width: 100px; + margin-left: auto; + margin-right: auto; + position: relative; +} + +.form_row_image img { + position: absolute; + top: 0; + bottom: 0; + left: 0; + top: 0; + margin: auto; +} diff --git a/app/views/order_items/_order_item.html.erb b/app/views/order_items/_order_item.html.erb index 12d8bfd..20a25fe 100644 --- a/app/views/order_items/_order_item.html.erb +++ b/app/views/order_items/_order_item.html.erb @@ -1,9 +1,11 @@
- <%= image_tag product.avatar %> +
+ <%= image_tag product.avatar %> +
- <%= content_tag :h3, "#{product.name} - #{euro(product.price)}" %> + <%= content_tag :h4, "#{product.name} (#{euro(product.price)})" %> <%= f.counter :count, skip_label: true, wrapper_class: "input-group", class: "row_counter" %> <%= f.fields_for :product do |product| %> <%= product.hidden_field :price_cents, class: :price %>