Hide number input spinner buttons for TOTP inputs - merged with i18n
This commit is contained in:
parent
de768ed620
commit
8579be4d39
|
@ -232,6 +232,12 @@ button:disabled {
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.totp_code::-webkit-inner-spin-button,
|
||||||
|
.totp_code::-webkit-outer-spin-button {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* outliners */
|
/* outliners */
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag :totp_code, t('.totpcode') %>
|
<%= label_tag :totp_code, t('.totpcode') %>
|
||||||
<%= text_field_tag :totp_code, "", :size => 10, :type => "number",
|
<%= number_field_tag :totp_code, "", :size => 10, :autocomplete => "off",
|
||||||
:autofocus => "autofocus" %>
|
:autofocus => true, :class => "totp_code" %>
|
||||||
<br />
|
<br />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
<div class="boxline">
|
<div class="boxline">
|
||||||
<%= label_tag :totp_code, "TOTP Code:", :class => "required" %>
|
<%= label_tag :totp_code, "TOTP Code:", :class => "required" %>
|
||||||
<%= text_field_tag :totp_code, "", :size => 10, :autocomplete => "off",
|
<%= number_field_tag :totp_code, "", :size => 10, :autocomplete => "off",
|
||||||
:type => "number", :autofocus => "autofocus" %>
|
:autofocus => true, :class => "totp_code" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in a new issue