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

248 lines
5.2 KiB
SCSS

.album-container {
display: flex;
flex-direction: column;
min-height: 100vh;
.container-main {
flex: 1;
padding: 2rem 0 2.5rem;
.main-content {
.cont-item {
margin-top: 1rem;
cursor: pointer;
background: #fff;
padding: 1rem;
border-radius: .5rem;
&:first-child {
margin-top: 0;
}
.item-date {
font-weight: 600;
font-size: 1rem;
line-height: 1.375rem;
color: #5A5B6E;
}
.item-title {
margin-top: 1rem;
font-size: 1rem;
line-height: 1.25rem;
color: #8D929C;
-webkit-line-clamp: 2;
transition: color .3s;
}
.item-box {
margin-top: 1rem;
.box-timeline {
.point {
width: .625rem;
height: .625rem;
border-radius: .125rem;
background: var(--main-color);
}
.line {
width: 1px;
height: calc(100% - .625rem);
background: #F0F0F0;
}
}
.box-single {
flex: 1;
margin-left: 1rem;
.image {
width: 16.75rem;
height: 7.5rem;
border-radius: .5rem;
overflow: hidden;
img {
width: 100%;
height: 100%;
transition: transform .3s;
}
}
.video {
width: 16.75rem;
height: 7.5rem;
border-radius: .5rem;
overflow: hidden;
position: relative;
.play {
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
z-index: 9;
transform: translate(-50%, -50%);
width: 2rem;
height: 2rem;
}
.cover {
width: 100%;
height: 100%;
}
}
}
.box-multiple {
flex: 1;
margin-left: 1rem;
.image {
width: 7.5rem;
height: 7.5rem;
margin-left: .5rem;
border-radius: .5rem;
overflow: hidden;
img {
width: 100%;
height: 100%;
transition: transform .3s;
}
&:first-child {
margin-left: 0;
}
}
}
}
&:hover .item-title {
color: var(--main-color);
}
}
}
.main-code {
display: none;
background: #fff;
padding: 2rem;
border-radius: .5rem;
.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: 2rem 0;
.main-content {
.cont-item {
.item-title {
margin-top: .75rem;
height: auto;
}
.item-box {
margin-top: .75rem;
.box-single {
margin-left: .75rem;
.image {
width: 100%;
height: 0;
padding-top: 48%;
position: relative;
img {
position: absolute;
top: 0;
left: 0;
}
}
.video {
width: 100%;
height: 0;
padding-top: 48%;
position: relative;
.cover {
position: absolute;
top: 0;
left: 0;
}
}
}
.box-multiple {
margin-left: .75rem;
.image {
width: 32%;
height: 0;
padding-top: 32%;
margin-left: 2%;
position: relative;
img {
position: absolute;
top: 0;
left: 0;
}
}
}
}
&:hover .item-title {
color: #8D929C;
}
}
}
.main-code {
padding: 1rem;
.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;
}
}
}
}
}