CSS美化
以下代码填写路径:后台-->外观-->设置外观-->开发者设置-->自定义CSS
首页文章移动上浮首页文章移动上浮
点击查看
/*首页文章移动上浮*/
.blog-post .panel-small:not(article),
.blog-post .panel:not(article) {
transition: all 0.3s;
}
.blog-post .panel-small:not(article):hover,
.blog-post .panel:not(article):hover {
transform: translateY(-10px);
box-shadow: 0 8px 10px rgba(73, 90, 47, 0.47);
}
首页文章版式圆角化
点击查看
/*首页文章版式圆角化*/
.panel{
border: none;
border-radius: 15px;
}
.panel-small{
border: none;
border-radius: 15px;
}
.item-thumb{
border-radius: 15px;
}
首页文章图片获取焦点放大
点击查看
/*首页文章图片获取焦点放大*/
.item-thumb{
cursor: pointer;
transition: all 0.6s;
}
.item-thumb:hover{
transform: scale(1.05);
}
.item-thumb-small{
cursor: pointer;
transition: all 0.6s;
}
.item-thumb-small:hover{
transform: scale(1.05);
}
首页头像转动并放大
点击查看
/*首页头像自动旋转*/
.thumb-lg{
width:130px;
}
.avatar{
-webkit-transition: 0.4s;
-webkit-transition: -webkit-transform 0.4s ease-out;
transition: transform 0.4s ease-out;
-moz-transition: -moz-transform 0.4s ease-out;
}
.avatar:hover{
transform: rotateZ(360deg);
-webkit-transform: rotateZ(360deg);
-moz-transform: rotateZ(360deg);
}
#aside-user span.avatar{
animation-timing-function:cubic-bezier(0,0,.07,1)!important;
border:0 solid
}
#aside-user span.avatar:hover{
transform:rotate(360deg) scale(1.2);
border-width:5px;
animation:avatar .5s
}
首页头像放大并自动旋转
点击查看
/*首页头像放大并自动旋转*/
.thumb-lg{
width:130px;
}
@-webkit-keyframes rotation{
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
.img-full{
-webkit-transform: rotate(360deg);
animation: rotation 3s linear infinite;
-moz-animation: rotation 3s linear infinite;
-webkit-animation: rotation 3s linear infinite;
-o-animation: rotation 3s linear infinite;
}
点击查看
一些文字内容
文章标题居中
点击查看
/*文章标题居中*/
.panel h2{
text-align: center;
}
.post-item-foot-icon{
text-align: center;
}
首页文章版式阴影化(颜色为浅蓝色,可以自行修改)
点击查看
/*panel阴影*/
.panel{
box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
-moz-box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
}
.panel:hover{
box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
-moz-box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
}
.panel-small{
box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
-moz-box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
}
.panel-small:hover{
box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
-moz-box-shadow: 1px 1px 5px 5px rgba(100,149,237, 0.35);
}
/*四周盒子阴影*/
.app.container {
box-shadow: 0 0 30px rgba(100,149,237, 0.35);
}
打赏图标跳动
点击查看
/*打赏图标跳动*/
.btn-pay {
animation: star 0.5s ease-in-out infinite alternate;
}
@keyframes star {
from {
transform: scale(1);
}
to {
transform: scale(1.1);
}
}
自定义滚动条滑块
[collapse title="点击查看" status="false"]
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar{
width: 3px;
height: 16px;
background-color: rgba(255,255,255,0);
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: rgba(255,255,255,0);
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #555;
}
复制提醒怎么做到的呀