7b2主题美化 - 网址导航美化-初一小盏
7b2主题美化 – 网址导航美化
此内容为付费阅读,请付费后查看
1000积分
技术支持
一对一服务
安装调试
功能定制
付费阅读
已售 1

7b2主题美化 – 网址导航美化

图片[1]-7b2主题美化 – 网址导航美化-初一小盏

css代码

/*网址导航美化开始*/
.link-img{
    background:unset!important;
}
.post-type-archive-links.archive .site-main{
    margin-left:-30px;
    margin-right: -30px;
}
.link-title {
    padding-bottom: 28px;
}
 
.link-box .cat-box {
    font-size: 24px;
    padding-left: 18px;
    font-weight: 500;
}
 
.link-title h2::before {
    content: '';
    width: 8px;
    height: 8px;
    position: absolute;
    left: 0;
    top: 10px;
    border-color: var(--b2color);
    border-radius: 8px;
    border: 1px solid var(--b2color);
    background: none;
}
 
 
.link-in {
    overflow: hidden;
    border-radius:18px;
}
 
.link-title .link-more .cat-box {
    font-size: 16px;
}
 
 
.link-in h2 {
    font-size: 18px;
    font-weight: 500;
    line-height: 32px;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    transition: all .3s ease-in-out;
}
 
.link-desc {
    color: #95989e;
    margin: 12px 0 0;
    height: 36px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    transition: all .3s ease-in-out;
}
 
.link-in {
    padding: 20px;
}
 
.link-in::before {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    z-index: 1;
    height: 100%;
    top: 0;
    background-color: var(--b2color);
    /*background: url(images/links-bg.png);*/
    background-size: 100%;
    transition: all .3s ease-in-out;
}
 
.link-list li:hover .link-in::before {
    left: 0;
}
 
.link-list li:hover .link-in {
    border-color: var(--b2color);
 
}
 
.link-list li:hover .link-in h2,
.link-list li:hover .link-desc{
    color: #fff;
}
 
.link-in * {
    position: relative;
    z-index: 2;
}
 
.link-list:hover li a .link-in h2 {
    color: #000;
}
 
.link-lis:hovert li a .link-desc {
    color: rgba(0, 0, 0, .6);
}
 
 
/*Links Home*/
.links.links-home {
    padding: 0 30px;
}
 
.links.links-home .inner-wrapper-sticky {
    padding: 20px;
    min-height: 480px;
    background: #fff;
    border-radius: 4px;
}
 
.b2-tab-links {
    background: none;
    border-radius: 4px;
    margin-right: 16px;
}
 
.b2-tab-links .toc-list {
    text-align: left;
}
 
.links.links-home .link-box {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
 
.links.links-home .link-title {
    font-size: 21px;
    padding-bottom: 24px;
}
 
.links.links-home .link-box .cat-box {
    padding-left: 0;
}
 
.links.links-home .link-title h2::before {
    display: none;
}
 
 
.links.links-home .link-desc {
    font-size: 12px;
}
 
 
.links.links-home .b2-tab-links .toc-list {
    margin-right: 0;
}
 
 
.links.links-home .b2-tab-links .toc-list-item {
    margin: 0;
}
 
 
.links.links-home .b2-tab-links a.toc-link {
    height: 42px;
    width: 100%;
    padding: 0 24px;
    background: none;
    line-height: 42px;
}
 
.links.links-home .b2-tab-links a.toc-link:hover {
    background: #fff;
    color: var(--b2color);
    font-weight: 500;
}
 
 
.links.links-home .b2-tab-links .is-active-li a.toc-link {
    font-weight: 500;
}
 
.links.links-home .b2-tab-links .is-active-li a.toc-link {
    background-color: var(--b2color);
    color: #fff;
    border-radius:18px;
}
 
  
 
.links-home h1 {
    padding-top: 0;
    text-align: center;
    margin-bottom: 18px;
    margin-right:0px!important;
    font-size:22px!important;
}
 
.header-linkspage {
    background-position: center center;
    background-size: cover;
    margin-top: 0;
    border-radius: 4px;
    background-repeat: no-repeat;
    /*Links-page-search-background*/
    background-image: url(https://www.macfk.com/wp-content/uploads/2023/11/beijing.jpg);
    margin-bottom: 30px;
}
 
 
 
.links.links-home .link-join a {
    display: block;
    height: 40px;
    text-align: left;
    width: calc(100% - 2px);
    padding: 0 24px;
    font-size: 16px;
    line-height: 40px;
    border-radius: 18px;
}
 
.links.links-home .b2-tab-links a.toc-link {
    font-family: "b2font" !important;
    font-size: 16px;
    margin-right: 4px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}
 
 
 
.links-home .link-join {
    margin-right: 0;
}
 
.links-home .link-join i {
    margin-right: 6px;
    font-size: 16px;
}
 
.links.links-home .b2-tab-links a.toc-link:before {
    margin-right: 6px;
    vertical-align: middle;
}
 
/*菜单ICON设置*/
.links.links-home .b2-tab-links li:nth-child(1) a.toc-link:before {
    content: "\e86e";
}
 
.links.links-home .b2-tab-links li:nth-child(2) a.toc-link:before {
    content: "\e609";
}
 
.links.links-home .b2-tab-links li:nth-child(3) a.toc-link:before {
    content: "\e881";
}
 
 
.links.links-home .b2-tab-links li:nth-child(4) a.toc-link:before {
    content: "\e6d1";
}
 
 
.links.links-home .b2-tab-links li:nth-child(5) a.toc-link:before {
    content: "\e852";
}
 
 
.links.links-home .b2-tab-links li:nth-child(6) a.toc-link:before {
    content: "\e76c";
}
 
 
.links.links-home .b2-tab-links li:nth-child(7) a.toc-link:before {
    content: "\e8ea";
}
 
 
.links.links-home .b2-tab-links li:nth-child(8) a.toc-link:before {
    content: "\e609";
}
 
 
.links.links-home .search-module-form input,
.links.links-home .search-module-form {
    border-radius: 4px;
}
 
.links.links-home .search-module-desc {
    margin: 24px auto;
}
 
.links.links-home .search-module-key {
    display: flex;
    justify-content: center;
}
 
.links.links-home .search-key a {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    transform: all .3s;
    border-radius: 4px;
}
 
 
 
.links.links-home .search-module-title {
    font-size: 36px;
    font-family: "search-font";
}
 
.links.links-home .links-title {
    margin: 0 0 20px;
    font-size: 22px;
    /*font-family: "search-font";*/
}
 
.links.links-home .search-key a:hover {
    background: rgba(255, 255, 255, .65);
    color: var(--b2color) !important;
}
 
@media screen and (max-width: 768px) {
    .link-desc {
        margin: 6px 0;
        font-size: 12px;
        height: 40px;
    }
}
/*网址导航美化结束*/

核心代码

© 版权声明
THE END
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容