Files
yycea/public/assets/addons/wdsxh/scss/membership.scss
2026-03-17 09:56:06 +08:00

298 lines
6.5 KiB
SCSS

body {
background: #fff;
}
.membership-container {
display: flex;
flex-direction: column;
min-height: 100vh;
.container-main {
flex: 1;
padding-bottom: 2.5rem;
.main-title {
.title {
color: #333;
font-size: 2rem;
font-weight: 600;
line-height: 2.8125rem;
}
.subtitle {
color: #999;
font-size: 1rem;
line-height: 1.375rem;
text-transform: uppercase;
margin-top: .25rem;
}
&::after {
content: "";
display: block;
width: 3rem;
height: .375rem;
background: var(--main-color);
margin-top: .25rem;
}
}
.main-screen {
background: #F8F8F8;
.screen-box {
overflow: auto;
white-space: nowrap;
text-align: center;
.item {
display: inline-block;
padding: 1.8125rem 2rem 0;
cursor: pointer;
text-align: center;
color: #333;
font-size: 1rem;
line-height: 1.375rem;
word-break: keep-all;
transition: color .3s;
&::after {
content: "";
display: block;
width: 100%;
height: .25rem;
background: transparent;
margin: 1.5625rem auto 0;
transition: background .3s;
}
&.active,
&:hover {
color: var(--main-color);
&::after {
background: var(--main-color);
}
}
}
@media (min-width: 767px) {
&::-webkit-scrollbar {
/*滚动条整体样式*/
width: auto;
/*高宽分别对应横竖滚动条的尺寸*/
height: .5rem;
}
&::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: .625rem;
box-shadow: inset 0 0 5px rgba(97, 184, 179, 0.1);
background: #ccc;
}
&::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
border-radius: .625rem;
background: #ededed;
}
}
}
}
.main-content {
.column-cont {
.cont-item {
margin-right: 2%;
margin-top: 2.5rem;
width: 23.5%;
display: flex;
flex-direction: column;
text-decoration: none;
&:nth-child(4n) {
margin-right: 0;
}
&:hover {
.image img {
transform: scale(1.2);
}
.name,
.post {
color: var(--main-color);
}
}
.image {
position: relative;
width: 100%;
height: 0;
padding-top: 100%;
border-radius: .375rem;
overflow: hidden;
img {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
transition: all .3s;
}
}
.name {
color: #333;
font-size: 1.25rem;
font-weight: 600;
line-height: 1.75rem;
margin-top: 1rem;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
transition: color .3s;
}
.post {
color: #333;
font-size: 1rem;
line-height: 1.375rem;
margin-top: .5rem;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
transition: color .3s;
}
.mobile {
flex: 1;
overflow: hidden;
display: none;
flex-direction: column;
justify-content: space-between;
margin-left: .75rem;
.name {
margin-top: 0;
font-size: 1rem;
line-height: 1.375rem;
}
.address {
font-size: .875rem;
line-height: 1.25rem;
color: #999;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 2;
}
.post {
margin-top: 0;
font-size: .875rem;
line-height: 1.25rem;
color: #333;
}
}
}
}
.column-code {
display: none;
padding: 2rem;
.code-title {
color: #333;
font-size: 1.5rem;
font-weight: bold;
line-height: 2.125rem;
text-align: center;
}
.code-tips {
color: #8D8D8D;
font-size: 1rem;
line-height: 1.375rem;
text-align: center;
}
.code-image {
width: 100%;
max-height: 17.5rem;
max-width: 17.5rem;
margin: 1rem auto;
}
}
}
}
// 适配手机端
@media screen and (max-width: 767px) {
.container-main {
padding-bottom: 0;
.main-screen .screen-box .item {
padding: 1rem 1rem 0;
font-size: .875rem;
&::after {
margin-top: .75rem;
}
}
.main-content {
padding-bottom: 1.875rem;
.column-cont {
flex-direction: column;
.cont-item {
margin-top: 1.25rem;
width: 100%;
margin-right: 5%;
margin-right: 0;
flex-direction: row;
.image {
width: 30%;
padding-top: 30%;
}
.normal {
display: none;
}
.mobile {
display: flex;
}
}
}
.column-code {
padding: 1.5rem 0 0;
.code-title {
font-size: 1.25rem;
line-height: 2rem;
}
.code-tips {
font-size: 1rem;
line-height: 1.25rem;
}
.code-image {
max-height: 15rem;
max-width: 15rem;
}
}
}
}
}
}