Skip to content

Commit

Permalink
Compatible with Ghost's latest version
Browse files Browse the repository at this point in the history
Adapted to Ghost latest version. It seems to be totally fine, but lemme know if anything is broken.
  • Loading branch information
Salies committed Oct 12, 2017
1 parent 5028d8e commit 4992ab6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
33 changes: 20 additions & 13 deletions assets/css/nihilanth-3.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,14 @@ margin on the iframe, cause it breaks stuff. */
position: relative;
display: table;
width: 100%;
height: 100vh;
margin-top:30px;
margin-bottom: 30px;
overflow: hidden;
background-image:none!important;
}

.scroll-down{
display:none;
}

.main-header .inner {
Expand Down Expand Up @@ -693,7 +697,7 @@ body.nav-opened .nav {
*/
/* Create a bouncing scroll-down arrow on homepage with cover image */
.scroll-down {
display: block;
display: none;
position: absolute;
z-index: 100;
bottom: 45px;
Expand Down Expand Up @@ -721,7 +725,7 @@ body.nav-opened .nav {

/* Put a semi-opaque radial gradient behind the icon to make it more visible
on photos which happen to have a light background. */
.home-template .main-header:after {
/*.home-template .main-header:after {
display: block;
content: " ";
width: 150px;
Expand All @@ -734,11 +738,14 @@ body.nav-opened .nav {
background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 70%,rgba(0,0,0,0) 100%);
}
wtf this is horrible
*/

/* Hide when there's no cover image or on page2+ */
.no-cover .scroll-down,
.no-cover.main-header:after,
.archive-template .scroll-down,
.archive-template .main-header:after {
.paged .scroll-down,
.paged .main-header:after {
display: none
}

Expand Down Expand Up @@ -863,7 +870,7 @@ When the navigation is opened
font-weight: 400;
font-family: 'Open Sans',sans-serif;
letter-spacing: 0.01rem;
color: rgba(255,255,255,0.8);
color: rgba(0,0,0,0.5)!important;
}

.header-text{
Expand Down Expand Up @@ -1361,7 +1368,7 @@ body:not(.post-template) .post-title {

/* Turn off meta for page2+ to make room for extra
pagination prev/next links */
.archive-template .author-profile .author-meta {
.paged .author-profile .author-meta {
display: none;
}

Expand Down Expand Up @@ -1512,7 +1519,7 @@ span.author-stats{

/* Turn off meta for page2+ to make room for extra
pagination prev/next links */
.archive-template .author-profile .author-meta {
.paged .author-profile .author-meta {
display: none;
}

Expand Down Expand Up @@ -1739,12 +1746,12 @@ span.author-stats{
}

/* On page2+ make all the headers smaller */
.archive-template .main-header {
.paged .main-header {
max-height: 30vh;
}

/* On page2+ show extra pagination controls at the top of post list */
.archive-template .extra-pagination {
.paged .extra-pagination {
display: block;
}

Expand Down Expand Up @@ -1802,7 +1809,7 @@ span.author-stats{
.scroll-down,
.home-template .main-header:after { display: none; }

.archive-template .main-header {
.paged .main-header {
min-height: 180px;
padding: 10% 0;
}
Expand Down Expand Up @@ -1948,7 +1955,7 @@ span.author-stats{
max-height: 10px;
}

.archive-template .main-header {
.paged .main-header {
max-height: 20vh;
min-height: 160px;
padding: 10% 0;
Expand Down Expand Up @@ -2214,7 +2221,7 @@ span.author-stats{
font-size: 1.4rem;
}

.archive-template .main-header .page-description {
.paged .main-header .page-description {
display: none;
}

Expand Down
2 changes: 1 addition & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{{! Page Meta }}
<title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}" />
<meta name="description"/>

<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "Nihilanth",
"version": "0.9.7"
"name": "nihilanth",
"version": "1.1.0",
"author": {"email":"danielserezane@outlook.com"}
}

0 comments on commit 4992ab6

Please sign in to comment.