Browse Source

Custom page style fix

moell 7 years ago
parent
commit
ca7e8f0583

+ 8 - 0
public/default/css/index.css

@@ -58,6 +58,9 @@
     margin-top:25px;
 }
 
+.article-list .title {
+    font-size:16px;
+}
 
 .article-list .desc {
     margin-top:15px;
@@ -110,6 +113,11 @@ a {
     max-width: 100%;
 }
 
+.markdown-preview table td, .markdown-preview table th {
+    border: 1px solid #ddd;
+    padding: 5px;
+}
+
 pre {
     padding:0;
 }

+ 8 - 0
resources/views/default/page.blade.php

@@ -25,6 +25,8 @@
 
     <link rel="stylesheet" href="{{ asset('default/css/index.css') }}">
 
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/latest/styles/github.min.css">
+
 </head>
 <body>
 @inject('systemPresenter', 'App\Presenters\SystemPresenter')
@@ -76,6 +78,12 @@
 
 <script src="{{ asset('default/js/index.js') }}"></script>
 
+<script src="https://cdn.jsdelivr.net/highlight.js/latest/highlight.min.js"></script>
+
+<script>
+  hljs.initHighlightingOnLoad();
+</script>
+
 @yield('script')
 </body>
 </html>

+ 1 - 2
resources/views/default/show_page.blade.php

@@ -9,7 +9,6 @@
 @section('keywords', $systemPresenter->checkReturnValue('seo_keyword', $page->keyword))
 
 @section('style')
-    <link rel="stylesheet" href="{{ asset('editor.md/css/editormd.preview.min.css') }}">
     <link rel="stylesheet" href="{{ asset('share.js/css/share.min.css') }}">
 @endsection
 
@@ -30,7 +29,7 @@
 @endsection
 
 @section('content')
-    <div class="markdown-body editormd-html-preview" style="padding:0;">
+    <div class="markdown-preview" style="padding:0;">
         {!! $page->html_content !!}
     </div>