fix style for site title

This commit is contained in:
mivinci 2021-08-05 15:24:04 +08:00
parent 0d555dd905
commit bdf104dc9b
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<header> <header>
<h1 class="row gap-1"> <h1 class="row gap-1 nowrap">
<div id="theme-switcher" class="btn lg-1"></div> <div id="theme-switcher" class="btn lg-1"></div>
{{ .Site.Title }} {{ .Site.Title }}
</h1> </h1>

View file

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