Compare commits

..

5 Commits

Author SHA1 Message Date
08c1e38ae1 v4.0.2 2021-03-19 16:47:30 +08:00
d9e9e097cd Fix headings and card caption color on dark mode
refs #780
2021-03-19 14:15:52 +08:00
96aac80081 v4.0.1 2021-03-18 17:35:03 +00:00
3fa7f25147 Add Facebook link to the header
Fixes #776
2021-03-18 14:31:56 +08:00
b16671d8a7 v4.0.0 2021-03-15 23:33:48 +00:00
5 changed files with 23 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -274,6 +274,11 @@ production stylesheet in assets/built/screen.css
.gh-social a { .gh-social a {
opacity: 0.8 opacity: 0.8
} }
.gh-social a + a {
margin-left: 0.8rem;
}
.gh-social a:hover { .gh-social a:hover {
opacity: 1; opacity: 1;
} }
@ -284,6 +289,11 @@ production stylesheet in assets/built/screen.css
fill: #fff; fill: #fff;
} }
.gh-social-facebook svg {
height: 20px;
width: 20px;
}
a.gh-head-button { a.gh-head-button {
display: block; display: block;
padding: 8px 15px; padding: 8px 15px;
@ -1807,11 +1817,12 @@ html.dark-mode .no-image .author-social-link a {
color: rgba(255, 255, 255, 0.75); color: rgba(255, 255, 255, 0.75);
} }
html.dark-mode .post-full-content h1, html.dark-mode .gh-content h1,
html.dark-mode .post-full-content h2, html.dark-mode .gh-content h2,
html.dark-mode .post-full-content h3, html.dark-mode .gh-content h3,
html.dark-mode .post-full-content h4, html.dark-mode .gh-content h4,
html.dark-mode .post-full-content h6 { html.dark-mode .gh-content h5,
html.dark-mode .gh-content h6 {
color: rgba(255, 255, 255, 0.9); color: rgba(255, 255, 255, 0.9);
} }
@ -1842,7 +1853,7 @@ html.dark-mode .post-full-content hr:after {
box-shadow: var(--color-darkmode) 0 0 0 5px; box-shadow: var(--color-darkmode) 0 0 0 5px;
} }
html.dark-mode .post-full-content figcaption { html.dark-mode .gh-content figcaption {
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.6);
} }

View File

@ -43,6 +43,9 @@
</div> </div>
<div class="gh-head-actions"> <div class="gh-head-actions">
<div class="gh-social"> <div class="gh-social">
{{#if @site.facebook}}
<a class="gh-social-facebook" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
{{/if}}
{{#if @site.twitter}} {{#if @site.twitter}}
<a class="gh-social-twitter" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a> <a class="gh-social-twitter" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
{{/if}} {{/if}}

View File

@ -2,7 +2,7 @@
"name": "casper", "name": "casper",
"description": "A clean, minimal default theme for the Ghost publishing platform", "description": "A clean, minimal default theme for the Ghost publishing platform",
"demo": "https://demo.ghost.io", "demo": "https://demo.ghost.io",
"version": "4.0.0-rc.2", "version": "4.0.2",
"engines": { "engines": {
"ghost": ">=4.0.0", "ghost": ">=4.0.0",
"ghost-api": "v4" "ghost-api": "v4"