Compare commits

...

17 Commits
1.3.2 ... 1.3.7

Author SHA1 Message Date
0c27a8eaee Upgrading Casper to 1.3.7 2017-06-16 09:50:53 +01:00
2334ca8aa4 Allow line breaks from Bio (#310) 2017-06-05 09:06:47 +01:00
26a25208e1 Upgrading Casper to 1.3.6 2017-03-01 13:47:57 +01:00
805925528c move font above css include (#279) 2017-02-24 12:23:02 +07:00
68e48cfb04 Remove role attributes intended for tabbed navigation
Closes #285
2017-02-23 13:25:47 +07:00
c578765491 Upgrading Casper to 1.3.5 2017-01-12 12:41:55 +01:00
ba5d559d8c 2017 2017-01-04 10:53:34 +00:00
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
6 changed files with 56 additions and 35 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2013-2016 Ghost Foundation
Copyright (c) 2013-2017 Ghost Foundation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

View File

@ -6,11 +6,5 @@ To download, visit the [releases](https://github.com/TryGhost/Casper/releases) p
## Copyright & License
Copyright (c) 2013-2016 Ghost Foundation - Released under the MIT License.
Copyright (c) 2013-2017 Ghost Foundation - Released under the [MIT license](LICENSE).
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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;
}
@ -1377,6 +1392,7 @@ body:not(.post-template) .post-title {
color: #50585D;
letter-spacing: 0;
text-indent: 0;
white-space: pre;
}
.author-meta {
@ -1400,7 +1416,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 +1645,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 +1774,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 +1801,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 +1920,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 +2007,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 +2073,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 +2163,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

@ -17,8 +17,9 @@
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
{{!-- Ghost outputs important style and meta data with this tag --}}
{{ghost_head}}
@ -42,7 +43,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.7",
"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"

View File

@ -5,7 +5,7 @@
</a>
<ul>
{{#foreach navigation}}
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}"><a href="{{url absolute="true"}}">{{label}}</a></li>
{{/foreach}}
</ul>
{{#if @labs.subscribers}}