@charset 'utf-8';

/* text */
.text-overflow div {
	width: 3em;
	border: 2px green solid;
}
/* border */
.border-box div {
	width: 200px;
	height: 5px;
}
/* position */
.position-box {
	background-color: silver;
	width: 100px;
	height: 100px;
}
.position-box div {
	width: 30px;
	height: 30px;
	margin: 5px;
	background-color: red;
	color: white;
	border: 1px white solid;
}
.position-parent {
	position: relative;
}
#position1a {
	position: absolute;
	right: 0;
}
#position2a {
	position: absolute;
	top: 0;
	right: 0;
}
#position2b {
	position: fixed;
	top: 0;
	right: 0;
}
#position3a {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -15px;
	margin-top: -15px;
}
#position4a {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}
/* z-index */
.zindex {
	position: relative;
	background-color: silver;
	border: 1px black solid;
	width: 100px;
	height: 50px;
	margin: 5px;
	padding: 5px;
}
.zindex div {
	position: absolute;
	color: white;
	padding: 1px 10px;
}
.zindex-a {
	background-color: red;
}
.zindex-b {
	background-color: blue;
	left: 20px;
	top: 20px;
}
#zindex-front {
	z-index: 1;
}
/* height */
#height100 {
	height: 100%;
	width: 80px;
	position: fixed;
	top: 0;
	right: 50px;
	overflow: auto;
	border: 1px solid;
	background-color: rgba(255,255,255,0.2);
	color: green;
	font-weight: bold;
}
/* transitions */
#transitions-timing li {
	background-color: silver;
	margin: 3px 0;
	white-space: nowrap;
	transition-property: width;
}
#width-implicit div {
	width: auto;
	border: 1px solid;
	margin-bottom: 3px;
}
#width-explicit div {
	width: 100%;
	border: 1px solid;
}
#width-implicit:hover div, #width-explicit:hover div {
	width: 30%;
	background-color: red;
	transition-duration: 3s;
}
#transitions-background {
	border: 1px black solid;
}
#transitions-background:hover{
	background-color: red;
	transition-duration: 3s;
}
#transitions-left {
	position: relative;
	height: 2em;
}
#transitions-left > div {
	position: absolute;
	left: 0%;
	transition-duration: 1s;
}
#transitions-left:hover > div {
	left: 30%;
	transition-duration: 3s;
}
#transitions-rotation > div {
	transform: none;
	transition-duration: 1s;
}
#transitions-rotation:hover > div {
	transform: rotate( 360deg );
	transition-duration: 3s;
}
/* gradient */
.gradient-box {
	width: 100px;
	height: 100px;
	border: 1px solid;
}
.fade-out {
	position: relative;
}
.fade-out:before{
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 50%;
	background: linear-gradient( rgba( 255, 255, 255, 0 ), white );
}
/* scrollbar */
#webkit-scroll::-webkit-scrollbar {
	width: 20px;
}
#webkit-scroll::-webkit-scrollbar-track {
	border: 1px red solid;
}
#webkit-scroll::-webkit-scrollbar-thumb {
	background-color: green;
}