Compare commits

...

10 Commits
1.3.2 ... 1.3.4

Author SHA1 Message Date
b06c57f1e1 Upgrading Casper to 1.3.4 2016-10-24 16:51:12 +01:00
99ff118174 Merge pull request #274 from eibt/patch-1
Use protocol-relative URL for jQuery script
2016-10-24 14:35:22 +01:00
054cd87653 No margin-bottom for last p inside li tags (#262)
Fixes #241.
2016-10-24 20:17:30 +07:00
5060c945e6 Fixed page title and description being visible before fading in (#268) 2016-10-24 20:15:01 +07:00
d07d6dee09 🐛 Fix .post-title (#273)
no issue

fixes the post-title font-size again, as it didn't work with two body:notstatements.
2016-10-24 20:11:49 +07:00
0d8228ff05 Use protocol-relative URL for jQuery script
Use protocol-relative URL in the script element that includes jQuery to improve availability and consistency as it's being used for Google Fonts too.
2016-10-13 17:03:11 -06:00
27270d3de3 Upgrading Casper to 1.3.3 2016-10-07 16:08:38 +01:00
09476487f0 🐛 Fixing package.json engines & repo URL
no issue

- semver caret ranges don't apply pre-1.0.0, therefore we need to use a more explicit range
- repo URL should be a valid url
2016-10-07 16:05:10 +01:00
d2d796241b 🎨 Removing homepage from package.json
no issue

- this is not going to be a required field, and for Casper is the same as the repo
2016-10-07 15:56:54 +01:00
c1b77b74cb Remove old body classes (#272)
refs TryGhost/Ghost#2597

Make Casper work without old body classes `.archive-template`, `.page` and use `.page-template` *only* for pages, as `.post-template` will not be available for pages anymore.
2016-10-07 14:02:00 +02:00
3 changed files with 50 additions and 25 deletions

View File

@ -295,6 +295,10 @@ li li {
margin: 0;
}
li > p:last-of-type {
margin-bottom: 0;
}
hr {
display: block;
height: 1px;
@ -833,8 +837,8 @@ body.nav-opened .nav {
/* 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
}
@ -976,13 +980,13 @@ body.nav-opened .nav {
/* Add subtle load-in animation for content on the home page */
.home-template .page-title {
-webkit-animation: fade-in-down 0.6s;
animation: fade-in-down 0.6s;
animation: fade-in-down 0.6s both;
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.home-template .page-description {
-webkit-animation: fade-in-down 0.9s;
animation: fade-in-down 0.9s;
animation: fade-in-down 0.9s both;
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
@ -1019,6 +1023,10 @@ body:not(.post-template) .post-title {
font-size: 3.6rem;
}
body.page-template .post-title {
font-size: 5rem;
}
.post-title a {
text-decoration: none;
}
@ -1117,19 +1125,23 @@ body:not(.post-template) .post-title {
5. Single Post - When you click on an individual post
========================================================================== */
.post-template .post-header {
.post-template .post-header,
.page-template .post-header {
margin-bottom: 3.4rem;
}
.post-template .post-title {
.post-template .post-title,
.page-template .post-title {
margin-bottom: 0;
}
.post-template .post-meta {
.post-template .post-meta,
.page-template .post-meta {
margin: 0;
}
.post-template .post-date {
.post-template .post-date,
.page-template .post-date {
padding: 0;
margin: 0;
border: none;
@ -1138,19 +1150,22 @@ body:not(.post-template) .post-title {
/* Stop elements, such as img wider than the post content, from
creating horizontal scroll - slight hack due to imperfections
with browser width % calculations and rounding */
.post-template .content {
.post-template .content,
.page-template .content {
overflow: hidden;
}
/* Tweak the .post wrapper style */
.post-template .post {
.post-template .post,
.page-template .post {
margin-top: 0;
border-bottom: none;
padding-bottom: 0;
}
/* Kill that stylish little circle that was on the border, too */
.post-template .post:after {
.post-template .post:after,
.page-template .post:after {
display: none;
}
@ -1400,7 +1415,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;
}
@ -1629,12 +1644,12 @@ body:not(.post-template) .post-title {
}
/* 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;
}
@ -1758,7 +1773,7 @@ body:not(.post-template) .post-title {
.scroll-down,
.home-template .main-header:after { display: none; }
.archive-template .main-header {
.paged .main-header {
min-height: 180px;
padding: 10% 0;
}
@ -1785,6 +1800,10 @@ body:not(.post-template) .post-title {
font-size: 3.2rem;
}
body.page-template .post-title {
font-size: 4.5rem;
}
hr {
margin: 2.4em 0;
}
@ -1900,7 +1919,7 @@ body:not(.post-template) .post-title {
height: 30vh;
}
.archive-template .main-header {
.paged .main-header {
max-height: 20vh;
min-height: 160px;
padding: 10% 0;
@ -1987,11 +2006,13 @@ body:not(.post-template) .post-title {
display: none;
}
.post-template .post-header {
.post-template .post-header,
.page-template .post-header {
margin-bottom: 2rem;
}
.post-template .post-date {
.post-template .post-date,
.page-template .post-date {
display: inline-block;
}
@ -2051,7 +2072,12 @@ body:not(.post-template) .post-title {
font-size: 2.5rem;
}
.post-template .site-footer {
body.page-template .post-title {
font-size: 2.8rem;
}
.post-template .site-footer,
.page-template .site-footer {
margin-top: 0;
}
@ -2136,7 +2162,7 @@ body:not(.post-template) .post-title {
font-size: 1.4rem;
}
.archive-template .main-header .page-description {
.paged .main-header .page-description {
display: none;
}

View File

@ -42,7 +42,7 @@
</div>
{{!-- jQuery needs to come before `{{ghost_foot}}` so that jQuery can be used in code injection --}}
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"></script>
{{!-- Ghost outputs important scripts and data with this tag --}}
{{ghost_foot}}
{{!-- Fitvids makes video embeds responsive and awesome --}}

View File

@ -1,11 +1,10 @@
{
"name": "casper",
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
"homepage": "http://github.com/TryGhost/Casper",
"demo": "https://demo.ghost.io",
"version": "1.3.2",
"version": "1.3.4",
"engines": {
"ghost": "^0.9.0"
"ghost": ">=0.9.0 <1.0.0"
},
"license": "MIT",
"screenshots": {
@ -30,7 +29,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/TryGhost/Casper.git"
"url": "https://github.com/TryGhost/Casper.git"
},
"bugs": "https://github.com/TryGhost/Casper/issues",
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors"