diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index f481a09..db0f7ee 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -66,6 +66,10 @@ textarea { background-color: inherit; font: inherit; } +input, +select { + text-align: inherit; +} /* blue - target for interaction with pointer */ @@ -153,6 +157,17 @@ input[type=checkbox]:checked { appearance: checkbox; -webkit-appearance: checkbox; } +/* Hide spin buttons in input number fields */ +input[type=number] { + -moz-appearance: textfield; +} +input::-webkit-inner-spin-button { + -webkit-appearance: none; +} +input::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; +} input:hover, select:hover, textarea:hover { diff --git a/app/views/units/_form.html.erb b/app/views/units/_form.html.erb index 033507f..f8a200e 100644 --- a/app/views/units/_form.html.erb +++ b/app/views/units/_form.html.erb @@ -8,7 +8,7 @@ <%= form.text_area :description, cols: 30, rows: 1, escape: false %> - + <% unless @unit.base.nil? %> <%= form.hidden_field :base_id %> <%= form.number_field :multiplier, required: true, size: 10, min: :step %>