LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
Log In
User Login
CSS
body {
  background: #222;
  font-family: 'Open Sans', sans-serif;
}

span#login,
#mask,
#pop-up button,
#pop-up #x {
  cursor: pointer;
}

span#login {
  display: block;
  width: 3em;
  height: auto;
  margin: 0 auto;
  color: #eee;
}

#mask {
	position: fixed;
	z-index: 9000;
	background: rgba(0,0,0,0.75);
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

#pop-up {
	display: none;
	position: absolute;
	z-index: 9500;
	width: 450px;
	height: 250px;
	left: 0;
	right: 0;
	margin: 0 auto;
	background: #e9e9e9;
}

#pop-up #inner {
	width: 80%;
	margin: 0 auto;
	text-align: center;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
}

#pop-up #inner span#title {
	font-size: 2em;
	line-height: 2em;
	color: #4285ff;
}

#pop-up input {
	width: 100%;
	display: block;
	margin: 15px 0 0 0;
	padding: 20px 12.5px;
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 3px;
	color: #666;
	outline: none;
	-webkit-box-sizing: border-box;‌​
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
}

#pop-up input:focus {
	border: 1px solid #888;
}

#pop-up button {
	width: 450px;
	position: absolute;
	margin: 30px 0 0 0;
	background: #4285ff;
	border: none;
	border-bottom: 4px solid #356acc;
	color: #eee;
	font-size: 1.5em;
	line-height: 2.5em;
}

#pop-up button:hover {
	background: #3870d9;
	border-bottom: 4px solid #2b56a6;
}

#pop-up button:focus {
	outline: none;
	background: #356acc;
	border-bottom: 4px solid #284f99;
}

#pop-up #x {
	display: block;
	position: relative;
	float: right;
	overflow: hidden;
	width: 25px;
	height: 25px;
	margin: 15px 15px 0 0;
}

#pop-up #x:before,
#pop-up #x:after {
	content: " ";
	position: absolute;
	width: 25px;
	height: 2px;
	background: #4285ff;
	margin: 12px 0 0 0;
}

#pop-up #x:hover:before,
#pop-up #x:hover:after {
	background: #356acc;
}

#pop-up #x:before {
	-webkit-transform: rotate(45deg);
			transform: rotate(45deg);
}

#pop-up #x:after {
	-webkit-transform: rotate(-45deg);
			transform: rotate(-45deg);
}
JS
$("span#login, #mask, #pop-up #x").click(function() {
  $("#mask, #pop-up").toggle("fade", 350);
});
Host Instantly Drag and Drop Website Builder

 

Description

A flat pop-up login screen using jQuery and CSS.
Term
Wed, 11/29/2017 - 11:21

Related Codes

Pen ID
Pen ID
Pen ID