style: update magic-theme css

This commit is contained in:
XPoet 2020-04-30 00:14:16 +08:00
parent 78edb2b978
commit 2406efdc5d
18 changed files with 26 additions and 36 deletions

View File

@ -1,4 +1,4 @@
<div class="article-content-container fade-in-down-animation">
<div class="article-content-container">
<div class="article-title">
<h3><a class="title-hover-animation"><%= page.title %></a></h3>

View File

@ -12,7 +12,7 @@
background: var(--background-color);
if (hexo-config('magic.enable') == true) {
magic-style(1.02);
magic-style(1.02, 1.02);
}

View File

@ -5,7 +5,7 @@
position relative
background: var(--background-color);
magic-container(1.02, 20px);
magic-container(1.02, 1.02, 20px);
.category-label {
margin-bottom: 12px;

View File

@ -5,7 +5,7 @@
position relative
background: var(--background-color);
magic-container(1.02, 20px);
magic-container(1.02, 1.02, 20px);
.tagcloud-label {
margin-bottom: 12px;

View File

@ -4,7 +4,7 @@
position relative
background: var(--background-color);
magic-container(1.02, 20px);
magic-container(1.02, 1.02, 20px);
.tag-label {
margin-bottom: 12px;

View File

@ -10,7 +10,7 @@
background: var(--background-color);
if (hexo-config('magic.enable') && hexo-config('magic.sidebar.enable')) {
magic-container(1.02, 20px);
magic-container(1.02, 1.02, 20px);
}
.post-toc {

View File

@ -6,7 +6,7 @@
box-sizing: border-box;
background: var(--background-color);
magic-container(1.02, 20px);
magic-container(1.02, 1.02, 20px);
.justify-center {
display: flex;

View File

@ -21,7 +21,7 @@ $li-margin-bottom = 12px;
background: var(--background-color);
if (hexo-config('magic.enable') == true) {
magic-style(1.1);
magic-style(1.1, 1.1);
} else {
border: 1px solid var(--border-color);
}

View File

@ -4,7 +4,7 @@
background: var(--background-color);
magic-container(1.01, 30px);
magic-container(1.005, 1.01, 30px);
.about-content {

View File

@ -2,7 +2,7 @@
.archive-container {
background: var(--background-color);
magic-container(1.01, 30px);
magic-container(1.005, 1.01, 30px);
}

View File

@ -5,17 +5,8 @@
background: var(--background-color);
if (hexo-config('magic.enable') == true) {
box-shadow: 0 0 3px var(--border-color);
padding: 30px;
transition: all 0.3s ease;
border-radius: 2px;
&:hover {
box-shadow: 0 0 8px var(--border-color);
transform: scaleX(1.008) scaleY(1.002);
}
if (hexo-config('magic.enable')) {
magic-container(1.008, 1.002, 30px);
}
@ -33,10 +24,12 @@
}
.meta-info {
margin: 10px 0 30px 0;
}
.article-content {
text-align: justify;
padding-bottom: 30px;
@ -76,7 +69,7 @@ if ((hexo-config('magic.enable') && !hexo-config('magic.sidebar.enable') && hexo
}
if (hexo-config('magic.enable') == true) {
magic-container(1.02, 20px);
magic-container(1.02, 1.02, 20px);
} else {
transition();
border: 1px solid var(--border-color);

View File

@ -5,7 +5,7 @@
background: var(--background-color);
if (hexo-config('magic.enable')) {
magic-container(1.02, 30px);
magic-container(1.02, 1.02, 30px);
}
.category-name {

View File

@ -59,7 +59,7 @@ button {
background: var(--background-color);
if (hexo-config('magic.enable') == true) {
magic-style(1.1);
magic-style(1.1, 1.1);
} else {
border: 1px solid var(--border-color);
}

View File

@ -1,6 +1,6 @@
@require "animated.styl"
magic-style(scale) {
magic-style(scaleX, scaleY) {
if (hexo-config('magic.enable') == true) {
box-shadow: 0 0 3px var(--border-color);
@ -9,16 +9,14 @@ magic-style(scale) {
&:hover {
transition();
box-shadow: 0 0 8px var(--border-color);
transform: scale(scale);
transform: scaleX(scaleX) scaleY(scaleY);
}
}
}
magic-container(scale, padding) {
if (hexo-config('magic.enable') == true) {
magic-style(scale);
magic-container(scaleX, scaleY, padding) {
magic-style(scaleX, scaleY);
padding: padding;
border-radius: 2px;
}
}

View File

@ -28,7 +28,6 @@ $component-interspace = 30px; // 组件/模块的间隔值px
$media-max-width = 760px; //
// ===============================
// z-index
// ===============================

View File

@ -11,7 +11,7 @@
if (hexo-config('magic.enable') == true) {
magic-container(1.02, 30px);
magic-container(1.02, 1.02, 30px);
margin-bottom: $component-interspace;
} else {

View File

@ -100,7 +100,7 @@
background: var(--background-color);
if (hexo-config('magic.enable') == true) {
magic-style(1.1);
magic-style(1.1, 1.1);
} else {
border: 1px solid var(--third-text-color);
}

View File

@ -6,7 +6,7 @@
background: var(--background-color);
if (hexo-config('magic.enable')) {
magic-container(1.02, 30px);
magic-container(1.02, 1.02, 30px);
}
.tag-name {