Created
April 6, 2018 10:06
-
-
Save pich4ya/7346a5e3c796b82e880373d57438a567 to your computer and use it in GitHub Desktop.
loginme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title>Login</title> | |
<style> | |
/*@import url(https://fonts.googleapis.com/css?family=Cutive+Mono);*/ | |
body { | |
background: #456; | |
font-family: 'Consolas', sans-serif; | |
} | |
.login { | |
width: 400px; | |
margin: 16px auto; | |
font-size: 16px; | |
} | |
/* Reset top and bottom margins from certain elements */ | |
.login-header, | |
.login p { | |
margin-top: 0; | |
margin-bottom: 0; | |
} | |
/* The triangle form is achieved by a CSS hack */ | |
.login-triangle { | |
width: 0; | |
margin-right: auto; | |
margin-left: auto; | |
border: 12px solid transparent; | |
border-bottom-color: #28d; | |
} | |
.login-header { | |
background: #28d; | |
padding: 20px; | |
font-size: 1.4em; | |
font-weight: normal; | |
text-align: center; | |
text-transform: uppercase; | |
color: #fff; | |
} | |
.login-container { | |
background: #ebebeb; | |
padding: 12px; | |
} | |
/* Every row inside .login-container is defined with p tags */ | |
.login p { | |
padding: 12px; | |
} | |
.login input { | |
box-sizing: border-box; | |
display: block; | |
width: 100%; | |
border-width: 1px; | |
border-style: solid; | |
padding: 16px; | |
outline: 0; | |
font-family: inherit; | |
font-size: 0.95em; | |
} | |
.login input[type="username"], | |
.login input[type="password"] { | |
background: #fff; | |
border-color: #bbb; | |
color: #555; | |
} | |
/* Text fields' focus effect */ | |
.login input[type="username"]:focus, | |
.login input[type="password"]:focus { | |
border-color: #888; | |
} | |
.login input[type="submit"] { | |
background: #28d; | |
border-color: transparent; | |
color: #fff; | |
cursor: pointer; | |
} | |
.login input[type="submit"]:hover { | |
background: #17c; | |
} | |
/* Buttons' focus effect */ | |
.login input[type="submit"]:focus { | |
border-color: #05a; | |
} | |
</style> | |
<meta name="author" content="@l4wio 🕵"> | |
<div class="login"> | |
<div class="login-triangle"></div> | |
<h2 class="login-header">Log in</h2> | |
<form class="login-container" method=post action='/check'> | |
<p><input type="text" name="username" placeholder="Username"></p> | |
<p><input type="password" name="password" placeholder="Password"></p> | |
<p><input type="submit" value="Log in"></p> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment