pet-computer-css-art/style.css

194 lines
3.5 KiB
CSS
Raw Normal View History

body {
background: black;
}
* {
margin: 0;
padding: 0;
}
/* Monitor */
.bezel {
z-index: 2;
position: relative;
display: block;
margin: 25px auto 0 auto;
border-bottom: 300px solid beige;
border-left: 80px solid transparent;
border-right: 80px solid transparent;
height: 0;
width: 390px;
box-shadow: 0px 10px 30px;
}
.bezel-gradient {
position: absolute;
display: block;
height: 300px;
width: 550px;
top: 0px;
left: -80px;
background: linear-gradient(145deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.24));
}
.border {
position: absolute;
display: block;
top: 10px;
left: 10px;
border-bottom: 280px solid #3d3d3d;
border-left: 75px solid transparent;
border-right: 75px solid transparent;
height: 0;
width: 380px;
}
.border-gradient {
position: absolute;
display: block;
height: 300px;
width: 550px;
top: -10px;
left: -85px;
background: radial-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.0));
}
.screen-cutout {
position: absolute;
display: block;
height: 220px;
width: 280px;
top: 40px;
left: 135px;
border-radius: 50% / 10%;
background: linear-gradient(#202020, #262626);
}
.screen-cutout:before {
content: '';
position: absolute;
top: 9%;
bottom: 9%;
right: -5%;
left: -5%;
background: inherit;
border-radius: 5% / 50%;
}
.screen {
position: absolute;
display: block;
height: 210px;
width: 270px;
top: 5px;
left: 5px;
border-radius: 50% / 10%;
background: radial-gradient(#808080, #666666, #2B3030);
background-size: 105% 100%;
background-position: center;
}
.screen:before {
content: '';
position: absolute;
top: 9%;
bottom: 9%;
right: -5%;
left: -5%;
background: inherit;
background-size: 100% 120%;
background-position: center;
border-radius: 5% / 50%;
}
.monitor-stand {
z-index: 1;
position: relative;
display: block;
margin: 0px auto;
height: 20px;
width: 380px;
background: #b8b8a5;
/* background: #7a7a6e; */
}
/* Chassis */
.chassis-top {
z-index: 2;
position: relative;
display: block;
margin: 0 auto;
border-bottom: 100px solid beige;
border-left: 30px solid transparent;
border-right: 30px solid transparent;
height: 0;
width: 700px;
box-shadow: 0px 0px 3px;
}
.chassis-top-labels {
position: absolute;
display: block;
border-bottom: 70px solid #2b2b2b;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
height: 0;
top: 15px;
left: 10px;
width: 640px;
}
.chassis-top-gradient {
position: absolute;
display: block;
height: 100px;
width: 760px;
top: -15px;
left: -60px;
background: linear-gradient(165deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.24));
}
.chassis-keyboard {
z-index: 2;
position: relative;
display: block;
margin: 0 auto;
border-bottom: 110px solid beige;
border-left: 60px solid transparent;
border-right: 60px solid transparent;
height: 0;
width: 760px;
}
.chassis-keyboard-gradient {
position: absolute;
display: block;
height: 110px;
width: 880px;
top: 0px;
left: -60px;
background: linear-gradient(145deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.15));
}
.chassis-base {
position: relative;
display: block;
margin: 0 auto;
border-bottom: 35px solid beige;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
height: 0;
width: 880px;
}
.chassis-base-gradient {
position: absolute;
display: block;
height: 35px;
width: 894px;
top: 0px;
left: -7px;
background: linear-gradient(177deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.30));
}