Fixed css
This commit is contained in:
parent
40336da8c6
commit
0b35bb1f06
3 changed files with 15 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<%= f.label :total_price %>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">€</span>
|
||||
<%= 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' %>
|
||||
<span class="input-group-btn">
|
||||
<%= f.submit "Order!", class: "btn btn-primary big-form-button" %>
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue