7b2美化-列表文章上浮效果

在这里插入图片描述

代码放到你的style.css文件中

.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;
}
  • 7
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小徐博客

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值