Files
peko-h5/view/peko/activity/act-ocean/css/record.scss
2023-03-09 17:50:20 +08:00

350 lines
10 KiB
SCSS

@function px2rem($px, $rem: 75) {
@return $px / $rem+rem;
}
// @function prefixurl() {
// @return 'https://img.pekolive.com/'
// }
@font-face {
font-family: 'pingfang-bold';
src: url('../../../common/fonts/PingFang\ Bold.ttf');
src: url('../../../common/fonts/PingFang\ Bold.ttf') format('woff'),
url('../../../common/fonts/PingFang\ Bold.ttf') format('truetype'),
url('../../../common/fonts/PingFang\ Bold.ttf') format('svg');
}
@font-face {
font-family: 'din-medium';
src: url('../../../common/fonts/DINCond-Medium.ttf');
src: url('../../../common/fonts/DINCond-Medium.ttf') format('woff'),
url('../../../common/fonts/DINCond-Medium.ttf') format('truetype'),
url('../../../common/fonts/DINCond-Medium.ttf') format('svg');
}
@font-face {
font-family: 'pingfang-medium';
src: url('../../../common/fonts/PingFang-Medium.ttf');
src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'),
url('../../../common/fonts/PingFang-Medium.ttf') format('truetype'),
url('../../../common/fonts/PingFang-Medium.ttf') format('svg');
}
html,
body {
width: 100%;
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
}
.img {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: px2rem(450, );
height: px2rem(310, );
background: url(../images/null.png) no-repeat;
background-size: 100% 100%;
p {
text-align: center;
width: px2rem(100%, );
position: absolute;
bottom: -1rem;
left: 50%;
transform: translate(-50%);
color: #fff;
font-size: px2rem(20, );
}
}
.record-list {
width: px2rem(750, );
margin: px2rem(30, ) auto;
li {
width: 100%;
height: px2rem(636, );
// background: linear-gradient(0deg, #46BBC1 0%, #62DEE4 100%);
background: url('../images/record/record-bg.png') no-repeat;
background-size: 100% 100%;
border-radius: px2rem(20, );
overflow: hidden;
h3 {
width: 100%;
height: 0.7rem;
line-height: 0.7rem;
text-align: center;
color: #fff;
margin: 0.3rem auto -0.3rem;
}
.goldBox {
width: 90%;
height: px2rem(44, );
line-height: px2rem(44, );
background: #F46331;
display: flex;
// justify-content: space-between;
box-sizing: border-box;
padding: 0 px2rem(20, );
margin: 0.2rem auto 0;
p {
color: #fff;
width: 50%;
text-align: center;
display: none;
}
span {
color: #FFF773;
font-size: px2rem(20, );
}
// .gold {
// font-size: px2rem(26, );
// color: #FEEF60;
// }
}
.result-wrap {
width: 84%;
height: px2rem(91, );
line-height: px2rem(91, );
box-sizing: border-box;
margin: px2rem(5, ) auto px2rem(25, );
display: flex;
justify-content: space-between;
position: relative;
.result {
display: flex;
align-items: center;
span {
font-size: px2rem(28, );
color: #FFFFFF;
padding-right: px2rem(14, );
font-weight: 600;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: px2rem(143, );
height: px2rem(45, );
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
top: 0.2rem;
}
// .bg {
// width: px2rem(91, );
// height: px2rem(91, );
// background: url('../images/record_bubble_act.png') no-repeat;
// background-size: 100% 100%;
// text-align: center;
// img {
// width: 75%;
// margin-top: 0.15rem;
// }
// }
}
.award {
display: flex;
align-items: center;
position: absolute;
// right: 0.8rem;
// top: 1.8rem;
right: 0rem;
top: -0.1rem;
p,
b {
font-size: px2rem(28, );
color: #FFFFFF;
font-weight: 600;
}
.diamond {
width: px2rem(28, );
height: px2rem(28, );
}
}
.result_sBox {
width: px2rem(660, );
height: px2rem(86, );
margin: 1rem auto 0;
display: flex;
justify-content: center;
position: relative;
left: 50%;
transform: translateX(-50%);
.bg {
width: px2rem(86, );
height: px2rem(86, );
background: url('../images/record_bubble_act.png') no-repeat;
background-size: 100% 100%;
text-align: center;
img {
width: 75%;
display: block;
margin: px2rem(10, ) auto 0;
}
}
}
}
.put-wrap {
width: 84%;
height: px2rem(91, );
line-height: px2rem(91, );
box-sizing: border-box;
margin: 2rem auto 0;
display: flex;
position: relative;
.put {
font-size: px2rem(28, );
color: #FFFFFF;
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
width: px2rem(77, );
height: px2rem(45, );
left: 50%;
transform: translateX(-50%);
background: url(../images/record/touru.png) no-repeat;
background-size: 100% 100%;
top: -0.6rem;
}
.list {
width: px2rem(504, );
height: px2rem(208, );
display: flex;
flex-wrap: wrap;
margin: 0.3rem auto 0;
.item {
width: px2rem(74, );
height: px2rem(90, );
margin-right: 0.92rem;
// position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
&:nth-child(4n) {
margin-right: 0;
}
p {
width: px2rem(62, );
height: px2rem(62, );
background: url('../images/record_bubble.png') no-repeat;
background-size: 100% 100%;
.gift {
width: 75%;
margin-top: 0.1rem;
margin-left: 0.1rem;
}
}
div {
width: 100%;
height: px2rem(25, );
display: flex;
align-items: center;
justify-content: center;
.diamond {
width: px2rem(25, );
height: px2rem(25, );
margin-top: -0.01rem;
}
.in {
font-size: px2rem(20, );
color: #FFFFFF;
font-weight: 600;
white-space: nowrap;
}
}
}
}
}
.marine_organism {
// width: px2rem(560, );
width: 78%;
height: px2rem(160, );
margin: 0 auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
span {
width: px2rem(120, );
height: px2rem(120, );
position: relative;
display: block;
img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: px2rem(54, );
height: px2rem(47, );
display: block;
}
b {
position: absolute;
right: -0.1rem;
top: 0.3rem;
color: #FFFFFF;
font-size: px2rem(20, );
}
}
.active {
width: px2rem(120, );
height: px2rem(120, );
position: relative;
img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: px2rem(72, );
height: px2rem(62, );
display: block;
}
b {
position: absolute;
right: -0.1rem;
top: 0.3rem;
color: #FEEF60;
// -webkit-text-stroke: px2rem(2, ) #FF5C7E;
// text-stroke: px2rem(2, ) #FF5C7E;
font-weight: bold;
font-size: px2rem(24, );
}
}
}
}
}