summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f173895)
I started refatoring the export inputs to use a flex grid instead of
floats, but this is perhaps the one place on the whole site where left/right
makes sense since even in rtl we want min_lon on the left.
.export_area_inputs {
margin-bottom: $lineheight/2;
input[type="text"] {
.export_area_inputs {
margin-bottom: $lineheight/2;
input[type="text"] {
float: right;
/* no-r2 */ margin-right: -1px;
}
float: right;
/* no-r2 */ margin-right: -1px;
}
- #minlat { margin-bottom: 0; }
+ #minlat { margin-bottom: -1px; }
}
.export_bound {
margin: $lineheight/4;
}
}
.export_bound {
margin: $lineheight/4;
}
- .export_button {
- margin-top: $lineheight;
- margin-bottom: $lineheight;
- }
-
dl {
padding-left: $lineheight/2;
dd {
dl {
padding-left: $lineheight/2;
dd {
<%= render "sidebar_header", :title => t(".title") %>
<%= render "sidebar_header", :title => t(".title") %>
-<%= form_tag({ :controller => "export", :action => "finish" }, { :class => "export_form standard-form" }) do %>
+<%= form_tag({ :controller => "export", :action => "finish" }, { :class => "export_form" }) do %>
<%= hidden_field_tag "format", "osm" %>
<div class='export_area_inputs'>
<div class='export_boxy'>
<%= hidden_field_tag "format", "osm" %>
<div class='export_area_inputs'>
<div class='export_boxy'>
- <%= text_field_tag("maxlat", nil, :size => 10, :class => "export_bound") %>
- <br />
- <%= text_field_tag("minlon", nil, :size => 10, :class => "export_bound") %>
- <%= text_field_tag("maxlon", nil, :size => 10, :class => "export_bound") %>
- <br /><br />
- <%= text_field_tag("minlat", nil, :size => 10, :class => "export_bound") %>
+ <%= text_field_tag("maxlat", nil, :size => 10, :class => "export_bound form-control mx-auto") %>
+ <div class="clearfix">
+ <%= text_field_tag("minlon", nil, :size => 10, :class => "export_bound form-control") %>
+ <%= text_field_tag("maxlon", nil, :size => 10, :class => "export_bound form-control") %>
+ </div>
+ <%= text_field_tag("minlat", nil, :size => 10, :class => "export_bound form-control mx-auto") %>
</div>
<a id='drag_box' href="#"><%= t ".manually_select" %></a>
</div>
</div>
<a id='drag_box' href="#"><%= t ".manually_select" %></a>
</div>
</div>
<div id="export_commit">
</div>
<div id="export_commit">
- <div class="export_button">
- <%= submit_tag t(".export_button") %>
+ <div class="form-group d-flex">
+ <%= submit_tag t(".export_button"), :class => "btn btn-primary mx-auto" %>
</div>
<p><%= t ".too_large.advice" %></p>
</div>
<p><%= t ".too_large.advice" %></p>