mirror of https://git.tuxpa.in/a/code-server.git
Make login page pretty
This commit is contained in:
parent
e44ac0a30e
commit
9b7a203fe5
|
@ -7,7 +7,7 @@ body,
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #272727;
|
background: rgb(244, 247, 252);
|
||||||
color: #f4f4f4;
|
color: #f4f4f4;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
||||||
|
|
|
@ -1,31 +1,48 @@
|
||||||
|
body {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.center-container {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
padding: 20px 40px;
|
||||||
|
min-height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
.login-form {
|
.login-form {
|
||||||
align-items: center;
|
border-radius: 5px;
|
||||||
background: #fcfcfc;
|
box-shadow: rgba(60, 66, 87, 0.117647) 0px 7px 14px 0px, rgba(0, 0, 0, 0.117647) 0px 3px 6px 0px;
|
||||||
border-radius: 10px;
|
|
||||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
||||||
color: rgba(0, 0, 0, 0.37);
|
color: rgba(0, 0, 0, 0.37);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 100%;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
max-height: 400px;
|
padding: 20px 40px;
|
||||||
max-width: 664px;
|
|
||||||
padding: 20px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
|
||||||
|
height: 300px;
|
||||||
|
min-width: 320px;
|
||||||
|
max-width: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
font-size: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form > .header {
|
.login-form > .header {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #b6b6b6;
|
color: black;
|
||||||
margin-bottom: 1rem;
|
}
|
||||||
|
|
||||||
|
.login-form > .header > .sub {
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form > .field {
|
.login-form > .field {
|
||||||
|
margin-top: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form > .error {
|
.login-form > .error {
|
||||||
|
@ -34,10 +51,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form > .field > .password {
|
.login-form > .field > .password {
|
||||||
border: 1px solid #b6b6b6;
|
border: 1px solid #ddd;
|
||||||
|
background: rgb(244, 247, 252);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
font-size: 20px;
|
||||||
|
border-radius: 5px;
|
||||||
|
color: black;
|
||||||
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form > .user {
|
.login-form > .user {
|
||||||
|
@ -45,9 +67,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form > .field > .submit {
|
.login-form > .field > .submit {
|
||||||
background-color: transparent;
|
font-size: 20px;
|
||||||
border: 1px solid #b6b6b6;
|
border: none;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-left: -1px;
|
margin-left: 20px;
|
||||||
padding: 1rem 2rem;
|
|
||||||
|
background-color: rgb(87, 114, 245);
|
||||||
|
color: white;
|
||||||
|
font-family: monospace;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,13 +38,12 @@
|
||||||
onfocus="const value=this.value;this.value='';this.value=value;"
|
onfocus="const value=this.value;this.value='';this.value=value;"
|
||||||
class="password"
|
class="password"
|
||||||
type="password"
|
type="password"
|
||||||
placeholder="password"
|
placeholder="PASSWORD"
|
||||||
name="password"
|
name="password"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
/>
|
/>
|
||||||
<button class="submit" type="submit">
|
|
||||||
Log In
|
<input class="submit" value="SUBMIT" type="submit" />
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
{{ERROR}}
|
{{ERROR}}
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue