Skip to content

Commit

Permalink
some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
abowloflrf committed Sep 21, 2018
1 parent 30e5283 commit 72ba164
Show file tree
Hide file tree
Showing 17 changed files with 16,269 additions and 4,049 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ghost 主题 nomore

一个简洁的同时又美观耐看不普通的 Ghost 主题,适合开发者个人博客
一个简洁的同时又美观耐看不普通的 Ghost 主题

## Featrue List

Expand Down
210 changes: 79 additions & 131 deletions assets/build/app.css
Original file line number Diff line number Diff line change
@@ -1,154 +1,102 @@
* {
box-sizing: border-box;
}
body {
margin: 0;
color: rgba(0, 0, 0, 0.8);
font-family: Consolas, "Liberation Mono", Menlo, Monaco,
"Source Han Sans CN", "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", sans-serif;
font-size: 14px;
margin: 0;
color: rgba(0, 0, 0, 0.8);
font-family: Consolas, "Liberation Mono", Menlo, Monaco, "Source Han Sans CN",
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
font-size: 14px;
}

code {
font-family: "Fira Code", Consolas, Monaco, Consolas, monospace;
}
a {
text-decoration: none;
color: #374355;
}
/* 正文如下 */
.navbar {
background: #fff;
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.075);
font-family: "Fira Code", Consolas, Monaco, Consolas, monospace;
}

.navbar .nav-logo {
height: 40px;
a {
text-decoration: none;
color: #374355;
}

/* 正文如下 */
.container {
margin: 0 auto;
padding: 0px 40px;
max-width: 900px;
min-width: 200px;
}
.navbar-brand {
display: flex;
flex-shrink: 0;
}
.navbar-burger {
cursor: pointer;
display: block;
height: 60px;
position: relative;
width: 60px;
margin-left: auto;
width: 100%;
margin-left: auto;
margin-right: auto;
padding-left: 15px;
padding-right: 15px;
}
.navbar-burger span {
background-color: #374355;
display: block;
height: 1px;
left: calc(50% - 8px);
position: absolute;
transform-origin: center;
transition-duration: 86ms;
transition-property: background-color, opacity, transform, -webkit-transform;
transition-timing-function: ease-out;
width: 16px;
}

.navbar-burger span:nth-child(1) {
top: calc(50% - 6px);
}

.navbar-burger span:nth-child(2) {
top: calc(50% - 1px);
.container-width {
max-width: 860px;
padding: 0 20px;
}

.navbar-burger span:nth-child(3) {
top: calc(50% + 4px);
.navbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
background: #fff;
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.075);
position: fixed;
padding-left: 0 !important;
padding-right: 0 !important;
padding: 0;
top: 0;
left: 0;
right: 0;
z-index: 999;
}
.navbar .container {
padding: 15px 5px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
.navbar-menu ul {
margin: 0;
padding: 0;
}

.navbar-burger:hover {
background-color: rgba(0, 0, 0, 0.05);
.navbar-item {
display: inline;
margin: 0;
padding: 0;
}
.navbar-burger.is-active span:nth-child(1) {
-webkit-transform: translateY(5px) rotate(45deg);
transform: translateY(5px) rotate(45deg);
.navbar-item a {
font-size: 20px;
font-family: "Hammersmith One", sans-serif;
text-decoration: none;
padding: 8px;
}

.navbar-burger.is-active span:nth-child(2) {
opacity: 0;
.navbar-item a::after {
content: "/";
color: #9eabb3;
}

.navbar-burger.is-active span:nth-child(3) {
-webkit-transform: translateY(-5px) rotate(-45deg);
transform: translateY(-5px) rotate(-45deg);
}
.navbar-item {
font-size: 20px;
flex-grow: 0;
flex-shrink: 0;
position: relative;
padding: 0.5rem 1rem;
line-height: 40px;
display: block;
}
.navbar-menu {
display: none;
}
.footer-hr {
margin: 50px 0px 10px 0px;
border: none;
height: 2px;
border-top: 1px solid #c9d3df;
margin: 50px 0px 10px 0px;
border: none;
height: 2px;
border-top: 1px solid #c9d3df;
}

footer p {
font-size: 14px;
color: #9eabb3;
text-align: center;
}
@media screen and (max-width: 600px) {
.container,
footer {
padding: 0 20px;
}
.navbar .nav-logo {
height: 24px;
}
.navbar-burger {
height: 40px;
width: 40px;
}
.navbar-menu.is-active {
display: block;
}
.navbar-menu {
background-color: white;
padding: 0.5rem 0;
}
.navbar-item {
font-size: 14px;
line-height: 20px;
}
.navbar-brand .navbar-item {
display: flex;
}
font-size: 14px;
color: #9eabb3;
text-align: center;
}

@media screen and (min-width: 600px) {
.navbar {
display: flex;
}
.navbar-burger {
display: none;
}
.navbar-menu {
display: flex;
flex-grow: 1;
flex-shrink: 0;
}
.navbar-item {
align-items: center;
display: flex;
}
@media screen and (max-width: 600px) {
.container-width {
padding: 0 10px;
}
.navbar {
height: 40px;
}
.navbar-item a {
font-size: 14px;
padding: 4px;
}
}
/**
* prism.js default theme for JavaScript, CSS and HTML
Expand Down
12,850 changes: 12,847 additions & 3 deletions assets/build/app.js

Large diffs are not rendered by default.

Loading

0 comments on commit 72ba164

Please sign in to comment.