bk-shop/src/components/sp-page/index.scss

245 lines
4.8 KiB
SCSS
Executable File

.sp-page {
// position: relative;
box-sizing: border-box;
.sp-page-body {
// height: calc(100vh - var(--nav-height) - #{$tabbar-height} - env(safe-area-inset-bottom));
height: 100%;
}
&.has-navbar {
padding-top: var(--status-bar-height);
// padding-top: calc(#{$navigate-height} + 40px) !important;
}
&.has-footer {
// padding-bottom: $page-footer-height;
padding-bottom: $navigate-height;
&.ipx {
padding-bottom: $page-ipx-footer-height;
}
}
&.has-custom-navigation {
.countDown {
&.right_top {
top: 12%;
}
}
}
&.ipx {
padding-bottom: 20px;
.sp-page-footer {
min-height: $page-ipx-footer-height;
}
.sp-float-layout-ft {
padding-bottom: 40px;
}
.at-tab-bar {
height: $page-ipx-footer-height;
/* #ifdef alipay */
padding: 10px 0 20px 0;
height: auto;
/* #endif */
}
}
.float-container {
position: fixed;
bottom: 150px;
right: 30px;
z-index: $z-index-level-3;
display: flex;
justify-content: center;
align-items: flex-end;
flex-direction: column;
.icon-zhiding {
font-size: 34px;
color: #fff;
}
}
&-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
// height: $toolbar-height; //+20
z-index: $z-index-level-3;
background: #fff;
}
.custom-navigation {
display: flex;
align-items: center;
box-sizing: border-box;
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 1000;
background: transparent;
transition: all 0.3s ease-in-out 0s;
.custom-status-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
.left-container,
.right-container {
width: 100px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.left-container {
width: auto;
margin-left: 60px;
// margin-left: 26px;
display: flex;
align-items: center;
.chazhao {
width: 34px;
height: 34px;
}
.icon-kf {
margin-left: 40px;
}
.at-badge {
&__num {
font-size: 14px;
width: 24px;
height: 24px;
line-height: 24px;
top: -6px;
right: 4px;
padding: 0;
border-radius: 50%;
overflow: hidden;
text-align: center;
}
}
}
.icon-wrap {
// width: 56px;
height: 56px;
// background: #c5c5c5;
border-radius: 36px;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
.icon-home1 {
font-size: 36px;
color: #000;
}
.icon-fanhui {
font-size: 36px;
color: #000;
}
.sp-image {
margin-left: 50px;
}
}
.title-container {
flex: 1;
height: 100%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
color: #000;
padding: 0 16px;
position: absolute;
left: 50%;
transform: translateX(-50%);
.sp-image {
display: flex;
align-items: center;
.sp-image-img {
height: 30px;
}
}
.left-icon {
position: absolute;
left: 20px;
}
text {
font-size: 40px;
font-weight: 600;
}
}
.icon-sousuo-01,
.icon-home1 {
font-size: 40px;
color: #fff;
}
.icon-shangyiyehoutuifanhui-xianxingyuankuang {
font-size: 50px;
color: #fff;
}
&.mantle {
background: rgba(255, 255, 255, 0.5);
transition: all 0.15s ease-in;
}
&.dark {
// background: #000;
// background-color: transparent !important;
.icon-wrap {
// background: #a0a0a0;
}
.title-container {
color: #fff;
}
.custom-status-bar {
background: #000;
}
}
&.light {
// background: #fff;
// background-color: transparent !important;
.icon-wrap {
// background: #a0a0a0;
}
.title-container {
color: #000;
}
.custom-status-bar {
background: #fff;
}
}
}
.loading-box {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1100;
background: rgba(255, 255, 255, 0.6);
animation: fadeInAnimation 0.3s ease-in;
.sp-image {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
}
}
@keyframes fadeInAnimation {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
}