Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Commit

Permalink
上传更新
Browse files Browse the repository at this point in the history
  • Loading branch information
JaxsonWang committed Sep 10, 2019
1 parent 6673529 commit fee7543
Show file tree
Hide file tree
Showing 18 changed files with 1,298 additions and 434 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

### WordPress

维护人:[@淮城一只猫](https://github.com/JaxsonWang)
维护人:[@crazyming9528](https://github.com/crazyming9528)

展示站点:暂无展示站

源码地址:[Github WordPress Theme Frenemy](https://github.com/JaxsonWang/WordPress-Theme-Frenemy)
源码地址:[Github WordPress Theme Frenemy](https://github.com/crazyming9528/WordPress-Theme-Frenemy)

### Typecho

Expand Down
13 changes: 12 additions & 1 deletion assets/app/css/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,16 @@
@Name 全局样式
*/
.medium-zoom-image--opened {
z-index: 1;
z-index: 3;
}

.medium-zoom-overlay {
background-color: #fff!important;
z-index: 2;
}

[data-theme="dark"] {
.medium-zoom-overlay {
background-color: #080808!important;
}
}
19 changes: 19 additions & 0 deletions assets/app/css/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,25 @@
}
}

@media (max-width: 991.98px) {
.site-warp {
.site-header {
nav.navbar {
.navbar-collapse {
.navbar-nav {
.nav-item {
margin: 0;
&:last-child {
margin: 0 auto;
}
}
}
}
}
}
}
}

// 小于 768px
@media (max-width: 767.98px) {
.site-warp {
Expand Down
26 changes: 17 additions & 9 deletions assets/app/css/_post-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.post-content {
p {
font-family: PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
line-height: 1em/1.8;
line-height: 1.6;
font-weight: normal;

a {
Expand All @@ -22,30 +22,37 @@

h3 {
&::before {
content: '#';
font-size: 1.5rem;
margin-right: 0.5rem;
color: #000;
content: '';
border-radius: 25%;
width: 0.5rem;
height: 0.5rem;
margin: 0 0.5rem 0.3rem 0;
background-color: #000;
display: inline-block;
}
}

figure {
img {
max-width: 100%;
display: block;
margin: 1.5em auto;
margin: 1.5em auto 0;
height: auto;
}

figcaption {
margin-top: .5rem;
text-align: center;
font-weight: lighter;
color: rgba(0,0,0,.5);
padding-top: 0.5rem;
color: rgba(0, 0, 0, .5);
font-style: italic;
}
}

img {
display: block;
margin: 1.5em auto;
height: auto;
max-width: 100%;
}
}
Expand All @@ -60,6 +67,7 @@
.post-content {
p {
color: $dark-font;

a {
color: $dark-font;
border-bottom: 1px solid $dark-font;
Expand All @@ -74,7 +82,7 @@

figure {
figcaption {
color: rgba(0,0,0,.5);
color: rgba(0, 0, 0, .5);
}
}
}
Expand Down
33 changes: 33 additions & 0 deletions assets/app/css/_post-donation.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
@Author 淮城一只猫
@Date 2019-08-09
@Name 主题文章捐赠
*/

.site-warp {
.post-donation {
.btn-donation {
padding: 1rem;
i {
font-size: 1.225rem;
}
}
.collapse-donation {
margin-top: 2rem;
.card-collapse {
figure {
width: 50%;
img {
width: 100%;
}
}
}
}
}
}

[data-theme="dark"] {
.site-warp {
.post-donation {}
}
}
93 changes: 93 additions & 0 deletions assets/app/css/_post-footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/**
@Author 淮城一只猫
@Date 2019-08-09
@Name 主题文章页脚
*/

.site-warp {
.post-footer {
margin: 0 auto;
padding: 3rem 0;
width: 100%;
.author-card {
.author-profile-image {
position: relative;
margin-right: 0.938rem;
width: 3.75rem;
height: 3.75rem;
display: block;
border-radius: 100%;
object-fit: cover;
}
.avatar-wrapper {
position: relative;
margin-right: 0.9375rem;
width: 3.75rem;
height: 3.75rem;
display: block;
border-radius: 100%;
object-fit: cover;
background: #e3e9ed;
}
.author-card-content {
.author-card-name {
margin: 0.5rem 0 .125rem;
padding: 0;
font-size: 1.425rem;
a {
font-weight: 700;
}
}
p {
margin: 0;
line-height: 1.3em;
}
}
}
.post-footer-right {
flex-shrink: 0;
margin-left: 1.25rem;
.author-card-button {
display: block;
padding: 0.563rem 1rem;
border: 0.063rem solid #000;
color: #000;
font-size: 0.8rem;
line-height: 1;
font-weight: 500;
border-radius: 1.25rem;
transition: all .2s ease;
}
}
}
}

[data-theme="dark"] {
.site-warp {
.post-footer {
.author-card {
.avatar-wrapper {
background: $dark-font;
}
.author-card-content {
.author-card-name {
a {
color: $dark-font;
}
}
p {
a {
color: $dark-font;
}
}
}
}
.post-footer-right {
.author-card-button {
border: 0.063rem solid $dark-font;
color: $dark-font;
}
}
}
}
}
Loading

0 comments on commit fee7543

Please sign in to comment.