7b2美化-列表文章上浮效果
代码放到你的css样式
代码语言:javascript复制.home .post-list .b2_gap .post-list-item .item-in:hover {
transform: translateY(-5px);
-webkit-transform: translateY(-5px);
-moz-transform: translateY(-5px);
}
.post-module-thumb {
position: relative;
height: 0;
overflow: hidden;
z-index: 1;
}
.picked.post-load-button span {
background-color: var(--b2color);
background: var(--b2color);
border-radius: 4px;
}
.item-in.item-author .item-bg .thumb-i {
background-image: linear-gradient(to top, #4481eb 0%, #04befe 100%);
}
.thumb-1 {
background-image: linear-gradient(to top, #9be15d 0%, #00e3ae 100%);
}
.thumb-2 {
background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
.thumb-3 {
background-image: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}
.thumb-4 {
background-image: linear-gradient(180deg, #2af598 0%, #009efd 100%);
}
.thumb-5 {
background-image: linear-gradient(to right, #f83600 0%, #f9d423 100%);
}
.thumb-6 {
background-image: linear-gradient(-20deg, #b721ff 0%, #21d4fd 100%);
}
.thumb-7 {
background-image: linear-gradient(to top, #f77062 0%, #fe5196 100%);
}
.thumb-8 {
background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
}
.thumb-9 {
background-image: linear-gradient(to top, #9be15d 0%, #00e3ae 100%);
}
.thumb-10 {
background-image: linear-gradient(-225deg, #9EFBD3 0%, #57E9F2 48%, #45D4FB 100%);
}
.list-footer {
padding: 10px 0px;
border-top: 0px solid #F5F6F7;
}
/*.picture img:hover{
-webkit-transform: scale(1.1);
transform: scale(1.1);
-webkit-transition: all .5s ease-out;
transition: all .5s ease-out;
}*/
.item-in:hover {
transform: translateY(-5px);
-webkit-transform: translateY(-5px);
-moz-transform: translateY(-5px);
box-shadow: 0 1rem 3rem rgba(31, 45, 61, .125);
}
.b2_gap>li .item-in, .shop-list-item, .shop-normal-item-in, .user-search-list li>div, .home-collection .home-collection-content, .post-3.post-3-li-dubble .b2_gap>li .item-in, .item-in {
overflow: hidden;
transition: all .3s ease-in-out;
padding: 10px;
border-radius: 15px;
}
.b2_gap>li .item-in, .shop-list-item, .shop-normal-item-in, .user-search-list li > div, .home-collection .home-collection-content, .post-3.post-3-li-dubble .b2_gap>li .item-in {
margin-bottom: 18px;
margin-right: 18px;
overflow: hidden;
}
/*.category .wrapper {
width: calc(100% - 140px);
}
.wrapper {
width: calc(100% - 140px);
max-width: 100%;
margin: 0 auto;
}*/
.post-excerpt {
font-size: 12px;
color: #797C80;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
text-justify: inter-ideograph;
word-break: break-all;
margin: 10px;
margin-top: -6px;
}
.post-list-meta-box {
display: flex;
align-items: center;
justify-content: space-between;
margin: 10px 0px;
color: #AAAEB3;
}
.post-info h2 {
font-size: 18px;
font-weight: bold;
margin: 16px 0 16px;
line-height: 25px;
}
.post-3-li-dubble .item-in .post-info h2{
font-size: 18px;
font-weight: bold;
margin: 16px 0 16px;
line-height: 25px;
margin-bottom:5px;
font-size: 18px;
margin-left: 0;
margin-top: 0;
}
本文来自:小狐狸资源网
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。