| @@ -1,3 +1,15 @@ | |||
| ::-webkit-scrollbar { | |||
| width:6px; | |||
| height:6px | |||
| } | |||
| ::-webkit-scrollbar-track { | |||
| background:#f5f5f5; | |||
| border-radius:.2rem | |||
| } | |||
| ::-webkit-scrollbar-thumb { | |||
| background:#dee2e6; | |||
| border-radius:.2rem | |||
| } | |||
| body { | |||
| line-height:1.6; | |||
| letter-spacing:.6px; | |||
| @@ -63,6 +75,7 @@ input[type=file] { | |||
| } | |||
| .item-article li { | |||
| margin-bottom:10px; | |||
| line-height:18px; | |||
| overflow:hidden; | |||
| text-overflow:ellipsis; | |||
| white-space:nowrap | |||
| @@ -181,7 +194,7 @@ input[type=file] { | |||
| text-overflow:ellipsis; | |||
| white-space:nowrap | |||
| } | |||
| .article-hot-box i,.article-hot-box span { | |||
| .article-hot-box i,.article-hot-box span,.article-meta span,.item-theme-box i,.item-theme-box span,.list-article-body i,.list-article-body span { | |||
| color:#999 | |||
| } | |||
| .article-main h1,.article-main h2,.article-main h3,.article-main h4,.article-main h5,.article-main h6 { | |||
| @@ -191,10 +204,7 @@ input[type=file] { | |||
| .article-meta span { | |||
| margin-right:1rem | |||
| } | |||
| .article-meta span,.item-theme-box i,.item-theme-box span,.list-article-body i,.list-article-body span { | |||
| color:#999 | |||
| } | |||
| .digg .comment-container { | |||
| .likes .comment-container { | |||
| width:200px; | |||
| padding:10px 20px; | |||
| border:1px solid #f5f5f5; | |||
| @@ -202,44 +212,40 @@ input[type=file] { | |||
| margin:0 6px; | |||
| cursor:pointer | |||
| } | |||
| .digg .comment-container:hover { | |||
| .likes .comment-container:hover { | |||
| background:#fffce0 | |||
| } | |||
| .digg .comment-top { | |||
| .likes .comment-top { | |||
| display:flex; | |||
| flex-direction:row; | |||
| align-items:center; | |||
| margin-bottom:10px | |||
| } | |||
| .digg .comment-top-text { | |||
| .likes .comment-top-text { | |||
| margin-left:10px; | |||
| color:#497cf6 | |||
| } | |||
| .digg .comment-top-text-danger { | |||
| .likes .comment-top-text-danger { | |||
| margin-left:10px; | |||
| color:#d21d35 | |||
| } | |||
| .digg .text-like { | |||
| .likes .text-like { | |||
| color:#497cf6 | |||
| } | |||
| .digg .text-unlike { | |||
| .likes .text-unlike { | |||
| color:#d21d35 | |||
| } | |||
| .digg .comment-top p { | |||
| .likes .comment-top p { | |||
| margin-bottom:unset | |||
| } | |||
| .prenext .pagination-previous,.pagination-next { | |||
| padding:6px 12px; | |||
| padding:10px 20px; | |||
| font-size:14px; | |||
| color:#a6a5a6; | |||
| border-radius:30px; | |||
| border:1px solid #f0f0f0; | |||
| cursor:pointer | |||
| } | |||
| .prenext .pagination-previous:hover,.pagination-next:hover { | |||
| color:#c2e5d0; | |||
| background:#1eac5a | |||
| } | |||
| .actbox { | |||
| float:right; | |||
| padding:10px | |||
| @@ -282,6 +288,9 @@ input[type=file] { | |||
| height:36px; | |||
| line-height:36px | |||
| } | |||
| .navbar-dark .navbar-nav .nav-link { | |||
| color:#eee | |||
| } | |||
| .logo img { | |||
| height:40px | |||
| } | |||
| @@ -318,7 +327,7 @@ input[type=file] { | |||
| } | |||
| .bannr-img { | |||
| width:100%; | |||
| height:375px | |||
| height:345px | |||
| } | |||
| .user-img-md { | |||
| width:70px; | |||
| @@ -364,6 +373,7 @@ input[type=file] { | |||
| height:36px | |||
| } | |||
| .fa { | |||
| font-size:14px; | |||
| color:inherit; | |||
| cursor:pointer | |||
| } | |||
| @@ -694,15 +694,14 @@ class SearchView | |||
| } | |||
| } | |||
| $plist = ""; | |||
| $plist .= "<form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform"; | |||
| $plist .= "<ul class='pagination justify-content-center pt-3'>"; | |||
| $plist .= preg_match('/info/i', $listitem)? $infos : ""; | |||
| $plist .= "<form name='pagelist' action='".$this->GetCurUrl()."' class='d-flex'>$hidenform"; | |||
| $plist .= preg_match('/info/i', $listitem)? $infos : ""; | |||
| $plist .= preg_match('/index/i', $listitem)? $indexpage : ""; | |||
| $plist .= preg_match('/pre/i', $listitem)? $prepage : ""; | |||
| $plist .= preg_match('/pageno/i', $listitem)? $listdd : ""; | |||
| $plist .= preg_match('/next/i', $listitem)? $nextpage : ""; | |||
| $plist .= preg_match('/end/i', $listitem)? $endpage : ""; | |||
| $plist .= "</ul></form>\r\n"; | |||
| $plist .= "</form>\r\n"; | |||
| return $plist; | |||
| } | |||
| /** | |||
| @@ -11,7 +11,7 @@ | |||
| <li class="nav-item"><a href="/" class="nav-link {dede:field name='typeid' runphp='yes'}(@me=='')?@me='active':@me='';{/dede:field}">首页</a></li> | |||
| {dede:channelartlist typeid='top' row='10'} | |||
| <li class="nav-item {dede:channel type='son' noself='yes' row='1'}dropdown{/dede:channel}"> | |||
| <a class="nav-link {dede:channel type='son' noself='yes' row='1'}dropdown-toggle{/dede:channel}" href="{dede:field.typeurl/}" {dede:channel type='son' noself='yes' row='1'}id="dropdown-auth" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"{/dede:channel}>{dede:field.typename/}</a> | |||
| <a class="nav-link {dede:channel type='son' noself='yes' row='1'}dropdown-toggle{/dede:channel}" href="{dede:field.typeurl/}" {dede:channel type='son' noself='yes' row='1'}data-toggle="dropdown"{/dede:channel}>{dede:field.typename/}</a> | |||
| {dede:channel type='son' noself='yes' row='1'}<div class="dropdown-menu" aria-labelledby="dropdown-auth">{/dede:channel}{dede:channel type='son'} | |||
| <a href="[field:typelink/]" class="dropdown-item">[field:typename/]</a>{/dede:channel} | |||
| {dede:channel type='son' noself='yes' row='1'}</div>{/dede:channel} | |||
| @@ -38,7 +38,7 @@ | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="col-md-3 m-pb-2">{dede:include comment='推荐文档' filename='widget_recommend.htm'/}</div> | |||
| <div class="col-md-3">{dede:include comment='推荐文档' filename='widget_recommend.htm'/}</div> | |||
| </div> | |||
| </div> | |||
| <div class="container py-3"> | |||
| @@ -50,7 +50,7 @@ | |||
| </div>{dede:arclist row='3' orderby='id'} | |||
| <div class="col-md-4"> | |||
| <div class="item-theme bg-white shadow-sm rounded"> | |||
| <div class="item-theme-img"><a href="[field:arcurl/]" target="_blank"><img src="[field:picname/]" alt="[field:title/]" title="[field:title/]"></a></div> | |||
| <div class="item-theme-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
| <div class="item-theme-box"> | |||
| <h4 class="mb-3"><a href="[field:arcurl/]" target="_blank">[field:flag runphp='yes']if (stristr(@me,"h")) @me="<span class='btn btn-success btn-sm mr-2'>头条</span>";else if(stristr(@me,"c")) @me="<span class='btn btn-success btn-sm mr-2'>推荐</span>";else @me="";[/field:flag][field:title/]</a></h4> | |||
| <div class="row"> | |||
| @@ -77,7 +77,7 @@ | |||
| </div>{dede:arclist row='3' orderby='id'} | |||
| <div class="col-md-4"> | |||
| <div class="item-news bg-white shadow-sm rounded"> | |||
| <div class="item-news-img"><a href="[field:arcurl/]" target="_blank"><img src="[field:picname/]" alt="[field:title/]" title="[field:title/]"></a></div> | |||
| <div class="item-news-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
| <h4><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h4> | |||
| <div class="mb-3"> | |||
| <img src="[field:mid function='face(@me)'/]" class="user-img-xs mr-1"> | |||
| @@ -91,8 +91,9 @@ | |||
| </div> | |||
| </div> | |||
| <div class="container py-3"> | |||
| <div class="row">{dede:channelartlist typeid='3,3'} | |||
| <div class="col-md-6 m-pb-2"> | |||
| <div class="row"> | |||
| {dede:channelartlist typeid='3,3'} | |||
| <div class="col-md-4 m-pb-2"> | |||
| <div class="item-article bg-white shadow-sm rounded p-3"> | |||
| <h2 class="mb-3">{dede:field.typename/}</h2> | |||
| <ul>{dede:arclist row='10' titlelen='120' orderby='id'} | |||
| @@ -100,7 +101,15 @@ | |||
| </ul> | |||
| </div> | |||
| </div>{/dede:channelartlist}{dede:channelartlist typeid='4,4'} | |||
| <div class="col-md-6"> | |||
| <div class="col-md-4"> | |||
| <div class="item-article bg-white shadow-sm rounded p-3"> | |||
| <h2 class="mb-3">{dede:field.typename/}</h2> | |||
| <ul>{dede:arclist row='10' titlelen='120' orderby='id'} | |||
| <li>[field:global.autoindex/].<a title="[field:fulltitle/]" href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist} | |||
| </ul> | |||
| </div> | |||
| </div>{/dede:channelartlist}{dede:channelartlist typeid='5,5'} | |||
| <div class="col-md-4"> | |||
| <div class="item-article bg-white shadow-sm rounded p-3"> | |||
| <h2 class="mb-3">{dede:field.typename/}</h2> | |||
| <ul>{dede:arclist row='10' titlelen='120' orderby='id'} | |||
| @@ -108,7 +117,6 @@ | |||
| </ul> | |||
| </div> | |||
| </div>{/dede:channelartlist} | |||
| </div> | |||
| </div> | |||
| {dede:include filename='foot.htm'/} | |||
| @@ -36,7 +36,7 @@ | |||
| </div>{dede:arclist row='3' orderby='rand'} | |||
| <div class="col-md-4"> | |||
| <div class="item-news bg-white shadow-sm rounded"> | |||
| <div class="item-news-img"><a href="[field:arcurl/]" target="_blank"><img src="[field:picname/]" alt="[field:title/]" title="[field:title/]"></a></div> | |||
| <div class="item-news-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
| <h4><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h4> | |||
| <div class="mb-3"> | |||
| <img src="[field:mid function='face(@me)'/]" class="user-img-xs mr-1"> | |||
| @@ -36,7 +36,7 @@ | |||
| </div>{dede:arclist row='3' orderby='rand'} | |||
| <div class="col-md-4"> | |||
| <div class="item-news bg-white shadow-sm rounded"> | |||
| <div class="item-news-img"><a href="[field:arcurl/]" target="_blank"><img src="[field:picname/]" alt="[field:title/]" title="[field:title/]"></a></div> | |||
| <div class="item-news-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
| <h4><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h4> | |||
| <div class="mb-3"> | |||
| <img src="[field:mid function='face(@me)'/]" class="user-img-xs mr-1"> | |||
| @@ -33,7 +33,7 @@ | |||
| <div class="row">{dede:list pagesize='10'} | |||
| <div class="col-md-6 mb-3"> | |||
| <div class="list-article rounded mb-3"> | |||
| [field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<div class='list-article-img'><a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a></div>");[/field:array] | |||
| <div class="list-article-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
| <div class="list-article-body bg-white shadow-sm p-3"> | |||
| <h2 class="mb-3"><a href="[field:arcurl/]">[field:title/]</a></h2> | |||
| <div class="mb-3"> | |||
| @@ -33,7 +33,7 @@ | |||
| <div class="row">{dede:list pagesize='10'} | |||
| <div class="col-md-6 mb-3"> | |||
| <div class="list-article rounded mb-3"> | |||
| [field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<div class='list-article-img'><a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a></div>");[/field:array] | |||
| <div class="list-article-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
| <div class="list-article-body bg-white shadow-sm p-3"> | |||
| <h2 class="mb-3"><a href="[field:arcurl/]">[field:title/]</a></h2> | |||
| <div class="mb-3"> | |||
| @@ -1,5 +1,5 @@ | |||
| {dede:comment text='顶踩模块'/} | |||
| <div class="row justify-content-center digg py-3"> | |||
| <div class="likes row justify-content-center py-3"> | |||
| <div class="comment-container" onclick="javascript:PostDigg('good',{dede:field.id/})"> | |||
| <div class="comment-top"> | |||
| <i class="fa fa-thumbs-o-up"></i> | |||
| @@ -1,6 +1,6 @@ | |||
| <div class="item-article bg-white shadow-sm rounded p-3"> | |||
| <h2 class="mb-3">热门头条</h2> | |||
| <ul>{dede:arclist row='10' titlelen='120' orderby='rand'} | |||
| <li>[field:global.autoindex/].<a title="[field:fulltitle/]" href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist} | |||
| <li><a title="[field:fulltitle/]" href="[field:arcurl/]">[field:global.autoindex/].[field:title/]</a></li>{/dede:arclist} | |||
| </ul> | |||
| </div> | |||
| @@ -1,6 +1,6 @@ | |||
| <div class="item-article bg-white shadow-sm rounded p-3"> | |||
| <h2 class="mb-3">推荐栏目</h2> | |||
| <ul>{dede:channelartlist row='10' typeid='top'} | |||
| <li><a href="{dede:field.typeurl/}">{dede:field.typename/}</a></li>{/dede:channelartlist} | |||
| <li><a href="{dede:field.typeurl/}"><i class="fa fa-navicon mr-1"></i>{dede:field.typename/}</a></li>{/dede:channelartlist} | |||
| </ul> | |||
| </div> | |||