hexo-theme-keep/source/css/layout/article-content.styl

117 lines
1.8 KiB
Stylus
Raw Normal View History

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-04-01 12:09:06 +08:00
.article-content-container {
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-28 23:20:17 +08:00
.article-title {
h3 {
font-weight: 600;
font-size: 1.8em;
2020-06-04 22:11:27 +08:00
+ils-tablet() {
font-size: 1.5em;
}
+ils-mobile() {
font-size: 1.2em;
}
margin: 0;
}
a {
color: var(--second-text-color);
}
2020-03-15 15:45:38 +08:00
}
.meta-info {
margin: 10px 0 30px 0;
}
.article-content {
text-align: justify;
padding-bottom: 30px;
2020-04-01 23:03:38 +08:00
border-bottom: 1px solid $border-color;
}
.article-nav {
height: 40px;
margin: 40px 0;
.article-prev {
float: left;
}
.article-next {
float: right;
}
.post-nav-item {
display: none;
+ils-tablet() {
display: inline-block;
}
}
.post-nav-title-item {
+ils-tablet() {
display: none;
}
}
}
}
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;
2020-06-04 22:11:27 +08:00
+ils-tablet() {
display: none;
}
2020-04-30 12:24:57 +08:00
if (hexo-config('side_tools.position') == left) {
2020-04-28 23:20:17 +08:00
right: 30px;
} else {
left: 30px;
}
2020-04-30 00:34:31 +08:00
.article-toc {
2020-05-07 09:57:36 +08:00
max-width: 188px;
2020-04-30 00:34:31 +08:00
max-height: 600px;
background: var(--background-color);
if (hexo-config('magic.enable') == true) {
magic-container(1.02, 1.02, 20px);
} else {
transition();
border: 1px solid var(--border-color);
padding: 20px;
}
2020-04-28 23:20:17 +08:00
}
}
.article-toc-container-shrink {
top: $header-shrink-height + $component-interspace !important;
}
}