From bdf104dc9b166c444a3ca480c2a7d81ba25a6c21 Mon Sep 17 00:00:00 2001 From: mivinci <1366723936@qq.com> Date: Thu, 5 Aug 2021 15:24:04 +0800 Subject: [PATCH] fix style for site title --- layouts/partials/header.html | 2 +- static/css/main.css | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f962a9a..ff9590f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@
-

+

{{ .Site.Title }}

diff --git a/static/css/main.css b/static/css/main.css index 6343ed8..a32d10d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -10,7 +10,7 @@ html.dark { --bg: #262d33; - --ft: #eee; + --ft: #c5c4c4; --bd: #555; --tag: #999; @@ -194,6 +194,11 @@ details.toc ul>li { margin: 1em 0; } +.nowrap { + white-space: nowrap; + overflow: auto; +} + @keyframes showup { from { opacity: 0; @@ -255,3 +260,8 @@ details.toc ul>li { ::-webkit-scrollbar-thumb:active { background-color: rgb(128 128 128 / 100%); } + +.nowrap::-webkit-scrollbar { + display: none; + width: 0; +}