From 3a8fd0b7d7cd9746521fd2d018d8339679e4cdbe Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 20 Apr 2020 21:54:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/css/common.css | 59 +++++++------- public/static/css/index.articles.css | 16 +++- view/index/common/_articles_left.html | 1 - view/index/index/articles_index.html | 107 ++++++++++++++------------ view/index/post/articles_read.html | 26 ++++--- 5 files changed, 119 insertions(+), 90 deletions(-) diff --git a/public/static/css/common.css b/public/static/css/common.css index 85e327e..ea305b0 100644 --- a/public/static/css/common.css +++ b/public/static/css/common.css @@ -1,32 +1,4 @@ -@media screen and (max-width: 768px){ - .layui-body{ - left: 0; - } - .layui-layout-admin .layui-footer{ - left: 0; - } - - .layui-layout-admin .layui-logo{ - width: 115px; - } - - .layui-layout-admin .layui-side{ - width: 100%; - overflow-x: hidden; - height: 100%; - position: unset; - } - - .layui-layer-content .layui-hide-xs{ - display: unset !important; - } - - .layui-nav-tree{ - width: 100%; - height: 100%; - } -} .left-bottom-options{ position: fixed; @@ -105,4 +77,35 @@ .ul-flex{ display: flex; +} + + +@media screen and (max-width: 768px){ + .layui-body{ + left: 0; + } + + .layui-layout-admin .layui-footer{ + left: 0; + } + + .layui-layout-admin .layui-logo{ + width: 115px; + } + + .layui-layout-admin .layui-side{ + width: 100%; + overflow-x: hidden; + height: 100%; + position: unset; + } + + .layui-layer-content .layui-hide-xs{ + display: unset !important; + } + + .layui-nav-tree{ + width: 100%; + height: 100%; + } } \ No newline at end of file diff --git a/public/static/css/index.articles.css b/public/static/css/index.articles.css index 665c295..393ef8d 100644 --- a/public/static/css/index.articles.css +++ b/public/static/css/index.articles.css @@ -1,3 +1,4 @@ + .main-container{ margin-top: 15px; } @@ -14,7 +15,7 @@ display: block; padding: 10px 15px; border-radius: 5px; - margin: 5px 40px; + margin: 5px 20px; } .nav-left-list a:hover,.nav-left-list a.current{ @@ -127,4 +128,17 @@ .content-container .title{ font-size: 22px; font-weight: 600; + } + + + +@media screen and (max-width: 768px){ + .nav-left-list{ + text-align: left; + } + .nav-left-list a{ + display: inline-block; + margin: 5px; + } +} \ No newline at end of file diff --git a/view/index/common/_articles_left.html b/view/index/common/_articles_left.html index a326c91..badb4d2 100644 --- a/view/index/common/_articles_left.html +++ b/view/index/common/_articles_left.html @@ -14,6 +14,5 @@ {$category.title} {/volist} - \ No newline at end of file diff --git a/view/index/index/articles_index.html b/view/index/index/articles_index.html index 59fe386..dec2425 100644 --- a/view/index/index/articles_index.html +++ b/view/index/index/articles_index.html @@ -13,62 +13,71 @@
{include file='common/_articles_left'/}
- {eq name='$Request.param.category_id|default="0"' value='0'} +
-
- -
- {/eq} - - {notempty name='$sub_category'} -
- 全部 - {volist name='$sub_category' id='category'} - - {$category.title} - {/volist} -
- {/notempty} -
-
- {volist name='list_post' id='post'} - - - {notempty name='$post->getData("poster")'} - -
- {/notempty} - -
-
{$post.title}
-
- {$post.hits}访问 - {$post.comment_count}评论 -
+
+ {/eq} + + {notempty name='$sub_category'} +
+ 全部 + {volist name='$sub_category' id='category'} + + {$category.title} {/volist} - {empty name='list_post'} - +
+ {/notempty} + +
+
+ {volist name='list_post' id='post'} + + + {notempty name='$post->getData("poster")'} + +
+ {/notempty} + +
+
{$post.title}
+
+ {$post.hits}访问 + {$post.comment_count}评论 +
+ + +
+ +
+ {/volist} + {empty name='list_post'} + - {/empty} + {/empty} +
diff --git a/view/index/post/articles_read.html b/view/index/post/articles_read.html index 1bc4f5c..b5a6e59 100644 --- a/view/index/post/articles_read.html +++ b/view/index/post/articles_read.html @@ -1,5 +1,6 @@ + @@ -7,27 +8,30 @@ {include file='common/_articles_require'/} +
{include file='common/_articles_left'/}
-
- -
- {$post.title} -
-
- {$post->publish_time_text} -
-
-
{$post->content_html|raw}
+
+
+
+ {$post.title} +
+
+ {$post->publish_time_text} +
+
+
{$post->content_html|raw}
+
{include file='common/_articles_right'/} - +
+ \ No newline at end of file