Skip to content

Instantly share code, notes, and snippets.

@brianpattison
Created August 17, 2011 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianpattison/1152396 to your computer and use it in GitHub Desktop.
Save brianpattison/1152396 to your computer and use it in GitHub Desktop.
CSS Experiment: Dialoggs Login
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Dialoggs Login</title>
<style>
body {
background-color: #dbdcdd;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a {
color: #0093d9;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
#login {
margin: 40px auto;
text-align: center;
width: 200px;
}
input {
background-color: #babbbc;
border: 1px solid #979797;
border-radius: 4px;
color: #404245;
display: block;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
margin-bottom: 20px;
outline: none;
padding: 8px 12px;
width: 176px;
-webkit-font-smoothing: antialiased;
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.2),
0 1px 2px #fff;
}
input:focus {
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.2),
0 2px 1px #fff,
0 -2px 1px #fff,
2px 0 1px #fff,
-2px 0 1px #fff;
}
button {
background-color: #eef0f2;
border: 1px solid #bbb;
border-bottom: 1px solid #aaa;
border-radius: 5px;
color: #333;
cursor: pointer;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: bold;
font-size: 14px;
margin: 0;
padding: 6px 0 9px 0;
width: 100px;
-webkit-font-smoothing: antialiased;
-webkit-box-shadow: inset 0 2px 4px rgba(255,255,255,1),
inset 0 -1px 3px rgba(0,0,0,0.2),
0 1px 1px rgba(0,0,0,0.1);
}
button:active {
background-color: #e8e9eb;
border-top: 1px solid #aaa;
border-bottom: 1px solid #bbb;
color: #444;
padding: 7px 0 8px 0;
-webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,0.2),
0 1px 2px rgba(255,255,255,0.4);
}
</style>
</head>
<body>
<div id="login">
<input id="username" type="text" value="Username" autocapitalize="off" autocorrect="off">
<input id="password" type="password" value="12345678">
<button>Login</button>
</div>
<div id="message">
<p>
I just felt like messing around with some CSS to see if I could recreate
<a href="http://twitter.com/#!/drewwilson">@drewwilson</a>'s login screen seen here:
</p>
<p>
<a href="http://dribbble.com/shots/239089-Dialoggs-Login-Animated">http://dribbble.com/shots/239089-Dialoggs-Login-Animated</a>
</p>
<p>
I think I came pretty close!
</p>
<p>
<a href="http://twitter.com/#!/brianpattison">@brianpattison</a>
</p>
</div>
</body>
</html>
@brianpattison
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment