Files
peko-h5/view/peko/modules/spirit/css/main.scss

631 lines
14 KiB
SCSS
Raw Normal View History

2022-09-08 18:22:18 +08:00
@import '../../../common/css/flex.scss';
@function px2rem($px, $rem:75) {
@return $px / $rem+rem;
}
@font-face {
2022-09-08 18:22:18 +08:00
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');
}
html,
body {
// height: 100vh;
// height: px2rem(1334, );
height: auto;
2022-09-08 18:22:18 +08:00
background: url('../image/main-bg.png') no-repeat 0 0/100% 100%;
background-color: #014459;
// overflow: hidden;
font-family: 'pingfang-bold';
overflow-y: scroll;
box-sizing: border-box;
2022-09-08 18:22:18 +08:00
}
.title {
2022-09-08 18:22:18 +08:00
width: px2rem(750, );
height: px2rem(238, );
background: url('../image/main-title.png') no-repeat 0 0/100% 100%;
overflow: hidden;
margin: auto;
.canSelect {
2022-09-08 18:22:18 +08:00
color: white;
font-size: px2rem(20, );
font-weight: bold;
text-align: center;
margin-top: px2rem(196, );
}
}
.introduction-btn {
2022-09-08 18:22:18 +08:00
position: absolute;
left: 0;
top: px2rem(244, );
width: px2rem(142, );
height: px2rem(42, );
z-index: 2;
2022-09-08 18:22:18 +08:00
}
.record-btn {
2022-09-08 18:22:18 +08:00
position: absolute;
right: 0;
top: px2rem(244, );
width: px2rem(142, );
height: px2rem(42, );
z-index: 2;
2022-09-08 18:22:18 +08:00
}
.select-area {
2022-09-08 18:22:18 +08:00
opacity: 0;
position: relative;
width: px2rem(750, );
height: px2rem(730, );
margin: px2rem(60, ) auto 0;
margin: 0.2rem auto 0;
2022-09-08 18:22:18 +08:00
background: url('../image/ring.png') no-repeat 0 0/100% 100%;
div {
2022-09-08 18:22:18 +08:00
display: flex;
justify-content: center;
align-items: center;
position: absolute;
width: px2rem(140, );
height: px2rem(140, );
&.active {
.default {
2022-09-08 18:22:18 +08:00
display: none;
}
.selected {
2022-09-08 18:22:18 +08:00
display: block;
}
}
&:first-child {
2022-09-08 18:22:18 +08:00
top: px2rem(-12, );
left: px2rem(306, );
}
&:nth-child(2) {
2022-09-08 18:22:18 +08:00
top: px2rem(48, );
left: px2rem(484, );
}
&:nth-child(3) {
2022-09-08 18:22:18 +08:00
top: px2rem(200, );
left: px2rem(596, );
}
&:nth-child(4) {
2022-09-08 18:22:18 +08:00
top: px2rem(390, );
left: px2rem(596, );
}
&:nth-child(5) {
2022-09-08 18:22:18 +08:00
top: px2rem(542, );
left: px2rem(486, );
}
&:nth-child(6) {
2022-09-08 18:22:18 +08:00
top: px2rem(600, );
left: px2rem(306, );
}
&:nth-child(7) {
2022-09-08 18:22:18 +08:00
top: px2rem(542, );
left: px2rem(125, );
}
&:nth-child(8) {
2022-09-08 18:22:18 +08:00
top: px2rem(390, );
left: px2rem(14, );
}
&:nth-child(9) {
2022-09-08 18:22:18 +08:00
top: px2rem(200, );
left: px2rem(14, );
}
&:nth-child(10) {
2022-09-08 18:22:18 +08:00
top: px2rem(48, );
left: px2rem(126, );
}
img.fail {
2022-09-08 18:22:18 +08:00
display: none;
}
img.selected {
2022-09-08 18:22:18 +08:00
display: none;
}
}
.desc,
.prob {
2022-09-08 18:22:18 +08:00
display: none;
position: absolute;
width: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #DEFD8F;
font-size: px2rem(24, );
font-weight: bold;
text-align: center;
&.fail {
2022-09-08 18:22:18 +08:00
color: #ECF2BD;
line-height: 2;
}
&.success {
2022-09-08 18:22:18 +08:00
font-size: px2rem(30, );
line-height: 2;
span {
2022-09-08 18:22:18 +08:00
font-size: px2rem(24, );
color: #ECF2BD;
text-shadow: 1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576;
}
}
}
.prob {
2022-09-08 18:22:18 +08:00
display: none;
}
}
.tabBox {
width: 90%;
height: px2rem(94, );
display: flex;
justify-content: space-between;
margin: px2rem(31, ) auto;
div {
width: px2rem(200, );
height: 100%;
overflow: hidden;
border: 1px solid #49B598;
box-sizing: border-box;
border-radius: px2rem(6, );
p {
width: 100%;
text-align: center;
color: #CDD5D8;
font-size: px2rem(30, );
margin: px2rem(19, ) 0 px2rem(8, );
font-weight: bold;
}
span {
width: 100%;
display: block;
text-align: center;
color: #CDD5D8;
font-size: px2rem(20, );
}
}
.active {
background: url(../image/tabBg.png) no-repeat;
background-size: 100% 100%;
p {
color: #11615D;
}
span {
color: #11615D;
}
}
}
.explore {
// width: px2rem(428, );
// height: px2rem(124, );
// line-height: px2rem(88, );
// background: url('../image/explore-btn.png') no-repeat 0 0/100% 100%;
// margin: px2rem(54, ) auto px2rem(12, );
width: 5.4rem;
height: 1.3rem;
line-height: 1.3rem;
background: url(../image/explore-btn.png) no-repeat 0 0/100% 100%;
margin: -0.2rem auto 0rem;
&.again {
2022-09-08 18:22:18 +08:00
width: px2rem(406, );
height: px2rem(100, );
background-image: url('../image/play-again.png');
}
}
.no-explore {
2022-09-08 18:22:18 +08:00
width: px2rem(200, );
color: #FCFFE7;
font-size: px2rem(20, );
margin: auto;
text-align: center;
}
.mine {
2022-09-08 18:22:18 +08:00
position: fixed;
left: 0;
bottom: 0;
z-index: 999;
display: flex;
align-items: center;
width: 100%;
height: px2rem(94, );
background-color: #0C6970;
color: #FEF59B;
font-size: px2rem(24, );
.avatar {
2022-09-08 18:22:18 +08:00
width: px2rem(72, );
height: px2rem(72, );
margin-left: px2rem(32, );
margin-right: px2rem(16, );
img {
2022-09-08 18:22:18 +08:00
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.nick {
2022-09-08 18:22:18 +08:00
flex: 1;
}
.diamond-num {
2022-09-08 18:22:18 +08:00
position: relative;
margin-right: px2rem(6, );
img {
2022-09-08 18:22:18 +08:00
position: absolute;
top: 50%;
transform: translateY(-50%);
left: px2rem(-20, );
width: px2rem(55, );
height: px2rem(45, );
}
p {
2022-09-08 18:22:18 +08:00
border: px2rem(4, ) #71CEC4 solid;
border-radius: px2rem(20, );
padding: px2rem(6, ) px2rem(8, ) px2rem(6, ) px2rem(40, );
background-color: #223B46;
color: rgba($color: #71CEC4, $alpha: .7);
span {
2022-09-08 18:22:18 +08:00
color: #FEF59B;
}
}
}
.recharge-icon {
2022-09-08 18:22:18 +08:00
margin-right: px2rem(22, );
font-weight: bold;
img {
2022-09-08 18:22:18 +08:00
width: px2rem(22, );
height: px2rem(22, );
}
}
}
.shade-mask {
2022-09-08 18:22:18 +08:00
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100vw;
height: 100vh;
background-color: rgba($color: #000000, $alpha: .7);
.shade-content {
2022-09-08 18:22:18 +08:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: px2rem(654, );
height: px2rem(616, );
background: url('../image/rule-bg.png') no-repeat 0 0/100% 100%;
p {
2022-09-08 18:22:18 +08:00
width: 60%;
height: 76%;
overflow: scroll;
margin: px2rem(120, ) auto px2rem(0, );
img {
2022-09-08 18:22:18 +08:00
width: px2rem(392, );
height: px2rem(1032, );
}
}
}
}
.shade-mask-recharge,
.result-shade,
.table-shade,
.not-enough {
2022-09-08 18:22:18 +08:00
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100vw;
height: 100vh;
background-color: rgba($color: #000000, $alpha: .7);
.shade-content-recharge {
2022-09-08 18:22:18 +08:00
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: px2rem(500, );
height: px2rem(600, );
background: url('../image/recharge-bg.png') no-repeat 0 0/100% 100%;
font-size: px2rem(24, );
.planet-num,
.recharge-title {
2022-09-08 18:22:18 +08:00
font-size: px2rem(30, );
color: #ECF2BD;
margin: px2rem(60, ) 0 px2rem(0, );
text-shadow: 1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576;
2022-09-08 18:22:18 +08:00
}
.recharge-title {
2022-09-08 18:22:18 +08:00
margin: px2rem(20, ) 0 px2rem(44, );
}
.headwear {
2022-09-08 18:22:18 +08:00
width: px2rem(130, );
height: px2rem(130, );
img {
2022-09-08 18:22:18 +08:00
width: 100%;
height: 100%;
}
}
.headwear-day {
2022-09-08 18:22:18 +08:00
color: #EBF9C0;
font-size: px2rem(24, );
font-weight: bold;
margin-top: px2rem(46, );
}
.headwear-price {
2022-09-08 18:22:18 +08:00
color: #ECF2BD;
font-size: px2rem(24, );
font-weight: bold;
margin-top: px2rem(46, );
text-shadow: 1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576;
2022-09-08 18:22:18 +08:00
}
.recharge-btn {
2022-09-08 18:22:18 +08:00
width: px2rem(264, );
height: px2rem(72, );
background: url('../image/recharge-btn.png') no-repeat 0 0/100% 100%;
margin-top: px2rem(32, );
}
}
}
.svga {
2022-09-08 18:22:18 +08:00
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: px2rem(750, );
height: px2rem(1334, );
}
.result-shade {
.result-content {
2022-09-08 18:22:18 +08:00
width: px2rem(654, );
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
&.success,
&.fail {
2022-09-08 18:22:18 +08:00
display: flex;
flex-direction: column;
align-items: center;
height: px2rem(716, );
background: url('../image/success.png') no-repeat 0 0/100% 100%;
img {
2022-09-08 18:22:18 +08:00
width: px2rem(165, );
height: px2rem(155, );
margin-top: px2rem(270, );
}
p {
2022-09-08 18:22:18 +08:00
font-size: px2rem(24, );
font-weight: bold;
color: #EBF9C0;
margin-top: px2rem(58, );
span {
2022-09-08 18:22:18 +08:00
font-weight: bold;
}
}
div {
2022-09-08 18:22:18 +08:00
width: 50%;
text-align: center;
line-height: 2;
font-size: px2rem(24, );
font-weight: bold;
color: #ECF2BD;
margin-top: px2rem(50, );
text-shadow: 1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576,
1px 1px 2px#478576,
-1px -1px 2px#478576;
span {
2022-09-08 18:22:18 +08:00
font-weight: bold;
}
}
}
&.fail {
2022-09-08 18:22:18 +08:00
height: px2rem(616, );
background: url('../image/fail.png') no-repeat 0 0/100% 100%;
img {
2022-09-08 18:22:18 +08:00
margin-top: px2rem(170, );
}
div {
2022-09-08 18:22:18 +08:00
display: none;
}
}
}
}
.table-shade {
.table-content {
2022-09-08 18:22:18 +08:00
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 97%;
height: px2rem(720, );
background-color: white;
border-radius: px2rem(10, );
2022-09-08 18:22:18 +08:00
.table-wrap {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: px2rem(720, );
overflow-y: auto;
background-color: white;
border-radius: px2rem(10, );
2022-09-08 18:22:18 +08:00
.table {
width: 100%;
padding: px2rem(10, );
table-layout: fixed;
2022-09-08 18:22:18 +08:00
tr {
font-size: px2rem(24, );
text-align: center;
height: px2rem(80, );
border-bottom: 1px solid pink;
width: 100%;
2022-09-08 18:22:18 +08:00
th {
color: #652DAD;
width: 1.9rem;
line-height: px2rem(80, );
}
2022-09-08 18:22:18 +08:00
td {
color: #333;
box-sizing: border-box;
// line-height: px2rem(30, );
height: px2rem(80, );
max-width: 1rem;
// word-break: break-all;
word-wrap: break-word;
vertical-align: middle;
2022-09-08 18:22:18 +08:00
span {
max-width: 2.5rem;
display: block;
}
}
}
}
2022-09-08 18:22:18 +08:00
// 暂无数据
.noData {
display: none;
position: absolute;
top: 50%;
width: 100%;
text-align: center;
font-size: px2rem(36, );
color: #333;
z-index: 1;
font-weight: bold;
background: #fff;
}
}
.close-record {
2022-09-08 18:22:18 +08:00
position: absolute;
top: px2rem(-60, );
right: px2rem(20, );
width: px2rem(52, );
height: px2rem(52, );
}
}
}
.not-enough {
.not-enough-content {
2022-09-08 18:22:18 +08:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: px2rem(500, );
height: px2rem(360, );
background: url('../image/not-enough.png') no-repeat 0 0/100% 100%;
.go-to-recharge {
2022-09-08 18:22:18 +08:00
position: absolute;
left: 50%;
transform: translateX(-50%);
top: px2rem(240, );
width: px2rem(246, );
height: px2rem(62, );
}
}
}
::-webkit-scrollbar {
2022-09-08 18:22:18 +08:00
display: none;
}