Skip to content

Commit

Permalink
Remove .site-overview-item
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 12, 2022
1 parent ce36136 commit 9880a22
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions layout/_macro/sidebar.njk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{# Blogroll #}
{%- if theme.links %}
<div class="sidebar-inner sidebar-blogroll">
<div class="links-of-blogroll site-overview-item animated">
<div class="links-of-blogroll animated">
<div class="links-of-blogroll-title">
{%- if theme.links_settings.icon %}<i class="{{ theme.links_settings.icon }} fa-fw"></i>{% endif %}
{{ __('sidebar.links') }}
Expand All @@ -60,7 +60,7 @@

{%- if theme.related_posts.enable and page.related_posts and page.related_posts.length > 0 %}
<div class="sidebar-inner sidebar-post-related">
<div class="site-overview-item animated">
<div class="animated">
{{ partial('_partials/post/post-related.njk') }}
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions layout/_partials/sidebar/site-overview.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
{%- if theme.avatar.url %}
<img class="site-author-image" itemprop="image" alt="{{ author }}"
src="{{ url_for(theme.avatar.url) }}">
Expand All @@ -8,7 +8,7 @@
</div>

{%- if theme.site_state %}
<div class="site-state-wrap site-overview-item animated">
<div class="site-state-wrap animated">
<nav class="site-state">
{%- if config.archive_dir != '/' and site.posts.length > 0 %}
<div class="site-state-item site-state-posts">
Expand Down Expand Up @@ -52,7 +52,7 @@
{%- endif %}

{%- if theme.chat.enable and (theme.chatra.enable or theme.tidio.enable or theme.gitter.enable) %}
<div class="sidebar-button site-overview-item animated">
<div class="sidebar-button animated">
<button{% if theme.gitter.enable %} class="js-gitter-toggle-chat-button"{% endif %}>
{%- if theme.chat.icon %}<i class="{{ theme.chat.icon }}"></i>{% endif %}
{{ __('widget.chat') }}
Expand All @@ -61,7 +61,7 @@
{%- endif %}

{%- if theme.social %}
<div class="links-of-author site-overview-item animated">
<div class="links-of-author animated">
{%- for name, link in theme.social %}
<span class="links-of-author-item">
{%- set sidebarURL = link.split('||')[0] | trim %}
Expand All @@ -74,7 +74,7 @@
{%- endif %}

{%- if theme.creative_commons.license and theme.creative_commons.sidebar %}
<div class="cc-license site-overview-item animated" itemprop="license">
<div class="cc-license animated" itemprop="license">
{%- set ccImage = '<img src="' + theme.vendors.creative_commons.url + '" alt="Creative Commons">' %}
{{ next_url(ccURL, ccImage, {class: 'cc-opacity'}) }}
</div>
Expand Down
1 change: 0 additions & 1 deletion source/css/_common/components/third-party/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import 'gitalk';
@import 'utterances';
@import 'search';
@import 'related-posts';
@import 'math';
@import 'gitter';

Expand Down
5 changes: 1 addition & 4 deletions source/css/_common/outline/sidebar/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
flex-column();
}

.site-overview-item:not(:first-child) {
margin-top: 10px;
}

.cc-license {
.cc-opacity {
border-bottom: 0;
Expand All @@ -35,3 +31,4 @@
@import 'sidebar-toggle';
@import 'sidebar-toc';
@import 'site-state';
@import 'related-posts';
1 change: 0 additions & 1 deletion source/css/_common/outline/sidebar/sidebar-blogroll.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
.links-of-blogroll-title {
font-size: $font-size-small;
font-weight: 600;
margin-top: 0;
}

.links-of-blogroll-list {
Expand Down
3 changes: 2 additions & 1 deletion source/css/_common/outline/sidebar/sidebar-nav.styl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@

.sidebar-overview-active .site-overview-wrap {
// Flexbox layout makes it possible to reorder the child
// elements of .site-overview-item through the `order` CSS property
// elements of .site-overview-wrap through the `order` CSS property
flex-column();
gap: 10px;
}

.sidebar-toc-active .post-toc-wrap {
Expand Down
4 changes: 4 additions & 0 deletions source/css/_schemes/Muse/_sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ if (hexo-config('sidebar.position') == 'right') {
}
}

.popular-posts .popular-posts-item .popular-posts-link:hover {
background: none;
}

.sidebar-dimmer {
display: none;
}
Expand Down

0 comments on commit 9880a22

Please sign in to comment.