效果展示

Riprov2小工具教学-专题展示插图

教程开始

1.将以下css加入主题的app.css


/*图标*/
//riprov2教学网原创,riprov2.com

[class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    /* opacity: .8; */
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    /* font-size: 120%; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

:before, [class^=icon-]:before {
    margin: 0;
}

.icon-play-1:before {
    content: '☛';
}


/*开始布局*/

.home-section-knowledge {
    background: #fff;
}

@media (min-width: 768px) {
    .home-section-knowledge {
        background: rgb(240, 244, 245);
        padding: 60px 0;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
    *zoom: 1;
}

@media (min-width: 768px) {
    .container {
        overflow: visible;
        max-width: 1330px;
    }
}

.part-hot-knowledge .part-title {
    font-size: 20px;
    color: #3c3c3c;
    margin: 0 -15px;
    font-weight: 400;
    background: #f5f9fc;
    padding: 15px;
}

@media (min-width: 768px) {
    .part-hot-knowledge .part-title {
        font-size: 30px;
        background: rgba(0,0,0,0);
        margin: 0 0 30px;
        padding: 0;
    }
}

/*第一部分*/

.part-hot-knowledge .part-content {
    margin: 0 0 30px;
}

@media (min-width: 768px) {
    .part-hot-knowledge .part-content {
        margin: 0;
    }
}

.articles_knowledge {
    margin: 0 -14px;
    overflow: hidden
}

.articles_knowledge .item_wrap {
    float: left;
    width: 100%;
    padding: 25px 14px 15px
}

@media (min-width:1024px) {
    .articles_knowledge .item_wrap {
        width: 50%;
        margin-bottom: 30px
    }
}

.articles_knowledge .item {
    background: #fff;
    padding: 0;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
    min-height: 145px
}

@media (min-width:768px) {
    .articles_knowledge .item {
        padding: 30px 40px
    }
}

.articles_knowledge .item:hover {
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,.05);
    box-shadow: 0 0 10px rgba(0,0,0,.05);
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px)
}

.articles_knowledge .item-main {
    position: relative;
    padding-right: 126px
}

@media (min-width:768px) {
    .articles_knowledge .item-main {
        height: 210px;
        padding-right: 246px;
        margin-bottom: 30px
    }
}

.articles_knowledge .item-main .item-thumb {
    position: absolute;
    right: 0;
    top: 0;
    width: 110px
}

@media (min-width:768px) {
    .articles_knowledge .item-main .item-thumb {
        top: -50px;
        width: 200px
    }
}

.articles_knowledge .item-main .item-thumb .item-href {
    display: block;
    -webkit-border-radius: 6px;
    border-radius: 6px
}

.articles_knowledge .item-main .item-thumb .thumb {
    padding-top: 130%;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-background-size: contain;
    background-size: contain
}

.articles_knowledge .item-main h2 {
    font-size: 14px;
    line-height: 1.5;
    height: 3em;
    overflow: hidden;
    margin-bottom: 5px;
    font-weight: 400;
    color: #2c3e50
}

@media (min-width:768px) {
    .articles_knowledge .item-main h2 {
        font-size: 18px;
        margin-bottom: 20px
    }
}

.articles_knowledge .item-main h2 a {
    color: #2c3e50
}

.articles_knowledge .item-main h2 a:hover {
    color: #3385ff
}

.articles_knowledge .item-main ul li {
    display: block;
    padding: 5px;
    overflow: hidden;
    font-size: 12px
}

@media (min-width:768px) {
    .articles_knowledge .item-main ul li {
        padding: 10px;
        font-size: 14px
    }
}

.articles_knowledge .item-main ul li:nth-child(odd) {
    background: hsla(0,0%,84.7%,.16)
}

.articles_knowledge .item-main ul li a {
    position: relative;
    display: block;
    height: 22px;
    line-height: 22px;
    overflow: hidden;
    color: #7c808a
}

.articles_knowledge .item-main ul li a:hover {
    color: #3385ff
}

.articles_knowledge h4 {
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
    color: #bdbdbd;
    overflow: hidden;
    height: 24px;
    display: none
}

@media (min-width:768px) {
    .articles_knowledge h4 {
        display: block
    }
}

.articles_knowledge h4 a {
    color: #bdbdbd
}

.articles_knowledge h4 a:hover {
    color: #3385ff
}

.articles_knowledge h4 span {
    float: left;
    margin-right: 40px
}

