Skip to content

Commit f79bb21

Browse files
jw-12138nhooyr
authored andcommitted
login.css: Fix button styling on iOS
1 parent 2a3608d commit f79bb21

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/browser/pages/login.css

+12-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,24 @@ body {
2626
border: 1px solid #ddd;
2727
box-sizing: border-box;
2828
color: black;
29-
flex: 1;
29+
width: 100%;
3030
padding: 16px;
3131
}
3232

3333
.login-form > .user {
3434
display: none;
3535
}
3636

37-
.login-form > .field > .submit {
37+
.login-form > .field > input[type="submit"] {
38+
position: absolute;
39+
left: -9999px;
40+
}
41+
42+
.login-form > .field > input[type="submit"]:focus + label {
43+
border: 2px solid #000;
44+
}
45+
46+
.login-form > .field > .submit{
3847
margin-left: 20px;
48+
flex-shrink: 0;
3949
}

src/browser/pages/login.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ <h1 class="main">Welcome to code-server</h1>
3838
name="password"
3939
autocomplete="current-password"
4040
/>
41-
<input class="submit -button" value="SUBMIT" type="submit" />
41+
<input value="SUBMIT" type="submit" id="submit-button">
42+
<label for="submit-button" class="submit -button">SUBMIT</label>
4243
</div>
4344
{{ERROR}}
4445
</form>

0 commit comments

Comments
 (0)