press-pix
Version:
207 lines (204 loc) • 4.71 kB
text/less
.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;
// 初始动画位置
opacity: 0;
transition: opacity 1s;
}
// 结束动画位置
.show-animation {
.result-page-content {
opacity: 1;
}
}
.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;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/result-sucess-text.png);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
margin-bottom: .6rem;
}
.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;
}
.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%;
.btn-continue-text{
font-size: .32rem;
color: #2f140d;
}
}
// 1v1样式
.result-page-solo {
// 恭喜晋级
&.promoted {
.result-page-text {
width: 6.83rem;
height: 1.56rem;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/result-promoted-text.png);
}
}
// 恭喜获得
&.obtain {
.result-page-text {
width: 6.82rem;
height: 1.55rem;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/result-obtain-text.png);
}
}
.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: .38rem;
height: .31rem;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/node1v1/double-arrow-right.png);
background-size: 100%;
}
}