Skip to content
This repository
Browse code

Added a class to fix the text fields in the search panel. Should be n…

…arrow enough and spacing between them should be good now.
  • Loading branch information...
commit e57e2afb6c0182bfa1d33bceb25d2ab527b1d98b 1 parent 7500f92
Cory Romdenne cromdenne11 authored
10 app/views/home/_search_panel.html.erb
@@ -15,8 +15,8 @@
15 15
16 16 <div id="PriceSlider" class="CriterionOptions" style="display: none">
17 17 <div>
18   - <%= f.text_field :rent_gte , :placeholder => "From"%><br />
19   - <%= f.text_field :rent_lte, :placeholder => "To" %>
  18 + <%= f.text_field :rent_gte , :class => "text-criteria", :placeholder => "From"%><br />
  19 + <%= f.text_field :rent_lte, :class => "text-criteria", :placeholder => "To" %>
20 20 </div>
21 21 </div>
22 22 </div><!-- End Price -->
@@ -32,8 +32,8 @@
32 32
33 33 <div id="LocationSlider" class="CriterionOptions" style="display: none">
34 34 <div>
35   - <%= f.text_field :address_contains, :placeholder => "Address" %>
36   - <%= f.text_field :building_name_contains, :placeholder => "Building" %>
  35 + <%= f.text_field :address_contains, :class => "text-criteria", :placeholder => "Address" %>
  36 + <%= f.text_field :building_name_contains, :class => "text-criteria", :placeholder => "Building" %>
37 37 </div>
38 38 </div>
39 39 </div><!-- End Location -->
@@ -81,7 +81,7 @@
81 81 <hr />
82 82
83 83 <div class="CustomTextFieldWidth">
84   - <%= f.text_field :squarefeet_gte, :placeholder => "Minimum square feet" %><br />
  84 + <%= f.text_field :squarefeet_gte, :class => "text-criteria", :placeholder => "Minimum square feet" %><br />
85 85 </div>
86 86
87 87
5 public/stylesheets/searchPanel.css
@@ -97,6 +97,11 @@
97 97 padding: 5px;
98 98 }
99 99
  100 +.text-criteria {
  101 + margin-top: 10px;
  102 + width: 125px;
  103 +}
  104 +
100 105 #ResDetailsSlider hr
101 106 {
102 107 margin-right: 10px;

0 comments on commit e57e2af

Please sign in to comment.
Something went wrong with that request. Please try again.