feat: carousel and set text color according to bg color
This commit is contained in:
90
src/pages/detail/index.scss
Normal file
90
src/pages/detail/index.scss
Normal file
@@ -0,0 +1,90 @@
|
||||
.detail-page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.custom-navbar {
|
||||
height: 56px; /* 通常与原生导航栏高度一致 */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// background-color: #fff;
|
||||
color: #000;
|
||||
padding-top: 36px; /* 适配状态栏 */
|
||||
}
|
||||
|
||||
.detail-navigator {
|
||||
height: 30px;
|
||||
width: 80px;
|
||||
border-radius: 15px;
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
border: 1px solid #888;
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.detail-navigator-back, .detail-navigator-icon {
|
||||
height: 20px;
|
||||
width: 50%;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
& > svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-page-bg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background-size: cover;
|
||||
filter: blur(40px);
|
||||
transform: scale(1.5);
|
||||
z-index: -2;
|
||||
width: calc(100% + 20px);
|
||||
height: calc(100% + 20px);
|
||||
margin: -10px;
|
||||
}
|
||||
|
||||
.detail-page-bg-text {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.detail-swiper {
|
||||
height: 240px;
|
||||
margin-top: 15px;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.detail-swiper-item {
|
||||
overflow: visible;
|
||||
height: 100%;
|
||||
|
||||
.detail-swiper-item-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 12px;
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-text {
|
||||
font-size: 40rpx;
|
||||
margin-top: 20px;
|
||||
transition: color 0.3s ease-in;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user