mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-04 04:49:33 +08:00
文章
This commit is contained in:
parent
8fa194ed06
commit
fda8620b0d
@ -2,6 +2,8 @@
|
||||
|
||||
namespace Home\Controller;
|
||||
|
||||
use Service\ArticleService;
|
||||
|
||||
/**
|
||||
* 文章详情
|
||||
* @author Devil
|
||||
@ -33,36 +35,33 @@ class ArticleController extends CommonController
|
||||
*/
|
||||
public function Index()
|
||||
{
|
||||
$m = M('Article');
|
||||
$article = $m->where(array('id'=>I('id'), 'is_enable'=>1))->find();
|
||||
if(!empty($article['content']))
|
||||
// 获取文章
|
||||
$id = intval(I('id'));
|
||||
$params = [
|
||||
'where' => ['a.is_enable'=>1, 'a.id'=>$id],
|
||||
'field' => 'a.id,a.title,a.title_color,a.content,a.access_count,a.article_category_id,a.add_time',
|
||||
'm' => 0,
|
||||
'n' => 1,
|
||||
];
|
||||
$article = ArticleService::ArticleList($params);
|
||||
if(!empty($article[0]))
|
||||
{
|
||||
// 访问统计
|
||||
$m->where(array('id'=>I('id')))->setInc('access_count');
|
||||
ArticleService::ArticleAccessCountInc(['id'=>$id]);
|
||||
|
||||
// 是否外部链接
|
||||
if(!empty($article['jump_url']))
|
||||
if(!empty($article[0]['jump_url']))
|
||||
{
|
||||
redirect($article['jump_url']);
|
||||
redirect($article[0]['jump_url']);
|
||||
}
|
||||
|
||||
// 静态资源地址处理
|
||||
$article['content'] = ContentStaticReplace($article['content'], 'get');
|
||||
|
||||
// 时间
|
||||
$article['add_time'] = date('Y/m/d', $article['add_time']);
|
||||
|
||||
$this->assign('article', $article);
|
||||
|
||||
// 布局+模块列表
|
||||
$this->assign('data', $this->GetLayoutList('detail'));
|
||||
|
||||
// 友情链接
|
||||
$this->assign('link', LayoutLink('detail', 1));
|
||||
|
||||
// 浏览器标题
|
||||
$this->assign('home_seo_site_title', $this->GetBrowserSeoTitle($article['title'], MyC('home_seo_article_browser')));
|
||||
$this->assign('home_seo_site_title', $this->GetBrowserSeoTitle($article[0]['title'], 1));
|
||||
|
||||
// 获取分类和文字
|
||||
$this->assign('category_list', ArticleService::ArticleCategoryList());
|
||||
|
||||
$this->assign('article', $article[0]);
|
||||
$this->display('Index');
|
||||
} else {
|
||||
$this->assign('msg', L('article_on_exist_error'));
|
||||
|
@ -46,7 +46,7 @@ class IndexController extends CommonController
|
||||
|
||||
// 新闻
|
||||
$params = [
|
||||
'where' => ['a.is_enable'=>1, 'is_home_recommended'=>1],
|
||||
'where' => ['a.is_enable'=>1, 'a.is_home_recommended'=>1],
|
||||
'field' => 'a.id,a.title,a.title_color,ac.name AS category_name',
|
||||
'm' => 0,
|
||||
'n' => 9,
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
return array(
|
||||
'article_add_time_text' => '发布日期',
|
||||
'article_add_time_text' => '发布时间',
|
||||
'article_access_count_text' => '浏览次数',
|
||||
'article_on_exist_error' => '文章不存在或已删除',
|
||||
);
|
||||
|
@ -1,69 +1,67 @@
|
||||
<include file="Public/Header" />
|
||||
|
||||
<!-- header nav start -->
|
||||
<!-- header top nav -->
|
||||
<include file="Public/HeaderTopNav" />
|
||||
|
||||
<!-- search -->
|
||||
<include file="Public/NavSearch" />
|
||||
|
||||
<!-- header nav -->
|
||||
<include file="Public/HeaderNav" />
|
||||
<!-- header nav end -->
|
||||
|
||||
<!-- content start -->
|
||||
<div class="am-g my-content" <if condition="!empty($max_width_style)">style="{{$max_width_style}}"</if>>
|
||||
<!-- left start -->
|
||||
<div class="am-u-md-8 article-left m-t-20 p-r-0">
|
||||
<article class="article-main o-h">
|
||||
<h3 class="am-article-title article-title">{{$article.title}}</h3>
|
||||
<h4 class="am-article-meta article-meta">
|
||||
<span>{{:L('article_add_time_text')}}:{{$article.add_time}}</span>
|
||||
<span class="m-l-10">{{:L('article_access_count_text')}}:{{$article.access_count}}</span>
|
||||
</h4>
|
||||
<div class="article-content">{{$article.content}}</div>
|
||||
</article>
|
||||
</div>
|
||||
<!-- left end -->
|
||||
<!-- goods category -->
|
||||
<include file="Public/GoodsCategory" />
|
||||
|
||||
<!-- right start -->
|
||||
<div class="am-u-md-4 article-right">
|
||||
<!-- layout module start -->
|
||||
<if condition="!empty($data)">
|
||||
<foreach name="data" item="v">
|
||||
<switch name="v.value">
|
||||
<case value="100">
|
||||
<if condition="!empty($v['item'][0])">
|
||||
<div class="layout-{{$v.value}}">{{$v['item'][0]}}</div>
|
||||
</if>
|
||||
</case>
|
||||
<case value="122|123|124|236">
|
||||
<php>list($t1, $t2, $t3) = str_split($v['value']);</php>
|
||||
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-{{$t1}} am-avg-md-{{$t2}} am-avg-lg-{{$t3}} am-gallery-overlay small-banner am-no-layout m-b-5 layout-100-{{$v.value}}" data-am-gallery="{}">
|
||||
<if condition="!empty($v['item'])">
|
||||
<foreach name="v.item" item="vs">
|
||||
<li class="layout-item">
|
||||
<div class="layout-100-{{$v.value}}-item">{{$vs}}</div>
|
||||
</li>
|
||||
</foreach>
|
||||
</if>
|
||||
</ul>
|
||||
</case>
|
||||
<case value="84|48|633|363|336">
|
||||
<php>$t_all = str_split($v['value']);</php>
|
||||
<div class="layout-100-{{$v.value}} o-h">
|
||||
<if condition="!empty($v['item'])">
|
||||
<foreach name="v.item" key="ks" item="vs">
|
||||
<div class="am-u-md-{{$t_all[$ks]}}">{{$vs}}</div>
|
||||
</foreach>
|
||||
</if>
|
||||
</div>
|
||||
</case>
|
||||
</switch>
|
||||
</foreach>
|
||||
</if>
|
||||
<!-- layout module end -->
|
||||
<!-- content -->
|
||||
<div class="am-container article-content">
|
||||
<!-- 右侧内容 -->
|
||||
<div class="am-u-md-10 am-u-md-push-2 article-right">
|
||||
<div class="am-u-sm-12 article-header">
|
||||
<h1 class="am-article-title">{{$article.title}}</h1>
|
||||
<p class="am-article-meta">
|
||||
<span>{{:L('article_add_time_text')}}:{{$article.add_time_time}}</span>
|
||||
<span>{{:L('article_access_count_text')}}:{{$article.access_count}}</span>
|
||||
</p>
|
||||
<hr class="am-article-divider" />
|
||||
</div>
|
||||
<div class="am-article">{{$article.content}}</div>
|
||||
</div>
|
||||
<!-- right end -->
|
||||
|
||||
<!-- 右侧内容 -->
|
||||
<div class="am-u-md-2 am-u-md-pull-10 article-sidebar">
|
||||
<div class="am-offcanvas" id="article-nav-sidebar">
|
||||
<div class="am-offcanvas-bar am-offcanvas-bar-overlay">
|
||||
<notempty name="category_list">
|
||||
<section data-am-widget="accordion" class="am-accordion am-accordion-gapped" data-am-accordion='{}'>
|
||||
<foreach name="category_list" item="v">
|
||||
<dl class="am-accordion-item <if condition="$article['article_category_id'] eq $v['id']">am-active</if>">
|
||||
<dt class="am-accordion-title">
|
||||
<li class="am-nav-header">{{$v.name}}</li>
|
||||
</dt>
|
||||
<dd class="am-accordion-bd am-collapse <if condition="$article['article_category_id'] eq $v['id']">am-in</if>">
|
||||
<div class="am-accordion-content">
|
||||
<notempty name="v.items">
|
||||
<ul class="am-nav">
|
||||
<foreach name="v.items" item="vs">
|
||||
<li>
|
||||
<a href="{{:U('Home/Article/Index', ['id'=>$vs['id']])}}" <notempty name="vs.title_color">style="color:{{$vs.title_color}};"</notempty> >{{$vs.title}}</a>
|
||||
</li>
|
||||
</foreach>
|
||||
</ul>
|
||||
</notempty>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</foreach>
|
||||
</section>
|
||||
</notempty>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="javascript:;" class="am-icon-btn am-icon-th-list am-show-sm-only article-nav-button" data-am-offcanvas="{target: '#article-nav-sidebar'}">
|
||||
<span class="am-sr-only">侧栏导航</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- content end -->
|
||||
|
||||
<!-- layuot common module start -->
|
||||
<include file="Public/CommonModule" />
|
||||
<!-- layuot common module end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
|
@ -60,7 +60,7 @@
|
||||
<div class="marqueen">
|
||||
<div class="mod-vip">
|
||||
<div class="m-baseinfo">
|
||||
<a href="<if condition="!empty($user)">{{:u('Home/User/Index')}}<else />javascript:;</if>">
|
||||
<a href="<if condition="!empty($user)">{{:u('Home/User/Index')}}<else />javascript:;</if>" target="_blank">
|
||||
<img src="<if condition="!empty($user['avatar'])">{{$user.avatar}}<else />__PUBLIC__/Home/{{$default_theme}}/Images/default-user-avatar.jpg</if>" class="user-avatar" />
|
||||
</a>
|
||||
<em>
|
||||
@ -91,9 +91,9 @@
|
||||
<notempty name="user_order_status">
|
||||
<foreach name="user_order_status" item="v">
|
||||
<if condition="in_array($v['status'], [1,2,3])">
|
||||
<a href="{{:U('Home/Order/Index', ['is_more'=>1, 'status'=>$v['status']])}}"><strong>{{$v.count}}</strong>{{$v.name}}</a>
|
||||
<a href="{{:U('Home/Order/Index', ['is_more'=>1, 'status'=>$v['status']])}}" target="_blank"><strong>{{$v.count}}</strong>{{$v.name}}</a>
|
||||
<elseif condition="in_array($v['status'], [100])" />
|
||||
<a href="{{:U('Home/Order/Index', ['is_more'=>1, 'is_comments'=>0, 'status'=>4])}}"><strong>{{$v.count}}</strong>{{$v.name}}</a>
|
||||
<a href="{{:U('Home/Order/Index', ['is_more'=>1, 'is_comments'=>0, 'status'=>4])}}" target="_blank"><strong>{{$v.count}}</strong>{{$v.name}}</a>
|
||||
</if>
|
||||
</foreach>
|
||||
</notempty>
|
||||
@ -106,7 +106,7 @@
|
||||
<if condition="!empty($article_list)">
|
||||
<foreach name="article_list" item="article">
|
||||
<li>
|
||||
<a target="_blank" href="#">
|
||||
<a href="{{:U('Home/Article/Index', ['id'=>$article['id']])}}" target="_blank">
|
||||
<span>[{{$article.category_name}}]</span>
|
||||
<span <notempty name="article.title_color">style="color:{{$article.title_color}};"</notempty> >{{$article.title}}</span>
|
||||
</a>
|
||||
@ -135,7 +135,7 @@
|
||||
<if condition="!empty($category['items'])">
|
||||
<foreach name="category.items" key="keys" item="categorys">
|
||||
<if condition="$key lt 6 and $keys eq 0 and isset($categorys['is_home_recommended']) and $categorys['is_home_recommended'] eq 1">
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$categorys['id']])}}">{{$categorys.name}}</a>
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$categorys['id']])}}" target="_blank">{{$categorys.name}}</a>
|
||||
</if>
|
||||
</foreach>
|
||||
</if>
|
||||
@ -143,7 +143,7 @@
|
||||
</if>
|
||||
</div>
|
||||
<span class="more">
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$floor['id']])}}">更多<i class="am-icon-angle-right" style="padding-left:10px ;" ></i></a>
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$floor['id']])}}" target="_blank">更多 <i class="am-icon-angle-right"></i></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -154,7 +154,7 @@
|
||||
<if condition="!empty($floor['items'])">
|
||||
<foreach name="floor.items" item="category">
|
||||
<if condition="$key lt 6 and isset($category['is_home_recommended']) and $category['is_home_recommended'] eq 1">
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$category['id']])}}" class="outer">
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$category['id']])}}" class="outer" target="_blank">
|
||||
<span class="inner">
|
||||
<b class="text">{{:mb_substr($category['name'], 0, 4, 'utf-8')}}</b>
|
||||
</span>
|
||||
@ -163,7 +163,7 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</div>
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$floor['id']])}}">
|
||||
<a href="{{:U('Home/Search/Index', ['category_id'=>$floor['id']])}}" target="_blank">
|
||||
<div class="outer-con">
|
||||
<div class="describe">{{$floor.describe}}</div>
|
||||
</div>
|
||||
@ -179,11 +179,11 @@
|
||||
<div class="goods-items <if condition="in_array($key, [0,1])">am-u-sm-7 am-u-md-4 text-two<else />am-u-sm-6 am-u-md-2 text-three</if> <if condition="in_array($key, [0,3])">sug</if> <if condition="in_array($key, [2,5])">big</if> <if condition="$key eq 5">last</if>">
|
||||
<div class="outer-con">
|
||||
<div class="goods-title ellipsis">
|
||||
<a href="{{$goods['goods_url']}}" <notempty name="goods.title_color">style="color:{{$goods.title_color}};"</notempty>>{{$goods.title}}</a>
|
||||
<a href="{{$goods['goods_url']}}" target="_blank" <notempty name="goods.title_color">style="color:{{$goods.title_color}};"</notempty>>{{$goods.title}}</a>
|
||||
</div>
|
||||
<div class="price">¥{{$goods.price}}</div>
|
||||
</div>
|
||||
<a href="{{$goods['goods_url']}}">
|
||||
<a href="{{$goods['goods_url']}}" target="_blank">
|
||||
<img src="{{$goods.home_recommended_images}}" />
|
||||
</a>
|
||||
</div>
|
||||
|
@ -16,68 +16,68 @@
|
||||
<div class="am-container search-content" data-category-id="{{$params.category_id}}">
|
||||
<div class="search-list">
|
||||
<div class="am-u-sm-12 am-u-md-12">
|
||||
<div class="theme-popover">
|
||||
<ul class="select">
|
||||
<p class="title-tips">
|
||||
<span>筛选出</span>
|
||||
<strong>...</strong>
|
||||
<span>条数据</span>
|
||||
</p>
|
||||
<li class="select-result">
|
||||
<dl>
|
||||
<dt>已选</dt>
|
||||
<dd class="select-no"></dd>
|
||||
<p class="screening-remove-submit">清除</p>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="select-list">
|
||||
<dl id="screening-brand-dl">
|
||||
<dt class="am-badge am-round">品牌</dt>
|
||||
<div class="dd-conent" data-selected-tag="screening-brand">
|
||||
<dd class="select-all selected"><a href="javascript:;">不限</a></dd>
|
||||
<if condition="!empty($brand_list)">
|
||||
<foreach name="brand_list" item="brand">
|
||||
<dd><a href="javascript:;" data-value="{{$brand.id}}" data-field="brand_id">{{$brand.name}}</a></dd>
|
||||
</foreach>
|
||||
<else />
|
||||
<span class="not-tips">没有相关品牌</span>
|
||||
</if>
|
||||
</div>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="select-list">
|
||||
<dl id="screening-category-dl">
|
||||
<dt class="am-badge am-round">分类</dt>
|
||||
<div class="dd-conent" data-selected-tag="screening-category">
|
||||
<dd class="select-all selected"><a href="javascript:;">不限</a></dd>
|
||||
<if condition="!empty($category_list)">
|
||||
<foreach name="category_list" item="category">
|
||||
<dd><a href="javascript:;" data-value="{{$category.id}}" data-field="category_id">{{$category.name}}</a></dd>
|
||||
</foreach>
|
||||
<else />
|
||||
<span class="not-tips">没有相关分类</span>
|
||||
</if>
|
||||
</div>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="select-list">
|
||||
<dl id="screening-price-dl">
|
||||
<dt class="am-badge am-round">价格</dt>
|
||||
<div class="dd-conent" data-selected-tag="screening-price">
|
||||
<dd class="select-all selected"><a href="javascript:;">不限</a></dd>
|
||||
<if condition="!empty($screening_price_list)">
|
||||
<foreach name="screening_price_list" item="screening_price">
|
||||
<dd><a href="javascript:;" data-value="{{$screening_price.id}}" data-field="screening_price_id">{{$screening_price.name}}</a></dd>
|
||||
</foreach>
|
||||
<else />
|
||||
<span class="not-tips">没有相关价格</span>
|
||||
</if>
|
||||
</div>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="theme-popover">
|
||||
<ul class="select">
|
||||
<p class="title-tips">
|
||||
<span>筛选出</span>
|
||||
<strong>...</strong>
|
||||
<span>条数据</span>
|
||||
</p>
|
||||
<li class="select-result">
|
||||
<dl>
|
||||
<dt>已选</dt>
|
||||
<dd class="select-no"></dd>
|
||||
<p class="screening-remove-submit">清除</p>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="select-list">
|
||||
<dl id="screening-brand-dl">
|
||||
<dt class="am-badge am-round">品牌</dt>
|
||||
<div class="dd-conent" data-selected-tag="screening-brand">
|
||||
<dd class="select-all selected"><a href="javascript:;">不限</a></dd>
|
||||
<if condition="!empty($brand_list)">
|
||||
<foreach name="brand_list" item="brand">
|
||||
<dd><a href="javascript:;" data-value="{{$brand.id}}" data-field="brand_id">{{$brand.name}}</a></dd>
|
||||
</foreach>
|
||||
<else />
|
||||
<span class="not-tips">没有相关品牌</span>
|
||||
</if>
|
||||
</div>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="select-list">
|
||||
<dl id="screening-category-dl">
|
||||
<dt class="am-badge am-round">分类</dt>
|
||||
<div class="dd-conent" data-selected-tag="screening-category">
|
||||
<dd class="select-all selected"><a href="javascript:;">不限</a></dd>
|
||||
<if condition="!empty($category_list)">
|
||||
<foreach name="category_list" item="category">
|
||||
<dd><a href="javascript:;" data-value="{{$category.id}}" data-field="category_id">{{$category.name}}</a></dd>
|
||||
</foreach>
|
||||
<else />
|
||||
<span class="not-tips">没有相关分类</span>
|
||||
</if>
|
||||
</div>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="select-list">
|
||||
<dl id="screening-price-dl">
|
||||
<dt class="am-badge am-round">价格</dt>
|
||||
<div class="dd-conent" data-selected-tag="screening-price">
|
||||
<dd class="select-all selected"><a href="javascript:;">不限</a></dd>
|
||||
<if condition="!empty($screening_price_list)">
|
||||
<foreach name="screening_price_list" item="screening_price">
|
||||
<dd><a href="javascript:;" data-value="{{$screening_price.id}}" data-field="screening_price_id">{{$screening_price.name}}</a></dd>
|
||||
</foreach>
|
||||
<else />
|
||||
<span class="not-tips">没有相关价格</span>
|
||||
</if>
|
||||
</div>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="search-content">
|
||||
<ul class="sort-nav" data-am-sticky="{animation: 'slide-top'}">
|
||||
<li class="active" data-field="default" data-type="desc">
|
||||
|
@ -38,11 +38,52 @@ class ArticleService
|
||||
}
|
||||
if(isset($v['add_time']))
|
||||
{
|
||||
$v['add_time'] = date('Y-m-d H:i:s', $v['add_time']);
|
||||
$v['add_time_time'] = date('Y-m-d H:i:s', $v['add_time']);
|
||||
$v['add_time_date'] = date('Y-m-d', $v['add_time']);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分类和所有文章
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2018-10-19
|
||||
* @desc description
|
||||
* @param [array] $params [输入参数]
|
||||
*/
|
||||
public static function ArticleCategoryList($params = [])
|
||||
{
|
||||
$data = M('ArticleCategory')->field('id,name')->where(['is_enable'=>1])->order('id asc, sort asc')->select();
|
||||
if(!empty($data))
|
||||
{
|
||||
foreach($data as &$v)
|
||||
{
|
||||
$v['items'] = M('Article')->field('id,title,title_color')->where(['article_category_id'=>$v['id'], 'is_enable'=>1])->select();
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 文章访问统计加1
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2018-10-15
|
||||
* @desc description
|
||||
* @param [array] $params [输入参数]
|
||||
*/
|
||||
public static function ArticleAccessCountInc($params = [])
|
||||
{
|
||||
if(!empty($params['id']))
|
||||
{
|
||||
return M('Article')->where(array('id'=>intval($params['id'])))->setInc('access_count');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
?>
|
31
service/Public/Home/Default/Css/Article.css
Normal file
31
service/Public/Home/Default/Css/Article.css
Normal file
@ -0,0 +1,31 @@
|
||||
.article-sidebar, .article-header, .am-accordion-gapped .am-accordion-title{padding: 0;}
|
||||
.article-content{padding-top: 10px;}
|
||||
.article-header{text-align: center;}
|
||||
.article-header .am-article-divider{margin: 10px 0 20px 0;}
|
||||
.article-header .am-article-meta{margin-top: 5px;}
|
||||
.article-header .am-article-meta span:not(:first-child){margin-left: 15px;}
|
||||
.article-nav-button{position: fixed; z-index: 10; bottom: 70px; right: 10px;}
|
||||
.am-offcanvas-bar:after{background: #eee;}
|
||||
.article-sidebar ul li{margin-top: 0;}
|
||||
.article-sidebar ul li a{font-size: 12px; padding: 5px;}
|
||||
.article-content .am-accordion-content{padding: 5px;}
|
||||
.am-nav-header{padding: 8px 5px 5px 5px; font-weight: 500;}
|
||||
.am-accordion-gapped dl:first-child{margin-top: 0;}
|
||||
.am-accordion-gapped dl:last-child{margin-bottom: 0;}
|
||||
.am-accordion-gapped .am-accordion-title:after{margin-top: -6px;}
|
||||
.am-accordion-gapped .am-accordion-title, .am-accordion-gapped .am-accordion-item, .am-accordion-gapped .am-accordion-item.am-active{border-color: #eee;}
|
||||
|
||||
@media only screen and (min-width: 641px) {
|
||||
.article-sidebar .am-offcanvas{display: block; position: static; background: none;}
|
||||
.article-sidebar .am-offcanvas-bar{position: static; width: auto; background: none; -webkit-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}
|
||||
.article-sidebar ul li:not(:last-child){border-bottom: 1px solid #f5f5f5;}
|
||||
.am-accordion-gapped{margin: 0 15px 0 0;}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 640px) {
|
||||
.article-right{padding: 0 5px;}
|
||||
.article-sidebar .am-offcanvas-bar{background: #f9f9f9;}
|
||||
.article-sidebar ul li:not(:last-child){border-bottom: 1px solid #eee;}
|
||||
.am-accordion-gapped{margin: 0;}
|
||||
.article-sidebar ul li a{padding-left: 20px;}
|
||||
}
|
@ -178,7 +178,7 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
||||
.nav-cont li a {font-size: 16px;color: #333;line-height: 36px;margin-left: -1px;padding: 0 25px;text-decoration: none;font-weight: 700;display: inline-block;vertical-align: middle;}
|
||||
.nav-cont li a:hover { color:#d2364c; }
|
||||
|
||||
.nav-cont .nav-extra{position: absolute;right:0px ;top:6px;font-size: 14px;line-height:33px;height:33px ;width:110px;text-align:center;background: #e1363f;cursor: pointer;}
|
||||
.nav-cont .nav-extra{position: absolute;right:0px ;top:0px;font-size: 14px;line-height:33px;height:33px ;width:110px;text-align:center;background: #e1363f;cursor: pointer;}
|
||||
.nav-cont .nav-extra .nav-user{background:#e0313b; width: 33px;height: 33px;border-radius: 33px;position: absolute;left:-28px;z-index: 2;padding: 1px;overflow: hidden;}
|
||||
.nav-cont .nav-extra b{display:block;position: absolute;width: 40px;height: 40px;border-radius:45px;z-index: 1;left: -31px;top: -4px;background: #fff;}
|
||||
.nav-cont .nav-extra .am-icon-angle-right { margin-left: 5px; }
|
||||
@ -277,17 +277,6 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
||||
|
||||
/*侧边信息栏*/
|
||||
.tip{ position:fixed; top:0px;right:0px;background-color: #e1e1e1; min-height: 100%;z-index: 1000; }
|
||||
#sidebar {
|
||||
padding-top: 120px;
|
||||
width: 35px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
background-color:#2b2b2b;
|
||||
min-height: 100%;
|
||||
z-index: 100;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 800px;
|
||||
margin: 0 auto;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user