diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-04-23 23:46:04 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-04-23 23:46:04 +0900 |
| commit | 6d41679509322f646667b0f8c72ebbd9128cf9fc (patch) | |
| tree | 362413b2979650d1f7bafcbc6f44858d09db0dcc /themes/mypaper/static/custom.css | |
| parent | 64d6c29bc6858628684d19ae7066b6a600fe9787 (diff) | |
| download | nsfisis.github.io-6d41679509322f646667b0f8c72ebbd9128cf9fc.tar.gz nsfisis.github.io-6d41679509322f646667b0f8c72ebbd9128cf9fc.tar.zst nsfisis.github.io-6d41679509322f646667b0f8c72ebbd9128cf9fc.zip | |
change heading style
Diffstat (limited to 'themes/mypaper/static/custom.css')
| -rw-r--r-- | themes/mypaper/static/custom.css | 27 |
1 files changed, 26 insertions, 1 deletions
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: '######'; } |
