src/public/assets/sass/error.scss
$gb: #f2eee8;
$wh: #ffffff;
$dark: #383a41;
$red: #eb6d6d;
$blue: #5e7fdc;
$break: 400px;
html,
body {
margin: 0;
padding: 0;
width: 100%;
min-height: 100vh;
background-color: $gb;
font-family: 'Open Sans', 'Times New Roman', Times, serif;
}
*,
*:before,
*:after {
box-sizing: content-box;
transform: translate3d(0, 0, 0);
}
.face {
width: 300px;
height: 300px;
border: 4px solid $dark;
border-radius: 10px;
background-color: $wh;
margin: 0 auto;
margin-top: 100px;
@media screen and (max-width: $break) {
margin-top: 40px;
transform: scale(0.8);
}
.band {
width: 350px;
height: 27px;
border: 4px solid $dark;
border-radius: 5px;
margin-left: -25px;
margin-top: 50px;
.red {
height: calc(100% / 3);
width: 100%;
background-color: $red;
}
.white {
height: calc(100% / 3);
width: 100%;
background-color: $wh;
}
.blue {
height: calc(100% / 3);
width: 100%;
background-color: $blue;
}
&:before {
content: '';
display: inline-block;
height: 27px;
width: 30px;
background-color: rgba($wh, 0.3);
position: absolute;
z-index: 999;
}
&:after {
content: '';
display: inline-block;
height: 27px;
width: 30px;
background-color: rgba($dark, 0.3);
position: absolute;
z-index: 999;
right: 0;
margin-top: -27px;
}
}
.eyes {
width: 128px;
margin: 0 auto;
margin-top: 40px;
&:before {
content: '';
display: inline-block;
width: 30px;
height: 15px;
border: 7px solid $dark;
margin-right: 20px;
border-top-left-radius: 22px;
border-top-right-radius: 22px;
border-bottom: 0;
}
&:after {
content: '';
display: inline-block;
width: 30px;
height: 15px;
border: 7px solid $dark;
margin-left: 20px;
border-top-left-radius: 22px;
border-top-right-radius: 22px;
border-bottom: 0;
}
}
.dimples {
width: 180px;
margin: 0 auto;
margin-top: 15px;
&:before {
content: '';
display: inline-block;
width: 10px;
height: 10px;
margin-right: 80px;
border-radius: 50%;
background-color: rgba($red, 0.4);
}
&:after {
content: '';
display: inline-block;
width: 10px;
height: 10px;
margin-left: 80px;
border-radius: 50%;
background-color: rgba($red, 0.4);
}
}
.mouth {
width: 40px;
height: 5px;
border-radius: 5px;
background-color: $dark;
margin: 0 auto;
margin-top: 25px;
}
}
h1 {
font-weight: 800;
color: $dark;
text-align: center;
font-size: 2.5em;
padding-top: 20px;
@media screen and (max-width: $break) {
padding-left: 20px;
padding-right: 20px;
font-size: 2em;
}
}
.btn {
font-family: 'Open Sans' 'Times New Roman', Times, serif;
font-weight: 400;
padding: 20px;
background-color: rgba($blue, 1);
color: white;
width: 320px;
margin: 0 auto;
text-align: center;
text-decoration: none;
display: block;
font-size: 1.2em;
border-radius: 5px;
cursor: pointer;
margin-top: 80px;
margin-bottom: 50px;
transition: all 0.2s linear;
@media screen and (max-width: $break) {
margin: 0 auto;
margin-top: 60px;
margin-bottom: 50px;
width: 200px;
}
&:hover {
background-color: rgba($blue, 0.8);
transition: all 0.2s linear;
}
}