Files
peko-h5/view/peko/activity/2023-ruffian/css/index.scss
2023-11-06 10:06:06 +08:00

562 lines
14 KiB
SCSS

@function px2rem($px) {
@return $px / 75+rem;
}
html,
body {
width: 100%;
background: linear-gradient(0deg, #EBC8FA 0%, #FCB0EB 99%);
}
.rabbit {
z-index: 999;
}
.back {
position: fixed;
top: px2rem(70);
left: px2rem(34);
z-index: 99;
width: px2rem(62);
height: px2rem(62);
img {
width: 100%;
height: 100%;
}
p {
color: #fff;
font-size: px2rem(32);
position: absolute;
width: 9rem;
left: 0;
top: 0;
height: 100%;
text-align: center;
line-height: px2rem(62);
}
}
.header {
width: px2rem(750);
height: px2rem(795);
background: url(../images/header.png) no-repeat;
background-size: 100% 100%;
margin: 0 auto 0;
position: relative;
z-index: 2;
.giftBox {
width: px2rem(662);
height: px2rem(240);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(448);
}
.tab {
width: px2rem(480);
height: px2rem(83);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(714);
display: flex;
justify-content: space-between;
div {
width: px2rem(212);
height: px2rem(83);
line-height: px2rem(83);
color: #F1E8F6;
font-size: px2rem(28);
text-align: center;
background: url(../images/tab.png) no-repeat;
background-size: 100%, 100%;
}
.active {
background: url(../images/tab_active.png) no-repeat;
background-size: 100%, 100%;
}
}
.rule_iaon {
width: px2rem(120);
height: px2rem(56);
line-height: px2rem(47);
text-align: center;
text-indent: 15px;
color: #fff;
font-size: px2rem(18);
position: absolute;
right: px2rem(0);
top: px2rem(400);
background: url(../images/rule_icon.png) no-repeat;
background-size: 100% 100%;
}
}
.page1 {
// display: none;
.activity1 {
width: px2rem(750);
height: px2rem(892);
background: url(../images/activity1Bg.png) no-repeat;
background-size: 100% 100%;
margin: px2rem(-43) auto px2rem(9);
position: relative;
div {
position: absolute;
right: px2rem(75);
width: px2rem(150);
height: px2rem(61);
line-height: px2rem(48);
text-align: center;
font-size: px2rem(21);
color: #E7FEFF;
background: url(../images/lqOut.png) no-repeat;
background-size: 100% 100%;
}
.but1 {
top: px2rem(226);
}
.but2 {
top: px2rem(402);
}
.but3 {
top: px2rem(579);
}
.but4 {
top: px2rem(755);
}
.out {
background: url(../images/lq.png) no-repeat;
background-size: 100% 100%;
}
}
.activity2 {
width: px2rem(750);
height: px2rem(1335);
margin: 0 auto 0;
display: block;
}
}
.page2 {
display: none;
.listTab {
width: px2rem(690);
height: px2rem(92);
margin: px2rem(30) auto 0;
display: flex;
justify-content: space-between;
div {
width: px2rem(345);
height: 100%;
text-align: center;
color: #F1E8F6;
font-size: px2rem(24);
line-height: px2rem(106);
background: url(../images/listTab.png) no-repeat;
background-size: 100% 100%;
}
.active {
font-size: px2rem(30);
line-height: px2rem(92);
background: url(../images/listTabActive.png) no-repeat;
background-size: 100% 100%;
}
}
.listBg {
width: px2rem(690);
min-height: 17rem;
margin: 0 auto 0.5rem;
background: linear-gradient(0deg, #B483D7 0%, #AD61FA 48%, #CB80FB 100%);
border-radius: 0 0 px2rem(20) px2rem(20);
overflow: hidden;
.dayTab {
width: px2rem(565);
height: px2rem(66);
display: flex;
justify-content: space-between;
margin: px2rem(44) auto px2rem(27);
div {
width: px2rem(167);
height: px2rem(66);
line-height: px2rem(68);
text-align: center;
color: #F1E8F6;
font-size: px2rem(22);
background: url(../images/dayTab.png) no-repeat;
background-size: 100% 100%;
}
.active {
background: url(../images/dayTab_active.png) no-repeat;
background-size: 100% 100%;
}
}
.topBox {
width: px2rem(664);
height: px2rem(568);
background: url(../images/topBox.png) no-repeat;
background-size: 100% 100%;
margin: 0 auto 0;
position: relative;
.no1 {
width: px2rem(180);
height: px2rem(174);
position: absolute;
top: px2rem(72);
left: 50%;
transform: translateX(-50%);
.ts {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
}
.tx {
width: px2rem(134);
height: px2rem(134);
border-radius: 50%;
position: absolute;
top: px2rem(25);
left: 50%;
transform: translateX(-50%);
}
.num {
width: px2rem(133);
height: px2rem(56);
position: absolute;
top: px2rem(-58);
left: 50%;
transform: translateX(-50%);
}
p {
width: 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(21);
position: absolute;
left: 0;
bottom: px2rem(-27);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
span {
width: 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(21);
position: absolute;
left: 0;
bottom: px2rem(-55);
}
}
.no2 {
width: px2rem(180);
height: px2rem(174);
position: absolute;
top: px2rem(182);
left: px2rem(45);
.ts {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
}
.tx {
width: px2rem(134);
height: px2rem(134);
border-radius: 50%;
position: absolute;
top: px2rem(25);
left: 50%;
transform: translateX(-50%);
}
.num {
width: px2rem(133);
height: px2rem(56);
position: absolute;
top: px2rem(-58);
left: 50%;
transform: translateX(-50%);
}
p {
width: 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(21);
position: absolute;
left: 0;
bottom: px2rem(-27);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
span {
width: 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(21);
position: absolute;
left: 0;
bottom: px2rem(-55);
}
}
.no3 {
width: px2rem(180);
height: px2rem(174);
position: absolute;
top: px2rem(182);
right: px2rem(45);
.ts {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
}
.tx {
width: px2rem(134);
height: px2rem(134);
border-radius: 50%;
position: absolute;
top: px2rem(25);
left: 50%;
transform: translateX(-50%);
}
.num {
width: px2rem(133);
height: px2rem(56);
position: absolute;
top: px2rem(-58);
left: 50%;
transform: translateX(-50%);
}
p {
width: 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(21);
position: absolute;
left: 0;
bottom: px2rem(-27);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
span {
width: 100%;
text-align: center;
color: #FFFFFF;
font-size: px2rem(21);
position: absolute;
left: 0;
bottom: px2rem(-55);
}
}
}
.list {
width: px2rem(610);
margin: 0 auto;
li {
width: 100%;
height: px2rem(120);
line-height: px2rem(120);
border-radius: px2rem(20);
background: #9B50DB;
margin-bottom: px2rem(10);
.num {
width: px2rem(45);
text-align: center;
color: #fff;
font-weight: 400;
height: 100%;
margin: 0 px2rem(20) 0 px2rem(25);
float: left;
font-size: px2rem(37);
}
.tx {
width: px2rem(94);
height: px2rem(94);
border-radius: 50%;
margin-right: px2rem(24);
margin-top: px2rem(16);
float: left;
}
.nick {
float: left;
width: 2.1rem;
height: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: px2rem(29);
font-weight: 400;
}
.score {
float: right;
margin-right: px2rem(27);
font-size: px2rem(26);
font-weight: 400;
color: #fff;
}
}
}
}
.myList {
position: fixed;
width: 100%;
bottom: 0;
left: 0;
height: px2rem(149);
line-height: px2rem(149);
background: #734DC1;
z-index: 3;
.num {
width: 1.6rem;
text-align: center;
color: #fff;
font-weight: 400;
height: 100%;
margin: 0 px2rem(20) 0 px2rem(25);
float: left;
font-size: px2rem(37);
}
.tx {
width: px2rem(94);
height: px2rem(94);
border-radius: 50%;
margin-right: px2rem(24);
margin-top: px2rem(25);
float: left;
}
.nick {
float: left;
width: 2.1rem;
height: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: px2rem(29);
font-weight: 400;
}
.score {
float: right;
margin-right: px2rem(27);
font-size: px2rem(26);
font-weight: 400;
color: #fff;
}
}
}
.apple {
width: 100%;
height: px2rem(148);
line-height: px2rem(148);
text-align: center;
color: #FFFFFF;
font-size: px2rem(26);
}
.rule {
display: none;
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, .6);
z-index: 99;
.rule_iaon {
width: px2rem(726);
height: px2rem(1085);
background: url(../images/ruleBg.png) no-repeat;
background-size: 100% 100%;
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
overflow-y: scroll;
.box {
position: absolute;
width: px2rem(646);
left: 50%;
transform: translateX(-50%);
top: 1.6rem;
height: 12rem;
overflow-y: scroll;
img {
width: 100%;
height: px2rem(3556);
display: block;
}
}
}
}
.layui-m-layershade{
background-color: rgba(0,0,0,.3) !important;
}