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;
|
||||
}
|
||||
|
||||
.totp_code::-webkit-inner-spin-button,
|
||||
.totp_code::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
/* outliners */
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
<p>
|
||||
<%= label_tag :totp_code, t('.totpcode') %>
|
||||
<%= text_field_tag :totp_code, "", :size => 10, :type => "number",
|
||||
:autofocus => "autofocus" %>
|
||||
<%= number_field_tag :totp_code, "", :size => 10, :autocomplete => "off",
|
||||
:autofocus => true, :class => "totp_code" %>
|
||||
<br />
|
||||
</p>
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
<div class="boxline">
|
||||
<%= label_tag :totp_code, "TOTP Code:", :class => "required" %>
|
||||
<%= text_field_tag :totp_code, "", :size => 10, :autocomplete => "off",
|
||||
:type => "number", :autofocus => "autofocus" %>
|
||||
<%= number_field_tag :totp_code, "", :size => 10, :autocomplete => "off",
|
||||
:autofocus => true, :class => "totp_code" %>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue