diff options
author | Joway.CI <joway.w@gmail.com> | 2021-01-23 11:26:21 +0300 |
---|---|---|
committer | Joway.CI <joway.w@gmail.com> | 2021-01-23 11:26:21 +0300 |
commit | 0ea6a6bc53d16d2f4b7ee5fdd88b8b22fb3e0bf5 (patch) | |
tree | 9c1f792cceb024bcd595a9e10849a23c3e9e4c58 | |
parent | e13f4e6c2771cca6ccdbca6481e6853a9498917f (diff) |
feat: fix code css
-rw-r--r-- | static/css/index.css | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/static/css/index.css b/static/css/index.css index 7721e20..554f3a7 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -31,10 +31,29 @@ a:hover { max-width: 100%; } +.markdown-body a { + text-decoration: underline; + text-decoration-color: #000; +} + .markdown-body pre { padding: 16px; overflow: auto; - background-color: #f6f8fa !important; + border-radius: 10px; +} + +.markdown-body code { + padding: 0.2em 0.4em; + font-size: 85%; + background-color: #f6f8fa; + border-radius: 6px; +} +/* reset code */ +.markdown-body pre > code { + padding: 0; + font-size: 100%; + background-color: inherit; + border: 0; } /* i18n */ @@ -63,9 +82,8 @@ a:hover { .header-line { width: 100%; - border-width: 3px; - border-color: #000; - border-style: solid none none none; + height: 3px; + background-color: #000000; margin: 18px 0; } @@ -156,8 +174,9 @@ a:hover { .post-category { display: inline; font-weight: 900; - padding: 2px; + padding: 2px 5px; border: #000 2px solid; + border-radius: 5px; } .post-date { |