Skip to content

Commit

Permalink
Custom page style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moell-peng committed Nov 9, 2018
1 parent 1cd2773 commit ca7e8f0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions public/default/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
margin-top:25px;
}

.article-list .title {
font-size:16px;
}

.article-list .desc {
margin-top:15px;
Expand Down Expand Up @@ -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 changes: 8 additions & 0 deletions resources/views/default/page.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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>
3 changes: 1 addition & 2 deletions resources/views/default/show_page.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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>

Expand Down

0 comments on commit ca7e8f0

Please sign in to comment.