lila/ui/learn/css/_screen.scss
2019-04-24 16:51:22 +07:00

159 lines
3.2 KiB
SCSS

.learn__screen-overlay {
@extend %fullscreen-mask;
background: rgba(79, 195, 247, 0.9);
cursor: pointer;
}
.learn__screen {
@extend %popup-shadow, %box-radius;
margin: 150px auto;
background-color: #fff;
width: 350px;
overflow: hidden;
text-align: center;
padding-top: 36px;
> :nth-child(1) {
animation: slideIn 1s cubic-bezier(0.37, 0.82, 0.2, 1);
}
> :nth-child(2) {
animation: slideIn 1.5s cubic-bezier(0.37, 0.82, 0.2, 1);
}
> :nth-child(3) {
animation: slideIn 2s cubic-bezier(0.37, 0.82, 0.2, 1);
}
> :nth-child(4) {
animation: slideIn 2.5s cubic-bezier(0.37, 0.82, 0.2, 1);
}
> :nth-child(5) {
animation: slideIn 3s cubic-bezier(0.37, 0.82, 0.2, 1);
}
.stars {
margin-bottom: 20px;
}
@keyframes star-appear {
0% {
filter: saturate(1); opacity: 0.5; transform: scale(0) rotate(-360deg);
}
85% {
filter: saturate(1); opacity: 1; transform: scale(1.3) rotate(10deg);
}
100% {
filter: saturate(1); opacity: 1; transform: scale(1) rotate(0);
}
}
.stars .star-wrap {
display: inline-block;
width: 55px;
height: 55px;
margin: 0 5px;
position: relative;
}
.stars .star-wrap::before {
position: absolute;
top: 5px;
left: 5px;
display: block;
width: 45px;
height: 45px;
content: '';
background-image: url(../images/learn/star.png);
background-size: cover;
filter: saturate(0);
opacity: 0.2;
}
.stars .star {
display: inline-block;
background-image: url(../images/learn/star.png);
background-size: cover;
width: 55px;
height: 55px;
opacity: 0;
animation: star-appear 2.5s ease-in-out;
animation-delay: 0.1s;
animation-fill-mode: forwards;
}
.stars .star-wrap:nth-child(2) .star {
animation-delay: 0.8s;
}
.stars .star-wrap:nth-child(3) .star {
animation-delay: 1.6s;
}
.no-square {
width: 100px;
height: 100px;
position: relative;
margin: 0 auto 22px auto;
}
h1 {
font-weight: bold;
color: #181818;
font-size: 24px;
margin-bottom: 22px;
}
.round-svg {
width: 240px;
height: 240px;
padding: 0px;
background: #f57c00;
border-radius: 50%;
margin: 0 auto 10px auto;
}
.round-svg img {
width: 240px;
height: 240px;
padding: 20px;
}
.score {
text-transform: uppercase;
color: #0288d1;
font-size: .85em;
display: block;
letter-spacing: 1px;
margin-bottom: 17px;
}
.score span {
font-weight: bold;
font-family: 'Roboto Mono';
}
p {
color: #999999;
padding: 0 15%;
line-height: 24px;
margin-bottom: 17px;
}
.buttons {
width: 100%;
text-align: center;
margin-bottom: 23px;
a {
@extend %box-radius;
display: block;
text-decoration: none;
text-transform: uppercase;
line-height: 48px;
margin: 8px 10% 0 10%;
height: 48px;
color: #fff;
transition: all 0.3s;
}
a {
margin-top: 8px;
}
.next {
font-size: .9em;
background: #4fc3f7;
}
.back {
font-size: .85em;
background: #f57c00;
}
a:hover {
filter: brightness(0.9);
}
}
piece {
width: 100%;
height: 100%;
}
}