mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Optimize the style of custom-logo and sidebar-inner
This commit is contained in:
parent
6d5d471424
commit
d194052d7e
@ -9,13 +9,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="site-meta{%- if theme.custom_logo %} custom-logo{%- endif %}">
|
<div class="site-meta">
|
||||||
{%- if theme.custom_logo and theme.scheme === 'Muse' %}
|
{%- if theme.custom_logo and theme.scheme === 'Muse' %}
|
||||||
<div class="site-meta-headline">
|
|
||||||
<a>
|
|
||||||
<img class="custom-logo-image" src="{{ theme.custom_logo }}" alt="{{ title }}">
|
<img class="custom-logo-image" src="{{ theme.custom_logo }}" alt="{{ title }}">
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
<a href="{{ config.root }}" class="brand" rel="start">
|
<a href="{{ config.root }}" class="brand" rel="start">
|
||||||
@ -27,9 +23,7 @@
|
|||||||
<p class="site-subtitle" itemprop="description">{{ subtitle }}</p>
|
<p class="site-subtitle" itemprop="description">{{ subtitle }}</p>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if theme.custom_logo and (theme.scheme === 'Gemini' or theme.scheme === 'Pisces') %}
|
{%- if theme.custom_logo and (theme.scheme === 'Gemini' or theme.scheme === 'Pisces') %}
|
||||||
<a>
|
|
||||||
<img class="custom-logo-image" src="{{ theme.custom_logo }}" alt="{{ title }}">
|
<img class="custom-logo-image" src="{{ theme.custom_logo }}" alt="{{ title }}">
|
||||||
</a>
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
if (hexo-config('back2top.enable')) {
|
if (hexo-config('back2top.enable')) {
|
||||||
.back-to-top {
|
.back-to-top {
|
||||||
font-size: $b2t-font-size;
|
font-size: $b2t-font-size;
|
||||||
text-align: center;
|
|
||||||
the-transition();
|
the-transition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,6 @@ ul.breadcrumb {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
padding: 0 2em;
|
padding: 0 2em;
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
li {
|
li {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
background: $grey-light;
|
background: $grey-light;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
margin: $post-eof-margin-top auto $post-eof-margin-bottom;
|
margin: $post-eof-margin-top auto $post-eof-margin-bottom;
|
||||||
text-align: center;
|
|
||||||
width: 8%;
|
width: 8%;
|
||||||
|
|
||||||
.post-block:last-of-type & {
|
.post-block:last-of-type & {
|
||||||
|
|||||||
@ -7,6 +7,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-logo-image {
|
||||||
|
margin-top: 20px;
|
||||||
|
|
||||||
|
+tablet-mobile() {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
color: var(--brand-color);
|
color: var(--brand-color);
|
||||||
|
|||||||
@ -24,12 +24,10 @@ if (hexo-config('avatar.rotated')) {
|
|||||||
color: $site-author-name-color;
|
color: $site-author-name-color;
|
||||||
font-weight: $site-author-name-weight;
|
font-weight: $site-author-name-weight;
|
||||||
margin: $site-author-name-margin;
|
margin: $site-author-name-margin;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-description {
|
.site-description {
|
||||||
color: $site-description-color;
|
color: $site-description-color;
|
||||||
font-size: $site-description-font-size;
|
font-size: $site-description-font-size;
|
||||||
margin-top: $site-description-margin-top;
|
margin-top: $site-description-margin-top;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
.cc-license {
|
.cc-license {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
.cc-opacity {
|
.cc-opacity {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|||||||
@ -4,19 +4,18 @@
|
|||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-align: center;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-state-item {
|
.site-state-item {
|
||||||
padding: 0 15px;
|
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
border-left: 1px solid $site-state-item-border-color;
|
border-left: 1px solid $site-state-item-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
display: block;
|
||||||
|
padding: 0 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,7 +23,6 @@
|
|||||||
display: block;
|
display: block;
|
||||||
font-size: $site-state-item-count-font-size;
|
font-size: $site-state-item-count-font-size;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-state-item-name {
|
.site-state-item-name {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ $page-number-basic {
|
|||||||
|
|
||||||
.page-number.current {
|
.page-number.current {
|
||||||
background: $pagination-active-bg;
|
background: $pagination-active-bg;
|
||||||
border-top-color: $pagination-active-border;
|
border-color: $pagination-active-border;
|
||||||
color: $pagination-active-color;
|
color: $pagination-active-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,6 @@
|
|||||||
.custom-logo {
|
|
||||||
.site-meta-headline {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-title {
|
|
||||||
color: $black-deep;
|
|
||||||
margin: 10px auto 0;
|
|
||||||
|
|
||||||
a {
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.custom-logo-image {
|
.custom-logo-image {
|
||||||
background: white;
|
background: white;
|
||||||
margin: 0 auto;
|
margin: 0 auto 10px;
|
||||||
max-width: 150px;
|
max-width: 150px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,11 +17,3 @@
|
|||||||
.site-subtitle {
|
.site-subtitle {
|
||||||
margin: 10px 10px 0;
|
margin: 10px 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-logo-image {
|
|
||||||
margin-top: 20px;
|
|
||||||
|
|
||||||
+tablet-mobile() {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-state-item {
|
.site-state-item a {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +44,6 @@
|
|||||||
border-bottom: 1px dotted $grey-light;
|
border-bottom: 1px dotted $grey-light;
|
||||||
border-top: 1px dotted $grey-light;
|
border-top: 1px dotted $grey-light;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user