Hide number input spinner buttons for TOTP inputs - merged with i18n

This commit is contained in:
Carl Chenet 2017-05-17 18:49:24 +02:00
parent de768ed620
commit 8579be4d39
3 changed files with 10 additions and 4 deletions

View file

@ -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 */

View file

@ -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>

View file

@ -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>