From 0b35bb1f06f5fddac0ddfb307033f0c269616689 Mon Sep 17 00:00:00 2001 From: Tleilaxu Date: Thu, 19 Feb 2015 18:08:50 +0100 Subject: [PATCH] Fixed css --- app/assets/stylesheets/orders.css.scss | 19 +++++++++++++------ app/form_builders/formatted_form_builder.rb | 2 +- app/views/order_items/_total_price.html.erb | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/orders.css.scss b/app/assets/stylesheets/orders.css.scss index 70d4b99..f5628bd 100644 --- a/app/assets/stylesheets/orders.css.scss +++ b/app/assets/stylesheets/orders.css.scss @@ -1,11 +1,18 @@ // 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{ - height:66px; + +//.form-control.input-lg{ +// height:66px; +// text-align: center; +//} + +.big-form-button { + height: 65px; + width: 65px; +} + +.form-control.big-form-field { + height: 66px; text-align: center; } -.big-form-button{ - height:65px; - width:65px; -} diff --git a/app/form_builders/formatted_form_builder.rb b/app/form_builders/formatted_form_builder.rb index 8d8409b..f815170 100644 --- a/app/form_builders/formatted_form_builder.rb +++ b/app/form_builders/formatted_form_builder.rb @@ -49,7 +49,7 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder def counter(name, options = {}) form_group_builder(name, options) do counter_button("btn-dec", "glyphicon-minus") + - text_field_without_format(name, options.merge({class: 'form-control input-lg row_counter'})) + + text_field_without_format(name, options.merge({class: 'form-control row_counter big-form-field'})) + counter_button("btn-inc", "glyphicon-plus") end end diff --git a/app/views/order_items/_total_price.html.erb b/app/views/order_items/_total_price.html.erb index 3b32240..28dfbe2 100644 --- a/app/views/order_items/_total_price.html.erb +++ b/app/views/order_items/_total_price.html.erb @@ -2,7 +2,7 @@ <%= f.label :total_price %>
- <%= f.number_field :total_price, skip_label: true, step: :any, class: 'form-control input-lg' %> + <%= f.number_field :total_price, skip_label: true, step: :any, class: 'form-control big-form-field' %> <%= f.submit "Order!", class: "btn btn-primary big-form-button" %>