LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

SIGN UP

  • Account
  • Personal details
  • finish

YES ! Welcome in the new world.

CSS
/* color based on https://color.adobe.com/fr/sandy-stone-beach-ocean-diver-color-theme-15325/ */

body {
	background-image: linear-gradient(-90deg, #E6E2AF 0%, #002F2F 100%);
}

.form-center {
	width: 33%;
	margin: 5rem auto;

	box-shadow: 2px 2px 10px #454545;
	background-color: #FFFFFF;

	padding: 0;
}

.form-center .title-section {
	text-align: center;
	padding: 1rem 0;

	background-color: #046380;
	color: #EFECCA;
}

.form-center .content-section{
	padding: 1rem;
	margin: 0;
}

.form-center .step-section {
	margin: 0;
	background-color: #002F2F;
}

ul.progress-bar {
	margin: 0;
	padding: 1rem;
	color: #AAAAAA;
	font-size: 0.8rem;
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	counter-reset: step;
}

ul.progress-bar li {
	list-style-type: none;
	position: relative;
	padding: 0 1rem;
	z-index:0;
}

.progress-bar li::before {
	content: counter(step);
	counter-increment: step;
	display: block;
	text-align: center;
	font-size: 1.3rem;
	background-color: #002F2F;
	border: 1px solid rgba(255,255,255,0.3);

	border-radius: 2px;
	width: 1.5rem;
	margin:0.3rem auto;
}

ul.progress-bar li.active{
	color: #EFECCA; //002F2F
}

ul.progress-bar li.active::before {
	background-color:  #046380;
}

.progress-bar li::after {
	content: '';
	width: 100%;
	height: 2px;
	background: white;
	position: absolute;
	left: 0px;
	top: 1rem;
	z-index:-1;
}

.progress-bar li.active::after {
	background: #046380;
}

.form-center form {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem;
}


.valid-button {
	border: 0;
	padding: 1rem 2rem;
	background-color: #046380;
	color: #EFECCA;
	font-weight:bold;
	margin-top:2rem;
}

input {
	border: none;
	border-bottom: 1px solid rgba(0,0,0,.12);
	margin: 1rem 0;
	padding: 4px;
	font-size: 1rem;
	outline: none;
}

input::-webkit-input-placeholder {
	color: #AAAAAA;
}


.fld-step {
	display: none;
}

.fld-step.current {
	display: block;
}

@media screen and (max-width: 1000px) {
	.form-center {
		width: 100%;
		margin: 0;
	}
}
JS
/*JS just for sample*/
function nextStep() {
	var allStep = document.querySelectorAll(".fld-step");

	var nextStep = 0;
	for (i = 0; i <= allStep.length; i++){
		if (allStep[i].classList.contains("current")){
			allStep[i].classList.remove("current");
			nextStep = i + 1;
			break;
		}
	}

	allStep[nextStep].classList.add("current");

	var allStepActive = document.querySelectorAll(".progress-bar li.active");
	allStep = document.querySelectorAll(".progress-bar li");

	allStep[allStepActive.length].classList.add("active");
}

Description

For DailyUI Challenge. A simple Sign Up interface.
Term
Sat, 01/13/2018 - 16:14

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv