Files
peko-h5/view/peko/modules/spirit/css/index.scss
2022-10-20 18:44:45 +08:00

314 lines
8.3 KiB
SCSS

@import '../../../common/css/flex.scss';
@function px2rem($px, $rem:75) {
@return $px / $rem+rem;
}
@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 {
font-family: 'pingfang-medium';
// height: 100%;
background: #2FA07C;
// margin-bottom: px2rem(90, );
// overflow-y: hidden;
}
.banner {
position: relative;
width: 100%;
height: px2rem(642, );
img {
width: 100%;
height: 100%;
}
p {
position: absolute;
top: px2rem(572, );
left: 50%;
transform: translateX(-50%);
color: #fff;
font-size: px2rem(26, );
font-weight: bold;
}
}
.wrap {
width: 100%;
height: px2rem(1780, );
background: url('../image/bg.png') no-repeat 0 0/100% 100%;
overflow: hidden;
.time {
width: px2rem(496, );
height: px2rem(56, );
background: url('../image/time-bg.png') no-repeat 0 0/100% 100%;
margin: px2rem(448, ) auto px2rem(50, );
color: #fff;
font-size: px2rem(28, );
text-align: center;
line-height: px2rem(56, );
}
.headwear-wrap {
position: relative;
display: flex;
justify-content: space-around;
// align-items: center;
width: px2rem(710, );
height: px2rem(414, );
background: url('../image/headwear-wrap-bg.png') no-repeat 0 0/100% 100%;
margin: px2rem(0, ) auto px2rem(50, );
.title {
position: absolute;
top: px2rem(50, );
z-index: 9;
width: 100%;
font-size: px2rem(24, );
text-align: center;
color: #34846B;
}
.headwear-item {
text-align: center;
color: #9D1F11;
font-size: px2rem(24, );
margin-top: px2rem(98, );
.pic-wrap {
position: relative;
width: px2rem(188, );
height: px2rem(200, );
background: url('../image/headwear-bg.png') no-repeat 0 0/100% 100%;
margin-bottom: px2rem(18, );
&.active {
background-image: url('../image/headwear-active-bg.png');
}
img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: px2rem(154, );
height: px2rem(154, );
}
}
.headwear-name {
margin-bottom: px2rem(8, );
color: #34846B;
font-size: px2rem(24, );
}
.headwear-price {
color: #FC9362;
font-size: px2rem(20, );
.diamond-icon {
width: px2rem(38, );
height: px2rem(30, );
}
}
}
}
.day-wrap {
width: px2rem(710, );
height: px2rem(680, );
background: url('../image/day-wrap-bg.png') no-repeat 0 0/100% 100%;
overflow: hidden;
margin: 0 auto px2rem(62, );
.select-title {
width: px2rem(330, );
height: px2rem(70, );
line-height: px2rem(70, );
margin: px2rem(40, ) auto px2rem(36, );
text-align: center;
color: #4FA989;
font-size: px2rem(36, );
font-weight: bold;
}
.advertising {
width: 100%;
height: px2rem(24, );
margin: auto;
overflow: hidden;
ul {
li {
display: flex;
justify-content: center;
color: #AA3826;
font-size: px2rem(20, );
div {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nick,
.diamond-num {
color: #FF5105;
}
img {
width: px2rem(30, );
height: px2rem(24, );
margin-right: px2rem(16, );
}
}
}
}
.select-item {
width: 92%;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin: px2rem(30, ) auto 0;
p {
width: px2rem(190, );
height: px2rem(64, );
line-height: px2rem(64, );
// background: url('../image/unselected.png') no-repeat 0 0/100% 100%;
background: #5CC6A4;
color: #FFFFFF;
font-size: px2rem(28, );
text-align: center;
margin-bottom: px2rem(32, );
border-radius: px2rem(20, );
&.active {
// background: url('../image/selected.png') no-repeat 0 0/100% 100%;
background: #FD8D5D;
color: #FFFFFF;
}
}
}
.total-price {
text-align: center;
color: #4FA989;
font-size: px2rem(24, );
}
.buy-btn {
width: px2rem(455, );
background: url('../image/know.png') no-repeat 0 0/100% 100%;
line-height: px2rem(86, );
text-align: center;
color: #FFEB8D;
font-size: px2rem(32, );
margin: px2rem(24, ) auto 0;
height: px2rem(86, );
}
}
}
.shade-mask {
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100vw;
height: 100vh;
background-color: rgba($color: #000000, $alpha: .7);
.shade-content {
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: px2rem(710, );
height: px2rem(554, );
background: url('../image/index-panel.png') no-repeat 0 0/100% 100%;
color: #9D1F11;
font-size: px2rem(24, );
.content-title {
font-size: px2rem(26, );
margin-top: px2rem(50, );
margin-bottom: px2rem(24, );
color: #4FA989;
font-size: px2rem(36, );
font-weight: bold;
}
.headwear-info-wrap {
width: 100%;
display: flex;
justify-content: center;
margin-bottom: px2rem(42, );
.headwear-info {
width: 32%;
display: flex;
flex-direction: column;
align-items: center;
.hw-pic {
width: px2rem(188, );
height: px2rem(200, );
// background-color: #081C43;
background: url('../image/panel-item-bg.png') no-repeat 0 0/100% 100%;
// background: #FFF8D6;
border-radius: px2rem(10, );
display: flex;
justify-content: center;
align-items: center;
img {
width: 80%;
}
}
.hw-name {
margin: px2rem(10, ) 0;
color: #34846B;
font-weight: bold;
font-size: px2rem(24, );
}
.hw-days {
color: #FC9362;
font-size: px2rem(20, );
}
}
}
.know {
width: px2rem(334, );
height: px2rem(86, );
background: url('../image/know.png') no-repeat;
background-size: 100% 100%;
line-height: px2rem(86, );
font-size: px2rem(32, );
text-align: center;
color: #FFFFFF;
}
}
}