cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              .bg
	.circle_top
	.sound
	.btn_left
	.btn_cross
	.screen_top
	.screen_bot
	.btn_home
	.btn_right
	.btn_X x
	.btn_A a
	.btn_B b
	.btn_Y y
	.btn_start
	.btn_select
	.btn_off_on
	.btn_sleep
            
          
!
            
              body {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100vh;
	background: linear-gradient(135deg, #eee, #B9A8AD);
}

.bg {
	position: relative;
	width: 400px;
	height: 300px;
	background: #1E1A1F;
	border: 3px solid #62131E;
	border-bottom: none;
	border-radius: 50px 50px 20px 20px;
}

.bg::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background: url(https://dragdis.blob.core.windows.net/assets/2017/03/08/5D26DDF4C788B32A9041158BA7AF5E95.jpg);
	mix-blend-mode: screen;
	background-size: cover;
	border-radius: 50px 50px 20px 20px;
	opacity: .3;
}

.circle_top,
.screen_top,
.screen_bot,
.btn_home {
	position: relative;
	margin: auto;
}

.circle_top {
	position: relative;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #070309;
	box-shadow:
		0 0 0 2px #1E1A1F,
		0 0 0 6px #070309;
	margin-top: 12px;
	margin-bottom: 17px;
}

.screen_top,
.screen_bot {
	background: #2C2A2E;
	box-shadow: 0 0 0 4px #1E1A1F;
	overflow: hidden;
}

.screen_top {
	width: 64%;
	height: 40%;
	margin-bottom: 20px;
}

.screen_top::before,
.screen_bot::before {
	position: absolute;
	content: "";
	top: -30%;
	width: 100%;
	height: 100%;
/* 	background: linear-gradient(#363338 89%, #2C2A2E 89%, #2C2A2E 92%, #363338 92%, #363338 100%); */
	background: #363338;
	transform: rotate(-60deg);
}

.screen_top::before {
	left: -28%;
}

.screen_bot {
	width: 50%;
	height: 30%;
	margin-bottom: 10px;
}

.screen_bot::before {
	left: -65%;
}

.btn_home {
	width: 30px;
	height: 15px;
	background: #2C2A2E;
	border: 2px solid #1E1A1F;
	border-radius: 50px;
}

.sound,
.btn_left,
.btn_cross,
.btn_right,
.btn_X,
.btn_A,
.btn_B,
.btn_Y,
.btn_start,
.btn_select,
.btn_off_on,
.btn_sleep {
	position: absolute;
}

.sound {
	top: 40px;
	left: 26px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #070309;
	box-shadow:
		8px 0 0 0 #070309,
		16px 0 0 0 #070309,
		0 8px 0 0 #070309,
		8px 8px 0 0 #070309,
		16px 8px 0 0 #070309,
		0 16px 0 0 #070309,
		8px 16px 0 0 #070309,
		16px 16px 0 0 #070309;
}

.btn_left {
	top: 100px;
	left: 26px;
	width: 20px;
	height: 20px;
	background: #363338;
	border-radius: 50%;
	box-shadow: 0 0 0 6px #1B171C;
}

.btn_cross {
	top: 170px;
	left: 18px;
	width: 38px;
	height: 15px;
	background: #2C2A2E;
	border-radius: 5px;
}

.btn_cross::before {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	background: #2C2A2E;
	border-radius: 5px;
	transform: rotate(90deg);
}

.btn_right {
	top: 50px;
	right: 27px;
	width: 15px;
	height: 10px;
	background: #2C2A2E;
	border-radius: 5px;
}

.btn_X,
.btn_A,
.btn_B,
.btn_Y,
.btn_start,
.btn_select {
	line-height: 16px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	color: #1B171C;
	background: #3C3A3F;
}

.btn_X,
.btn_A,
.btn_B,
.btn_Y,
.btn_start,
.btn_select,
.btn_sleep {
	font-family: monospace;
	text-align: center;
	text-transform: uppercase;
}

.btn_X {
	top: 90px;
	right: 27px;
}

.btn_A {
	top: 109px;
	right: 11px;
}

.btn_B {
	top: 128px;
	right: 27px;
}

.btn_Y {
	top: 109px;
	right: 43px;
}

.btn_start,
.btn_select {
	right: 43px;
}

.btn_start::before,
.btn_select::before,
.btn_sleep::before {
	position: absolute;
	font-size: 10px;
	color: #070309;
	text-shadow: 1px 0 0 #535157;
}

.btn_start::before,
.btn_select::before {
	content: "start";
	top: 1px;
	left: 20px;
}

.btn_start {
	top: 180px;
}

.btn_select {
	top: 210px;
}

.btn_select::before {
	content: "select";
}

.btn_off_on {
	right: 48px;
	bottom: 42px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3C3A3F;
	box-shadow:
		0 0 0 2px #1E1A1F,
		0 0 0 5px #3C3A3F,
		0 0 0 7px #1E1A1F;
}

.btn_off_on::before {
	position: absolute;
	content: "";
	top: -4.5px;
	left: 1.4px;
	width: 2px;
	height: 6px;
	background: #1E1A1F;
	border: 2px solid #3C3A3F;
}

.btn_off_on::after {
	position: absolute;
	content: "";
	top: 1px;
	left: 23px;
	width: 6px;
	height: 6px;
	background: #2C2A2E;
	border-radius: 5px;
}

.btn_sleep {
	right: 23px;
	bottom: 0;
	width: 45px;
	height: 13px;
	background: linear-gradient(90deg, #1E1A1F 25%, #37353A 25%,#37353A 28%, #1E1A1F 28%, #1E1A1F 33%, #37353A 33%, #37353A 38%, #1E1A1F 38%, #1E1A1F 42%, #37353A 42%, #37353A 47%, #1E1A1F 47%, #1E1A1F 52%, #37353A 52%, #37353A 56%, #1E1A1F 56%, #1E1A1F 62%);
	border-radius: 3px;
	border: 1px solid #1B171C;
}

.btn_sleep::before {
	content: "sleep";
	top: -12px;
	left: 2px;
}

.btn_sleep::after {
	position: absolute;
	content: "";
	top: -10px;
	left: 34px;
	width: 0;
	height: 0;
	border-top: 3px solid transparent;
	border-left: 13px solid #111;
	border-bottom: 3px solid transparent;
}

/* div[class|="btn"] {
	
}  */
            
          
!
999px
Loading ..................

Console