174 lines
3.0 KiB
Stylus
174 lines
3.0 KiB
Stylus
@require 'common/variables.styl'
|
|
@require 'common/magic-theme.styl'
|
|
|
|
$avatarWidth = 46px;
|
|
|
|
.article-content-container {
|
|
|
|
background: var(--background-color);
|
|
|
|
if (hexo-config('magic.enable')) {
|
|
magic-container(1.008, 1.002, 30px);
|
|
}
|
|
|
|
.article-title {
|
|
color: var(--second-text-color);
|
|
font-weight: 600;
|
|
font-size: 1.8em;
|
|
|
|
+ils-tablet() {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
+ils-mobile() {
|
|
font-size: 1.2em;
|
|
}
|
|
}
|
|
|
|
.article-header {
|
|
position: relative;
|
|
padding-left: $avatarWidth;
|
|
width: 100%;
|
|
height: $avatarWidth;
|
|
box-sizing: border-box;
|
|
|
|
.avatar {
|
|
position: absolute;
|
|
top: 0
|
|
left: 0;
|
|
width: $avatarWidth;
|
|
height: $avatarWidth;
|
|
padding: 1px;
|
|
box-sizing: border-box;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 50%;
|
|
|
|
img {
|
|
border-radius: 50%;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
.info {
|
|
padding: 2px 0;
|
|
margin-left: 10px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
.author {
|
|
font-weight: 600;
|
|
font-size: 1.18em;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.level {
|
|
margin-left: 10px;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
background: var(--selection-color);
|
|
padding: 0 4px;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
.article-header,
|
|
.article-header-meta-info {
|
|
margin-top: 16px;
|
|
+ils-tablet() {
|
|
transform: scale(0.88);
|
|
transform-origin: left top;
|
|
}
|
|
}
|
|
|
|
.article-content {
|
|
margin-top: 30px;
|
|
text-align: justify;
|
|
padding-bottom: 30px;
|
|
border-bottom: 1px solid var(--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;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
if ((hexo-config('magic.enable') && hexo-config('toc.enable')) || (!hexo-config('magic.enable') && hexo-config('toc.enable'))) {
|
|
.article-toc-container {
|
|
position: fixed;
|
|
top: $header-height + $component-interspace;
|
|
|
|
+ils-tablet() {
|
|
display: none;
|
|
}
|
|
|
|
if (hexo-config('side_tools.position') == left) {
|
|
right: 30px;
|
|
} else {
|
|
left: 30px;
|
|
}
|
|
|
|
.article-toc {
|
|
max-width: 188px;
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
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;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.article-toc-container-shrink {
|
|
top: $header-shrink-height + $component-interspace !important;
|
|
}
|
|
}
|
|
|
|
|