+
<% if (is_home()) { %>
<%- partial('home-content') %>
@@ -33,6 +33,7 @@
<%- partial('_partial/sidebar') %>
<% } %>
+
diff --git a/source/css/layout/_partial/sidebar-category.styl b/source/css/layout/_partial/sidebar-categories.styl
similarity index 69%
rename from source/css/layout/_partial/sidebar-category.styl
rename to source/css/layout/_partial/sidebar-categories.styl
index 8063f07..eec0380 100644
--- a/source/css/layout/_partial/sidebar-category.styl
+++ b/source/css/layout/_partial/sidebar-categories.styl
@@ -5,15 +5,17 @@
position relative
background: var(--background-color);
- magic-container(1.02, 30px);
+ magic-container(1.02, 20px);
.category-label {
- margin-bottom: 10px;
- padding-left: 10px;
+ margin-bottom: 12px;
+ padding-bottom: 12px;
+ //padding-left: 10px;
font-size: 16px;
font-weight: 600;
+ border-bottom: 1px solid var(--border-color);
- &::after {
+ /*&::after {
content: '';
position: absolute;
top: 20px;
@@ -23,9 +25,10 @@
background: #333;
}
-
+*/
}
+
.category-list {
li.category-list-item {
@@ -61,4 +64,24 @@
}
}
}
+
+ .post-category-list {
+ .post-category-list-item {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 10px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ .post-category-list-link {
+
+ }
+
+ .post-category-list-count {
+
+ }
+ }
+ }
}
diff --git a/source/css/layout/_partial/sidebar-tagcloud.styl b/source/css/layout/_partial/sidebar-tagcloud.styl
new file mode 100644
index 0000000..cc47e75
--- /dev/null
+++ b/source/css/layout/_partial/sidebar-tagcloud.styl
@@ -0,0 +1,27 @@
+@require "../common/magic-theme.styl"
+
+
+.sidebar-tagcloud {
+
+ position relative
+ background: var(--background-color);
+ magic-container(1.02, 20px);
+
+ .tagcloud-label {
+ margin-bottom: 12px;
+ padding-bottom: 12px;
+ font-size: 16px;
+ font-weight: 600;
+ border-bottom: 1px solid var(--border-color);
+ }
+
+ .tagcloud-container {
+ text-align: justify;
+
+ a {
+ padding: 0 2px;
+ line-height: 1.8em;
+ //text-transform: uppercase;
+ }
+ }
+}
diff --git a/source/css/layout/_partial/sidebar-tags.styl b/source/css/layout/_partial/sidebar-tags.styl
new file mode 100644
index 0000000..b45ca7d
--- /dev/null
+++ b/source/css/layout/_partial/sidebar-tags.styl
@@ -0,0 +1,38 @@
+@require "../common/magic-theme.styl"
+
+.sidebar-tags {
+
+ position relative
+ background: var(--background-color);
+ magic-container(1.02, 20px);
+
+ .tag-label {
+ margin-bottom: 12px;
+ padding-bottom: 12px;
+ font-size: 16px;
+ font-weight: 600;
+ border-bottom: 1px solid var(--border-color);
+ }
+
+
+ .post-tag-list {
+
+ .post-tag-list-item {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 10px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ .post-tag-list-link {
+
+ }
+
+ .post-tag-list-count {
+
+ }
+ }
+ }
+}
diff --git a/source/css/layout/_partial/sidebar-toc.styl b/source/css/layout/_partial/sidebar-toc.styl
index d1cff78..f9e89dc 100644
--- a/source/css/layout/_partial/sidebar-toc.styl
+++ b/source/css/layout/_partial/sidebar-toc.styl
@@ -5,12 +5,12 @@
.post-toc-wrap {
width: 100%;
height: 100%;
- font-size: 0.88em;
+ font-size: 0.92em;
box-sizing: border-box;
background: var(--background-color);
if (hexo-config('magic.enable') && hexo-config('magic.sidebar.enable')) {
- magic-container(1.02, 30px);
+ magic-container(1.02, 20px);
}
.post-toc {
@@ -31,7 +31,7 @@
a {
transition-property: all;
- //transition();
+ transition();
}
}
@@ -39,10 +39,7 @@
line-height: 1.8;
overflow: hidden;
text-overflow: ellipsis;
-
- if (!hexo-config('toc.wrap')) {
- white-space: nowrap;
- }
+ white-space: nowrap;
}
.nav {
@@ -63,16 +60,11 @@
}
.active > a {
- border-bottom-color: var(--primary-color);
color: var(--primary-color);
}
.active-current > a {
color: var(--primary-color);
-
- &:hover {
- color: var(--primary-color);
- }
}
}
}
diff --git a/source/css/layout/_partial/sidebar.styl b/source/css/layout/_partial/sidebar.styl
index 43821f6..829ed51 100644
--- a/source/css/layout/_partial/sidebar.styl
+++ b/source/css/layout/_partial/sidebar.styl
@@ -1,13 +1,14 @@
@require "../common/variables.styl"
@require "../common/magic-theme.styl"
+
.sidebar {
- position: fixed;
+
width: $sidebar-width;
box-sizing: border-box;
- .home-sidebar-container {
+ .sidebar-container {
- .home-sidebar-item {
+ .sidebar-item {
margin-bottom: $component-interspace;
&:last-child {
@@ -16,4 +17,18 @@
}
}
+}
+
+
+.sidebar-post {
+ position: fixed;
+}
+
+.sidebar-other {
+ if (!hexo-config('magic.sidebar.fixed')) {
+ position: absolute;
+ } else {
+ position: fixed;
+ }
+
}
\ No newline at end of file
diff --git a/source/css/layout/_partial/site-info.styl b/source/css/layout/_partial/site-info.styl
index 1a6990b..b697362 100644
--- a/source/css/layout/_partial/site-info.styl
+++ b/source/css/layout/_partial/site-info.styl
@@ -6,7 +6,7 @@
box-sizing: border-box;
background: var(--background-color);
- magic-container(1.02, 30px);
+ magic-container(1.02, 20px);
.justify-center {
display: flex;
diff --git a/source/css/layout/common/animated.styl b/source/css/layout/common/animated.styl
index 520ced6..213aece 100644
--- a/source/css/layout/common/animated.styl
+++ b/source/css/layout/common/animated.styl
@@ -31,9 +31,7 @@ the-transition-ease-out() {
@keyframes fade-in-down {
0% {
opacity: 0;
- //transform: translateY(-20px);
- //transform: translateX(-20px);
- transform: translateX(20px);
+ transform: translateY(-20px);
}
100% {
diff --git a/source/css/layout/page.styl b/source/css/layout/page.styl
index 4623966..cd6847f 100644
--- a/source/css/layout/page.styl
+++ b/source/css/layout/page.styl
@@ -15,6 +15,7 @@
transition();
}
+
.page-middle {
width: 100%;
display: flex;
@@ -51,6 +52,7 @@
}
+
.sidebar-tools {
position: fixed;
top: $header-height + $component-interspace;
@@ -107,9 +109,7 @@
}
.page-top-shrink {
-
transition();
-
padding-top: $header-shrink-height;
.page-top {
diff --git a/source/css/style.styl b/source/css/style.styl
index b0db567..24b904a 100644
--- a/source/css/style.styl
+++ b/source/css/style.styl
@@ -21,4 +21,6 @@
@import "layout/common/codeblock/copy-code.styl"
@import "layout/_partial/sidebar.styl"
@import "layout/_partial/site-info.styl"
-@import "layout/_partial/sidebar-category.styl"
\ No newline at end of file
+@import "layout/_partial/sidebar-categories.styl"
+@import "layout/_partial/sidebar-tags.styl"
+@import "layout/_partial/sidebar-tagcloud.styl"
\ No newline at end of file