Skip to content

Commit ca7e8f0

Browse files
committed
Custom page style fix
1 parent 1cd2773 commit ca7e8f0

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

public/default/css/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
margin-top:25px;
5959
}
6060

61+
.article-list .title {
62+
font-size:16px;
63+
}
6164

6265
.article-list .desc {
6366
margin-top:15px;
@@ -110,6 +113,11 @@ a {
110113
max-width: 100%;
111114
}
112115

116+
.markdown-preview table td, .markdown-preview table th {
117+
border: 1px solid #ddd;
118+
padding: 5px;
119+
}
120+
113121
pre {
114122
padding:0;
115123
}

resources/views/default/page.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
<link rel="stylesheet" href="{{ asset('default/css/index.css') }}">
2727

28+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/latest/styles/github.min.css">
29+
2830
</head>
2931
<body>
3032
@inject('systemPresenter', 'App\Presenters\SystemPresenter')
@@ -76,6 +78,12 @@
7678

7779
<script src="{{ asset('default/js/index.js') }}"></script>
7880

81+
<script src="https://cdn.jsdelivr.net/highlight.js/latest/highlight.min.js"></script>
82+
83+
<script>
84+
hljs.initHighlightingOnLoad();
85+
</script>
86+
7987
@yield('script')
8088
</body>
8189
</html>

resources/views/default/show_page.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
@section('keywords', $systemPresenter->checkReturnValue('seo_keyword', $page->keyword))
1010

1111
@section('style')
12-
<link rel="stylesheet" href="{{ asset('editor.md/css/editormd.preview.min.css') }}">
1312
<link rel="stylesheet" href="{{ asset('share.js/css/share.min.css') }}">
1413
@endsection
1514

@@ -30,7 +29,7 @@
3029
@endsection
3130

3231
@section('content')
33-
<div class="markdown-body editormd-html-preview" style="padding:0;">
32+
<div class="markdown-preview" style="padding:0;">
3433
{!! $page->html_content !!}
3534
</div>
3635

0 commit comments

Comments
 (0)