press-pix
Version:
基于 PixUI 的 Press 组件库
221 lines (216 loc) • 4.68 kB
text/less
// 透明度
@keyframes opacityFadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.result-page{
position: fixed;
left: 0;
top: 0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: #fff;
// background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/result-bg.png);
// background-size: cover;
// background-position: center center;
// background-repeat: no-repeat;
overflow: hidden;
}
.result-page-content {
position: relative;
display: flex;
z-index: 10;
align-items: flex-end;
justify-content: center;
flex-direction: column;
width: 12.8rem;
height: 7.2rem;
padding-top: .06rem;
box-sizing: border-box;
.result-content {
animation: opacityFadeIn .5s ease-in-out 1s forwards;
opacity: 0;
}
.btn-continue {
animation: opacityFadeIn .5s ease-in-out 1s forwards;
opacity: 0;
}
}
.result-page-text-box {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.result-page-text {
width: 6.81rem;
height: 1.55rem;
margin-bottom: .6rem;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.result-page-text-lottie {
width: 15.6rem;
height: 7.2rem;
position: absolute;
top: -2.2rem;
}
.frame-animation {
position: absolute;
left: 0;
top: 0;
z-index: 1;
width: 100%;
height: 100%;
}
.btn-close{
position: absolute;
top: .4rem;
right: 1.2rem;
width: .44rem;
height: .44rem;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/result-close.png);
background-size: 100%;
background-repeat: no-repeat;
z-index: 99;
}
.result-content{
display: flex;
flex-direction: row;
align-items: center;
font-family: GameFont;
font-size: .6rem;
color: #fff;
width: 5.2rem;
position: relative;
z-index: 5;
}
.btn-continue{
position: absolute;
bottom: .2rem;
right: .2rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding-top: .56rem;
margin-top: -.4rem;
margin-right: -.18rem;
width: 3.63rem;
height: 2.04rem;
font-family: GameFont;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/btn-main.png);
background-size: 100%;
z-index: 5;
.btn-continue-text{
font-size: .32rem;
color: #2f140d;
}
}
// 1v1样式
.result-page-solo {
.result-page-content {
&-1{
.result-content {
font-size: .54rem;
}
.result-avatar-box {
margin-right: .5rem;
&::after {
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/node1v1/rank-1-avatar.png);
}
}
}
&-2{
.result-content {
font-size: .54rem;
}
.result-avatar-box {
margin-right: .5rem;
&::after {
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/node1v1/rank-2-avatar.png);
}
}
}
&-3{
.result-content {
font-size: .54rem;
}
.result-avatar-box {
margin-right: .5rem;
&::after {
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/node1v1/rank-3-avatar.png);
}
}
}
}
.result-content {
font-size: .42rem;
margin-right: .81rem;
}
.result-avatar-box{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
position: relative;
margin-right: .2rem;
flex-shrink: 0;
&::after {
position: absolute;
width: 1.47rem;
height: 1.17rem;
background-size: 100%;
top: -.2rem;
}
.result-avatar {
width: .81rem;
height: .81rem;
border-radius: .81rem;
}
.avatar-border{
position: absolute;
top: 0;
left: 0;
width: .81rem;
height: .81rem;
border-radius: 50%;
border: .02rem solid #0c2f9c;
}
}
.promoted-box {
display: flex;
flex-direction: row;
align-items: center;
}
.promoted-icon {
flex-shrink: 0;
margin: 0 .24rem .05rem;
width: .54rem;
height: .31rem;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/next-img-white.png);
background-size: 100%;
}
.result-text-container{
display: flex;
flex-direction: column;
align-items: center;
.result-text-describe{
margin-top: .1rem;
color: #fff;
font-size: .2rem;
}
}
}