Skip to content

Commit 7e4aa51

Browse files
authored
Merge pull request #122 from MojtabaZare/master
simple, minimal login form
2 parents 8d62298 + 3d3b9ac commit 7e4aa51

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed

Log In Form Designs/MZ-login-form2/Readme.md

Whitespace-only changes.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
body{
2+
font-family: 'Space Mono', monospace;
3+
background: #ad5389; /* fallback for old browsers */
4+
background: -webkit-linear-gradient(to right, #3c1053, #ad5389); /* Chrome 10-25, Safari 5.1-6 */
5+
background: linear-gradient(to right, #3c1053, #ad5389); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
6+
color: white;
7+
}
8+
*:focus {
9+
outline: none;
10+
}
11+
#login-container{
12+
margin: 5% auto;
13+
width: 35%;
14+
padding: 50px;
15+
box-shadow: 0 0 5px white;
16+
text-align: center;
17+
}
18+
h1{
19+
text-shadow: 1px 1px 2px white;
20+
}
21+
form *{
22+
display: block;
23+
margin: auto;
24+
}
25+
form input{
26+
width: 100%;
27+
height: 40px;
28+
text-align: center;
29+
font-family: inherit;
30+
background-color: unset;
31+
margin-bottom: 10px;
32+
border: none;
33+
color: inherit;
34+
-webkit-transition: 0.5s;
35+
transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
36+
}
37+
form input:focus{
38+
box-shadow: 0 0 5px white;
39+
}
40+
form input::placeholder{
41+
color: #ccc;
42+
}
43+
form button{
44+
border: none;
45+
background-color: unset;
46+
font-size: 20px;
47+
font-family: inherit;
48+
cursor: pointer;
49+
color: inherit;
50+
margin-top: 20px;
51+
width: 100%;
52+
padding: 10px 0;
53+
transition: 0.5s;
54+
}
55+
form button:hover{
56+
box-shadow: 0 0 5px white;
57+
}
58+
@media (max-width: 768px){
59+
#login-container{
60+
width: 80%;
61+
padding: 20px;
62+
}
63+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>login</title>
5+
<link href="https://fonts.googleapis.com/css?family=Space+Mono&display=swap" rel="stylesheet">
6+
<link rel="stylesheet" href="css/index.css">
7+
</head>
8+
<body>
9+
<div id="login-container">
10+
<h1>Login form</h1>
11+
<form>
12+
<input type="text" placeholder="username">
13+
<input type="password" placeholder="password">
14+
<button>Login</button>
15+
</form>
16+
</div>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)