{$nav.title}
-{$nav.desc}
-{$nav.title}
+{$nav.desc}
+
- {/empty}
+ {/empty}
+ 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 @@
{$nav.title}
-{$nav.desc}
-{$nav.title}
+{$nav.desc}
+
- {/empty}
+ {/empty}
+