forked from fixin.me/fixin.me
Hide input[type=number] spin buttons and fix text alignment
This commit is contained in:
parent
ed0234f158
commit
d86e38a3ec
@ -66,6 +66,10 @@ textarea {
|
|||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
text-align: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* blue - target for interaction with pointer */
|
/* blue - target for interaction with pointer */
|
||||||
@ -153,6 +157,17 @@ input[type=checkbox]:checked {
|
|||||||
appearance: checkbox;
|
appearance: checkbox;
|
||||||
-webkit-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,
|
input:hover,
|
||||||
select:hover,
|
select:hover,
|
||||||
textarea:hover {
|
textarea:hover {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<%= form.text_area :description, cols: 30, rows: 1, escape: false %>
|
<%= form.text_area :description, cols: 30, rows: 1, escape: false %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td class="number">
|
||||||
<% unless @unit.base.nil? %>
|
<% unless @unit.base.nil? %>
|
||||||
<%= form.hidden_field :base_id %>
|
<%= form.hidden_field :base_id %>
|
||||||
<%= form.number_field :multiplier, required: true, size: 10, min: :step %>
|
<%= form.number_field :multiplier, required: true, size: 10, min: :step %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user