From 6d41679509322f646667b0f8c72ebbd9128cf9fc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 23 Apr 2022 23:46:04 +0900 Subject: change heading style --- themes/mypaper/static/custom.css | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'themes') diff --git a/themes/mypaper/static/custom.css b/themes/mypaper/static/custom.css index a65d9b7..f492b95 100644 --- a/themes/mypaper/static/custom.css +++ b/themes/mypaper/static/custom.css @@ -1 +1,26 @@ -/* Place a custom css file in your own project to use this. */ \ No newline at end of file +/* Place a custom css file in your own project to use this. */ +.post-content h1, +.post-content h2, +.post-content h3, +.post-content h4, +.post-content h5, +.post-content h6 { + border-bottom: var(--primary) solid 1px; +} + +.post-content h1::before, +.post-content h2::before, +.post-content h3::before, +.post-content h4::before, +.post-content h5::before, +.post-content h6::before { + color: var(--secondary); + padding-right: 0.3rem; +} + +.post-content h1::before { content: '#'; } +.post-content h2::before { content: '##'; } +.post-content h3::before { content: '###'; } +.post-content h4::before { content: '####'; } +.post-content h5::before { content: '#####'; } +.post-content h6::before { content: '######'; } -- cgit v1.2.3-70-g09d2