2020-04-01 12:09:06 +08:00
|
|
|
@require 'common/variables.styl'
|
2020-04-28 23:20:17 +08:00
|
|
|
@require 'common/magic-theme.styl'
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-04-01 12:09:06 +08:00
|
|
|
.article-content-container {
|
2020-03-18 23:14:09 +08:00
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
background: var(--background-color);
|
|
|
|
|
2020-04-30 00:14:16 +08:00
|
|
|
if (hexo-config('magic.enable')) {
|
|
|
|
magic-container(1.008, 1.002, 30px);
|
2020-04-24 22:49:10 +08:00
|
|
|
}
|
|
|
|
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
.article-title {
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2020-03-18 23:14:09 +08:00
|
|
|
h3 {
|
|
|
|
font-weight: 600;
|
2020-04-07 11:57:53 +08:00
|
|
|
font-size: 1.8em;
|
2020-03-18 23:14:09 +08:00
|
|
|
margin: 0;
|
|
|
|
}
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
a {
|
2020-04-02 20:37:34 +08:00
|
|
|
color: var(--second-text-color);
|
2020-03-14 16:17:04 +08:00
|
|
|
}
|
|
|
|
|
2020-03-15 15:45:38 +08:00
|
|
|
}
|
|
|
|
|
2020-04-30 00:14:16 +08:00
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
.meta-info {
|
2020-04-07 11:57:53 +08:00
|
|
|
margin: 10px 0 30px 0;
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2020-04-30 00:14:16 +08:00
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
.article-content {
|
2020-04-24 22:49:10 +08:00
|
|
|
text-align: justify;
|
2020-04-07 11:57:53 +08:00
|
|
|
padding-bottom: 30px;
|
2020-04-01 23:03:38 +08:00
|
|
|
border-bottom: 1px solid $border-color;
|
2020-03-19 14:51:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
.article-nav {
|
|
|
|
height 40px
|
2020-04-01 23:03:38 +08:00
|
|
|
margin 40px 0
|
2020-03-19 18:11:13 +08:00
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
.article-prev {
|
2020-03-19 18:11:13 +08:00
|
|
|
float left
|
|
|
|
}
|
|
|
|
|
2020-03-19 22:12:09 +08:00
|
|
|
.article-next {
|
2020-03-19 18:11:13 +08:00
|
|
|
float right
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-18 23:14:09 +08:00
|
|
|
}
|
2020-04-28 23:20:17 +08:00
|
|
|
|
|
|
|
|
2020-04-29 18:41:29 +08:00
|
|
|
if ((hexo-config('magic.enable') && !hexo-config('magic.sidebar.enable') && hexo-config('toc.enable')) || (!hexo-config('magic.enable') && hexo-config('toc.enable'))) {
|
2020-04-28 23:20:17 +08:00
|
|
|
.article-toc-container {
|
|
|
|
position: fixed;
|
|
|
|
top: $header-height + $component-interspace;
|
|
|
|
background: var(--background-color);
|
|
|
|
max-width: 200px;
|
|
|
|
max-height: 600px;
|
|
|
|
|
|
|
|
if (hexo-config('side-tools.position') == left) {
|
|
|
|
right: 30px;
|
|
|
|
} else {
|
|
|
|
left: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (hexo-config('magic.enable') == true) {
|
2020-04-30 00:14:16 +08:00
|
|
|
magic-container(1.02, 1.02, 20px);
|
2020-04-28 23:20:17 +08:00
|
|
|
} else {
|
|
|
|
transition();
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-toc-container-shrink {
|
|
|
|
top: $header-shrink-height + $component-interspace !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|