LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

  
CSS
@import url("https://fonts.googleapis.com/css?family=Lato");
body {
  will-change: transform;
  font-family: "Lato", sans-serif;
  background-color: #dde1c6;
}
body section {
  background-color: white;
  position: relative;
  width: 550px;
  height: 400px;
  border-radius: 3px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
body section div.logo {
  text-align: center;
  width: 100%;
  height: 70px;
  background-color: #542537;
  position: absolute;
}
body section div.inputs {
  padding-top: 120px;
}
body section div.inputs div.email {
  margin-bottom: 35px;
}
body section div.inputs div.email,
body section div.inputs div.password {
  position: relative;
  width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
body section div.inputs label {
  transition: all 0.1s;
  transition-timing-function: linear;
  display: inline-block;
  float: left;
  transform: translateY(-25px);
  color: #979494;
  cursor: auto;
}
body section div.inputs input[type=text],
body section div.inputs input[type=password] {
  width: 100%;
  display: block;
  border: none;
  border-bottom: 1px solid #542537;
  outline: none;
  padding: 10px 0px 10px 0px;
  font-family: "Lato", sans-serif;
  color: #606060;
}
body section div.inputs input[type=text]:focus + label, body section div.inputs input[type=text]:valid + label,
body section div.inputs input[type=password]:focus + label,
body section div.inputs input[type=password]:valid + label {
  transform: translateY(-50px);
  font-size: 12px;
}
body section button {
  margin: 20px auto 80px auto;
  display: block;
  border: 1px solid #542537;
  color: #542537;
  font-family: "Lato", sans-serif;
  background-color: white;
  border-radius: 3px;
  height: 30px;
  width: 160px;
  outline: none;
  cursor: pointer;
}
body section button:hover {
  background-color: #542537;
  color: white;
  transition: 0.3s;
}
body section a {
  text-decoration: none;
  color: #979494;
  padding: 10px;
}
body section a:hover {
  color: #542537;
  transition: 0.3s;
}
JS
/* No JS :P */
Host Instantly Drag and Drop Website Builder

 

Description

Clean Login Layout Login, with just CSS and float label.
Term
Sun, 12/24/2017 - 17:49

Related Codes

Pen ID
Pen ID
Pen ID