Some minor fixes

This commit is contained in:
Mimi 2020-06-15 00:52:10 +08:00
parent 041e94b33f
commit b01a4ed7d7
6 changed files with 7 additions and 16 deletions

View File

@ -28,7 +28,7 @@ module.exports = hexo => {
let { i18n } = hexo.theme;
const mergeLang = lang => {
i18n.set(lang, merge(i18n.get([lang]), data.languages[lang]));
if (data.languages[lang]) i18n.set(lang, merge(i18n.get([lang]), data.languages[lang]));
};
if (Array.isArray(language)) {

View File

@ -1,23 +1,16 @@
.site-state {
display: flex;
flex-wrap: wrap;
justify-content: center;
line-height: 1.4;
margin-top: 10px;
overflow: hidden;
white-space: nowrap;
}
.site-state-item {
&:not(:first-child) {
border-left: 1px solid $site-state-item-border-color;
}
a {
.site-state-item a {
border-bottom: none;
display: block;
padding: 0 15px;
}
}
.site-state-item-count {
display: block;

View File

@ -38,6 +38,7 @@ code {
kbd {
@extend $code-inline;
background-image: linear-gradient(var(--highlight-gutter-background), var(--highlight-background), var(--highlight-gutter-background));
border: 1px solid $grey-light;
border-radius: .2em;
box-shadow: .1em .1em .2em rgba(0, 0, 0, .1);

View File

@ -76,7 +76,6 @@ random-color($min, $max) {
word-wrap() {
overflow-wrap: break-word;
word-wrap: break-word;
}
disable-user-select() {

View File

@ -48,7 +48,6 @@ $site-description-margin-top = 0;
$site-state-item-count-font-size = $font-size-medium;
$site-state-item-name-font-size = $font-size-smaller;
$site-state-item-name-color = $grey-dark;
$site-state-item-border-color = $gainsboro;
// Components

View File

@ -252,7 +252,6 @@ $site-description-margin-top = 5px;
$site-state-item-count-font-size = $font-size-larger;
$site-state-item-name-font-size = $font-size-small;
$site-state-item-name-color = inherit;
$site-state-item-border-color = $black-dim;
// Components