LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
Todo List
CSS
*{
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
	box-sizing: border-box;
}
*:before,
*:after{
	box-sizing: border-box;	
}
html,body{
	min-height: 100%;
}
body{
	background-image: radial-gradient(mintcream 0%, gray 100%);
	font-family: "Trebuchet MS";
  user-select: none;
}
.wrap{
	width: 300px;
	height: 350px;
	margin: 50px auto;
	border-radius: 20px;
	border: solid 8px #2c3033;
	background: white;
	box-shadow: 0 0 0px 1px rgba(255,255,255,.4),
						0 0 0px 3px #2c3033;
}
.header{
	width: 100%;
	height: 50px;

	border-radius: 10px 10px 0 0px;
	background-image: linear-gradient(#687480 0%, #3b4755 100%);
	font: bold 18px/50px arial;
	text-align: center;
	color: white;
	box-shadow: inset 0 -2px 3px 2px rgba(0,0,0,.4),
						0 2px 2px 2px rgba(0,0,0,.4);
}
span{
	display: block;
	width: 100%;
	height: 90%;
	border-bottom: dashed 2px #54687a;
}
.wrap-list{
	height: 85%;
	padding: 20px 0px;
	box-shadow: inset 0 0px 5px black;
	border-radius: 0 0 10px 10px;
	background-image: linear-gradient(transparent 97%, gray 100%);
}

input[type="checkbox"]{
  position: relative;
  top: 14px;
  right: 12px;
	float: right;
}
input[type="checkbox"]:checked + label{
	text-decoration: line-through;
	color: rgba(0,0,0,.3);
}
.list{
	list-style: none;
	color: rgba(0,0,0,.7);
}
.list li:nth-child(odd){
	background: rgba(0,0,50,.1);
}
.list li{
	float: left;
	width: 100%;
}
label{
  padding: 10px;
	cursor: pointer;
	float: left;
	width: 95%;
	transition: all .3s ease;
}
JS
/*
CSS3 Todo List

full view: https://codepen.io/ImBobby/full/EdALB

insprired from : 
https://designshack.net/design/notepad-to-do-list-psd

UPDATE!
23/09/2012: remove padding property from li and add it to label instead. thanks to : Kyle Smith (https://codepen.io/Etro)

24/09/2012: adding user-select: none to the body. to prevent select issue. 
*/
Host Instantly Drag and Drop Website Builder

 

Description

[UPDATED!] showing another usage of input:checkbox. for full view: http://codepen.io/ImBobby/full/EdALB inspired from : http://designshack.net/design/notepad-to-do-list-psd
Term
Mon, 11/27/2017 - 21:50

Related Codes

Pen ID
Pen ID
Pen ID