<div class="background">
<div class="suitcase">
<div class="handle"></div>
<div class="decor"></div>
</div>
</div>
$bg-color: #DE8139;
$suitcase: #5C331D;
$details: #E8D2B4;
$details-2: #EFAC30;
body {
display: flex;
align-items: center;
justify-content: center;
height: 90vh;
background: $bg-color;
* {
box-sizing: border-box;
}
}
.background {
width: 400px;
height: 400px;
border-radius: 50%;
box-shadow: 0 0px 35px rgba(0, 0, 0, 0.35);
overflow: hidden;
background: radial-gradient(lighten(#eee, 5), darken(#eee, 8));;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
:before,
:after {
content: "";
}
.suitcase {
width: 220px;
height: 150px;
background: $suitcase;
border-radius: 10px;
position: relative;
box-shadow: 8px 8px 0 rgba(black, .1), inset 0px 0px 0 10px rgba(black, .05);
&:before, &:after {
width: 15px;
height: 15px;
background: $details-2;
position: absolute;
border-radius: 8px 0 8px 0;
box-shadow: 205px 135px 0 $details-2;
}
&:after {
right: 0;
top: 0;
border-radius: 0 8px 0 8px;
box-shadow: -205px 135px 0 $details-2;
}
}
.handle {
width: 70px;
height: 30px;
margin: 0 auto;
position: relative;
top: -30px;
border: 10px solid $details;
border-width: 10px 10px 0 10px;
border-radius: 10px 10px 0 0;
}
.decor {
&:before,
&:after {
width: 12px;
height: 105%;
background: $details;
position: absolute;
top: -2.5%;
border-radius: 3px;
box-shadow: 5px 3px 0 rgba(black, .1);
color: darken($details-2, 10);
content: ".\A.\A.";
font-size: 50px;
line-height: .85;
padding: 0 2px 0 0;
}
&:before {
left: 20%;
}
&:after {
right: 20%;
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.