mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Some minor fixes
This commit is contained in:
parent
041e94b33f
commit
b01a4ed7d7
@ -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)) {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -76,7 +76,6 @@ random-color($min, $max) {
|
||||
|
||||
word-wrap() {
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
disable-user-select() {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user