hexo
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
.post-button {
|
||||
margin-top: 40px;
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
// TODO: Refactor.
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.posts-collapse {
|
||||
margin: 0 20px;
|
||||
|
||||
.post-title, .post-meta {
|
||||
display: block;
|
||||
width: auto;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.posts-collapse {
|
||||
position: relative;
|
||||
z-index: $zindex-1;
|
||||
|
||||
&::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 0;
|
||||
margin-left: -2px;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: $whitesmoke;
|
||||
z-index: $zindex-bottom;
|
||||
}
|
||||
|
||||
margin-left: $posts-collapse-left;
|
||||
+mobile() { margin: 0 20px; }
|
||||
|
||||
.collection-title {
|
||||
position: relative;
|
||||
margin: 60px 0;
|
||||
|
||||
h1, h2 { margin-left: 20px; }
|
||||
|
||||
small { color: $grey; margin-left: 5px; }
|
||||
|
||||
&::before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: $grey;
|
||||
circle();
|
||||
}
|
||||
}
|
||||
|
||||
.post { margin: 30px 0; }
|
||||
|
||||
.post-header {
|
||||
position: relative;
|
||||
the-transition();
|
||||
transition-property: border;
|
||||
border-bottom: 1px dashed $grey-light;
|
||||
|
||||
&::before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 12px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin-left: -4px;
|
||||
background: $grey;
|
||||
circle();
|
||||
border: 1px solid white;
|
||||
the-transition();
|
||||
transition-property: background;
|
||||
}
|
||||
}
|
||||
|
||||
.post-header:hover {
|
||||
border-bottom-color: $grey-dim;
|
||||
|
||||
&::before { background: $black-deep; }
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
position: absolute;
|
||||
font-size: 12px;
|
||||
left: 20px;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.post-comments-count { display: none; }
|
||||
|
||||
.post-title {
|
||||
margin-left: 60px;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
|
||||
&::after {
|
||||
margin-left: 3px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $grey-dim;
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
.post-copyright {
|
||||
margin: $post-copyright.margin;
|
||||
padding: $post-copyright.padding;
|
||||
border-left: $post-copyright.border.width $post-copyright.border.style $post-copyright.border.color;
|
||||
background-color: $post-copyright.bg;
|
||||
list-style: none;
|
||||
}
|
17
themes/next/source/css/_common/components/post/post-eof.styl
Normal file
17
themes/next/source/css/_common/components/post/post-eof.styl
Normal file
@ -0,0 +1,17 @@
|
||||
.posts-expand {
|
||||
.post-eof {
|
||||
display: block;
|
||||
margin: $post-eof-margin-top auto $post-eof-margin-bottom;
|
||||
width: 8%;
|
||||
height: 1px;
|
||||
background: $grey-light;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.post:last-child {
|
||||
.post-eof.post-eof.post-eof {
|
||||
display: none;
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
// TODO: Refactor.
|
||||
|
||||
.posts-expand {
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.posts-expand {
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
.post-body {
|
||||
pre {
|
||||
.gutter pre {
|
||||
padding-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
padding: 0;
|
||||
.gutter pre {
|
||||
padding-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.posts-expand .post-body {
|
||||
+desktop() { text-align: justify; }
|
||||
|
||||
|
||||
h2, h3, h4, h5, h6 {
|
||||
padding-top: 10px;
|
||||
|
||||
.header-anchor{
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
color: $grey-light;
|
||||
border-bottom-style: none;
|
||||
visibility: hidden;
|
||||
|
||||
&:hover{
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover .header-anchor{
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
ul li { list-style: circle; }
|
||||
|
||||
img {
|
||||
box-sizing: border-box;
|
||||
margin: auto;
|
||||
padding: 3px;
|
||||
border: 1px solid $gray-lighter;
|
||||
}
|
||||
}
|
||||
|
||||
.posts-expand .post-body .fancybox img { margin: 0 auto 25px; }
|
@ -0,0 +1,23 @@
|
||||
.post-gallery {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
}
|
||||
|
||||
.post-gallery-row { display: table-row; }
|
||||
|
||||
.post-gallery .post-gallery-img {
|
||||
display: table-cell;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.post-gallery .post-gallery-img img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fancybox-close, .fancybox-close:hover { border: none; }
|
@ -0,0 +1,49 @@
|
||||
.posts-expand .post-meta {
|
||||
margin: 3px 0 60px 0;
|
||||
color: $grey-dark;
|
||||
font-family: $font-family-posts;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
|
||||
.post-category-list {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 3px;
|
||||
}
|
||||
.post-category-list-link { color: $grey-dark; }
|
||||
|
||||
.post-description {
|
||||
font-size: 14px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.post-wordcount {
|
||||
if !hexo-config('post_wordcount.separated_meta') { display: inline-block; }
|
||||
}
|
||||
|
||||
.post-meta-divider {
|
||||
margin: 0 .5em;
|
||||
}
|
||||
|
||||
.post-meta-item-icon {
|
||||
margin-right: 3px;
|
||||
+tablet() {
|
||||
display: inline-block;
|
||||
}
|
||||
+mobile() {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.post-meta-item-text {
|
||||
+tablet() {
|
||||
display: none;
|
||||
}
|
||||
+mobile() {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.posts-expand .post-comments-count {
|
||||
+mobile() { display: none; }
|
||||
}
|
57
themes/next/source/css/_common/components/post/post-nav.styl
Normal file
57
themes/next/source/css/_common/components/post/post-nav.styl
Normal file
@ -0,0 +1,57 @@
|
||||
.post-nav {
|
||||
display: table;
|
||||
margin-top: 15px;
|
||||
width: 100%;
|
||||
border-top: 1px solid $gainsboro;
|
||||
}
|
||||
|
||||
.post-nav-divider {
|
||||
display: table-cell;
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.post-nav-item {
|
||||
display: table-cell;
|
||||
padding: 10px 0 0 0;
|
||||
width: 45%;
|
||||
vertical-align: top;
|
||||
|
||||
a {
|
||||
position: relative;
|
||||
display: block;
|
||||
line-height: 25px;
|
||||
font-size: 14px;
|
||||
color: $link-color;
|
||||
border-bottom: none;
|
||||
|
||||
&:hover {
|
||||
color: $link-hover-color;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&:active { top: 2px; }
|
||||
}
|
||||
|
||||
.fa {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.post-nav-next {
|
||||
a { padding-left: 15px; }
|
||||
}
|
||||
|
||||
.post-nav-prev {
|
||||
text-align: right;
|
||||
|
||||
a { padding-right: 15px; }
|
||||
|
||||
.fa {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
#rewardButton span {
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
height: 35px;
|
||||
border-radius: 5px;
|
||||
color: #fff;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-stretch: normal;
|
||||
font-size: 18px;
|
||||
font-family: "Microsoft Yahei";
|
||||
background: #f44336;
|
||||
}
|
||||
#rewardButton {
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
border-radius: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
text-indent: 0px;
|
||||
text-shadow: none;
|
||||
}
|
||||
#rewardButton span:hover{
|
||||
background: #F7877F;
|
||||
}
|
||||
#QR{
|
||||
padding-top:20px;
|
||||
}
|
||||
#QR a{
|
||||
border:0;
|
||||
}
|
||||
#QR img{
|
||||
width: 150px;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
margin: 0.8em 2em 0 2em;
|
||||
}
|
||||
#wechat:hover p{
|
||||
animation: roll 0.1s infinite linear;
|
||||
-webkit-animation: roll 0.1s infinite linear;
|
||||
-moz-animation: roll 0.1s infinite linear;
|
||||
}
|
||||
#alipay:hover p{
|
||||
animation: roll 0.1s infinite linear;
|
||||
-webkit-animation: roll 0.1s infinite linear;
|
||||
-moz-animation: roll 0.1s infinite linear;
|
||||
}
|
||||
#bitcoin:hover p {
|
||||
animation: roll 0.1s infinite linear;
|
||||
-webkit-animation: roll 0.1s infinite linear;
|
||||
-moz-animation: roll 0.1s infinite linear;
|
||||
}
|
||||
@keyframes roll {
|
||||
from {
|
||||
transform(rotateZ(30deg));
|
||||
}
|
||||
to {
|
||||
transform(rotateZ(-30deg));
|
||||
}
|
||||
}
|
11
themes/next/source/css/_common/components/post/post-rtl.styl
Normal file
11
themes/next/source/css/_common/components/post/post-rtl.styl
Normal file
@ -0,0 +1,11 @@
|
||||
.rtl {
|
||||
&.post-body {
|
||||
p, a, h1, h2, h3, h4, h5, h6, li, ul, ol {
|
||||
direction: rtl;
|
||||
font-family: UKIJ Ekran;
|
||||
}
|
||||
}
|
||||
&.post-title {
|
||||
font-family: UKIJ Ekran;
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
.posts-expand .post-tags {
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
.posts-expand .post-title {
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
font-weight: $posts-expand-title-font-weight
|
||||
}
|
||||
.posts-expand .post-title-link {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
color: $black-light;
|
||||
border-bottom: none;
|
||||
line-height: 1.2;
|
||||
vertical-align: top;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: #000;
|
||||
visibility: hidden;
|
||||
transform: scaleX(0);
|
||||
the-transition();
|
||||
}
|
||||
|
||||
&:hover::before {
|
||||
visibility: visible;
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
.fa { font-size: 16px; }
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
// TODO: Refactor.
|
||||
|
||||
.page-home, .page-post-detail {
|
||||
.post-type-quote {
|
||||
.post-header,
|
||||
.post-tags {
|
||||
display: none;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
@extend .blockquote-center
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
.post-widgets {
|
||||
border-top: 1px solid #eee;
|
||||
padding-top: 9px;
|
||||
margin-top: 45px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
|
||||
.post-meta-divider {
|
||||
height: 28px;
|
||||
color: $grey-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.wp_rating {
|
||||
height: 20px;
|
||||
margin-right: 10px;
|
||||
text-align: center;
|
||||
line-height: 20px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.social-like {
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.vk_like {
|
||||
width: 85px;
|
||||
height: 21px;
|
||||
padding-top: 7px;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.fb_like {
|
||||
height: 30px;
|
||||
align-self: center;
|
||||
}
|
60
themes/next/source/css/_common/components/post/post.styl
Normal file
60
themes/next/source/css/_common/components/post/post.styl
Normal file
@ -0,0 +1,60 @@
|
||||
.post-body {
|
||||
font-family: $font-family-posts;
|
||||
+mobile() {
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.post-body .fancybox img {
|
||||
display: block !important;
|
||||
margin: 0 auto;
|
||||
cursor: pointer;
|
||||
cursor: zoom-in;
|
||||
cursor: -webkit-zoom-in;
|
||||
}
|
||||
|
||||
.post-body .image-caption {
|
||||
margin: -20px auto 15px;
|
||||
text-align: center;
|
||||
font-size: $font-size-base;
|
||||
color: $grey-dark;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.post-body .figure .caption {
|
||||
@extend .post-body .image-caption;
|
||||
}
|
||||
|
||||
.post-sticky-flag {
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
-ms-transform: rotate(30deg);
|
||||
transform: rotate(30deg);
|
||||
}
|
||||
|
||||
.use-motion {
|
||||
if hexo-config('motion.transition.post_block') {
|
||||
.post-block,
|
||||
.pagination,
|
||||
.comments { opacity: 0; }
|
||||
}
|
||||
if hexo-config('motion.transition.post_header') { .post-header { opacity: 0; } }
|
||||
if hexo-config('motion.transition.post_body') { .post-body { opacity: 0; } }
|
||||
if hexo-config('motion.transition.coll_header') { .collection-title { opacity: 0; } }
|
||||
}
|
||||
|
||||
@import "post-expand";
|
||||
@import "post-collapse";
|
||||
@import "post-type";
|
||||
@import "post-title";
|
||||
@import "post-meta";
|
||||
@import "post-button";
|
||||
@import "post-tags";
|
||||
@import "post-nav";
|
||||
@import "post-eof";
|
||||
@import "post-gallery";
|
||||
@import "post-reward" if hexo-config('alipay') or hexo-config('wechatpay') or hexo-config('bitcoin');
|
||||
@import "post-copyright" if hexo-config('post_copyright.enable');
|
||||
@import "post-widgets" if (hexo-config('facebook_sdk.enable') and hexo-config('facebook_sdk.like_button')) or (hexo-config('vkontakte_api.enable') and hexo-config('vkontakte_api.like')) or hexo-config('rating.enable') or (hexo-config('needmoreshare2.enable') and hexo-config('needmoreshare2.postbottom.enable'));
|
||||
@import "post-rtl";
|
Reference in New Issue
Block a user