.articles_knowledge .avatar {
    width: 24px;
    height: 24px;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    padding: 0;
    display: inline-block;
    vertical-align: top
}

.thumb {
    display: block;
    width: 100%;
    height: 0;
    padding-top: 66.7%;
    background-position: 50%;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    background-color: rgba(0,0,0,0);
    position: relative;
    overflow: hidden;
}


/*按钮*/

.section-more {
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .section-more {
        margin-bottom: 0;
    }
}

.section-more .btn {
    display: block;
    text-align: center;
    background: #f7f7f7;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    color: #9e9e9e;
    height: 50px;
    line-height: 50px;
    padding: 0 50px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .section-more .btn {
        background-color: #3385ff;
        background-image: -webkit-gradient(linear,left top,right top,from(#006eff),to(#13adff));
        background-image: -webkit-linear-gradient(left,#006eff,#13adff);
        background-image: -o-linear-gradient(left,#006eff 0,#13adff 100%);
        background-image: linear-gradient(90deg,#006eff,#13adff);
        -webkit-box-shadow: 0 5px 10px 0 rgba(16,110,253,.3);
        box-shadow: 0 5px 10px 0 rgba(16,110,253,.3);
        -webkit-border-radius: 4px;
        border-radius: 4px;
        color: #fff;
        display: inline-block;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .section-more .btn:hover {
        background-image: -webkit-gradient(linear,right top,left top,from(#006eff),to(#13adff));
        background-image: -webkit-linear-gradient(right,#006eff,#13adff);
        background-image: -o-linear-gradient(right,#006eff 0,#13adff 100%);
        background-image: linear-gradient(270deg,#006eff,#13adff);
    }
}

.badge-primary-lighten {
    color: #536de6;
    background-color: rgba(83, 109, 230, .18)
}

.badge-primary-lighten[href]:focus, .badge-primary-lighten[href]:hover {
    color: #536de6;
    text-decoration: none;
    background-color: rgba(83, 109, 230, .4)
}

.badge-secondary-lighten {
    color: #6c757d;
    background-color: rgba(108, 117, 125, .18)
}

.badge-secondary-lighten[href]:focus, .badge-secondary-lighten[href]:hover {
    color: #6c757d;
    text-decoration: none;
    background-color: rgba(108, 117, 125, .4)
}

.badge-success-lighten {
    color: #10c469;
    background-color: rgba(16, 196, 105, .18)
}

.badge-success-lighten[href]:focus, .badge-success-lighten[href]:hover {
    color: #10c469;
    text-decoration: none;
    background-color: rgba(16, 196, 105, .4)
}

.badge-info-lighten {
    color: #35b8e0;
    background-color: rgba(53, 184, 224, .18)
}

.badge-info-lighten[href]:focus, .badge-info-lighten[href]:hover {
    color: #35b8e0;
    text-decoration: none;
    background-color: rgba(53, 184, 224, .4)
}

.badge-warning-lighten {
    color: #f9c851;
    background-color: rgba(249, 200, 81, .18)
}

.badge-warning-lighten[href]:focus, .badge-warning-lighten[href]:hover {
    color: #f9c851;
    text-decoration: none;
    background-color: rgba(249, 200, 81, .4)
}

.badge-danger-lighten {
    color: #ff5b5b;
    background-color: rgba(255, 91, 91, .18)
}

.badge-danger-lighten[href]:focus, .badge-danger-lighten[href]:hover {
    color: #ff5b5b;
    text-decoration: none;
    background-color: rgba(255, 91, 91, .4)
}

.badge-light-lighten {
    color: #eef2f7;
    background-color: rgba(238, 242, 247, .18)
}

.badge-light-lighten[href]:focus, .badge-light-lighten[href]:hover {
    color: #eef2f7;
    text-decoration: none;
    background-color: rgba(238, 242, 247, .4)
}

.badge-dark-lighten {
    color: #323a46;
    background-color: rgba(50, 58, 70, .18)
}

.badge-dark-lighten[href]:focus, .badge-dark-lighten[href]:hover {
    color: #323a46;
    text-decoration: none;
    background-color: rgba(50, 58, 70, .4)
}

2.将以下代码添加到/ripro-v2/inc/options下的widget-options.php

隐藏内容

此处内容需要权限查看

  • 普通用户购买价格:不可购买
  • 会员用户购买价格:7.92学习币8折
  • 赞助用户购买价格:免费推荐

发表评论

后才能评论