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; let { i18n } = hexo.theme;
const mergeLang = lang => { 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)) { if (Array.isArray(language)) {

View File

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

View File

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

View File

@ -76,7 +76,6 @@ random-color($min, $max) {
word-wrap() { word-wrap() {
overflow-wrap: break-word; overflow-wrap: break-word;
word-wrap: break-word;
} }
disable-user-select() { 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-count-font-size = $font-size-medium;
$site-state-item-name-font-size = $font-size-smaller; $site-state-item-name-font-size = $font-size-smaller;
$site-state-item-name-color = $grey-dark; $site-state-item-name-color = $grey-dark;
$site-state-item-border-color = $gainsboro;
// Components // Components

View File

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