mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Increase button size
And fix alignment for smaller screens.
This commit is contained in:
@@ -27,6 +27,7 @@ body.modal-open #admin-menu li.selected a::after {
|
||||
|
||||
.modal-actions {
|
||||
display: flex;
|
||||
text-align: center; // Ensure text inside fullwidth buttons are centred on small screens
|
||||
|
||||
&.justify-space-around {
|
||||
justify-content: space-around;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
= f.hidden_field :viewable_id, value: product.id
|
||||
|
||||
.modal-actions.justify-end
|
||||
%input{ class: "secondary", type: 'button', value: t('.close'), "data-action": "click->modal#close" }
|
||||
%input{ class: "secondary relaxed", type: 'button', value: t('.close'), "data-action": "click->modal#close" }
|
||||
-# label.button provides a handy shortcut to open the file selector on click. Unfortunately this trick isn't keyboard accessible though..
|
||||
= f.label :attachment, t(".upload"), class: "button primary icon-upload-alt"
|
||||
= f.label :attachment, t(".upload"), class: "button primary relaxed icon-upload-alt"
|
||||
= f.file_field :attachment, accept: "image/*", style: "display: none", "data-action": "change->form#submit"
|
||||
|
||||
Reference in New Issue
Block a user