Skip to content

Commit 05e437f

Browse files
FullofQuarkslafriks
authored andcommitted
Remove arrows on numeric inputs (#8516)
* Nothing needs the arrows for input, especially 2FA * Moved into LESS
1 parent 23045c7 commit 05e437f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

public/css/index.css

+2
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ i.icon.centerlock{top:1.5em}
396396
.user.activate form .inline.field>label,.user.forgot.password form .inline.field>label,.user.reset.password form .inline.field>label,.user.signin form .inline.field>label,.user.signup form .inline.field>label{width:200px}
397397
@media only screen and (max-width:768px){.user.activate form .inline.field>label,.user.activate form input,.user.forgot.password form .inline.field>label,.user.forgot.password form input,.user.reset.password form .inline.field>label,.user.reset.password form input,.user.signin form .inline.field>label,.user.signin form input,.user.signup form .inline.field>label,.user.signup form input{width:100%!important}
398398
}
399+
.user.activate form input[type=number],.user.forgot.password form input[type=number],.user.reset.password form input[type=number],.user.signin form input[type=number],.user.signup form input[type=number]{-moz-appearance:textfield}
400+
.user.activate form input::-webkit-inner-spin-button,.user.activate form input::-webkit-outer-spin-button,.user.forgot.password form input::-webkit-inner-spin-button,.user.forgot.password form input::-webkit-outer-spin-button,.user.reset.password form input::-webkit-inner-spin-button,.user.reset.password form input::-webkit-outer-spin-button,.user.signin form input::-webkit-inner-spin-button,.user.signin form input::-webkit-outer-spin-button,.user.signup form input::-webkit-inner-spin-button,.user.signup form input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
399401
.repository.new.fork form,.repository.new.migrate form,.repository.new.repo form{margin:auto}
400402
.repository.new.fork form .ui.message,.repository.new.migrate form .ui.message,.repository.new.repo form .ui.message{text-align:center}
401403
@media only screen and (min-width:768px){.repository.new.fork form,.repository.new.migrate form,.repository.new.repo form{width:800px!important}

public/less/_form.less

+10
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@
140140
width: 100% !important;
141141
}
142142
}
143+
144+
input[type=number] {
145+
-moz-appearance: textfield;
146+
}
147+
148+
input::-webkit-outer-spin-button,
149+
input::-webkit-inner-spin-button {
150+
-webkit-appearance: none;
151+
margin: 0;
152+
}
143153
}
144154
}
145155

0 commit comments

Comments
 (0)