Compare commits

..

3 Commits

Author SHA1 Message Date
b06bcd6534 v4.4.0 2021-12-08 15:00:14 +00:00
49f99d956f Add dark mode support to product card star rating 2021-12-08 17:17:47 +08:00
cdb03b65fb Add alternate blockquote styles 2021-12-07 19:05:00 +08:00
4 changed files with 32 additions and 7 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

@ -1005,7 +1005,7 @@ is the very first element in the post content */
text-decoration: underline; text-decoration: underline;
} }
.gh-content > blockquote, .gh-content > blockquote:not([class]),
.gh-content > ol, .gh-content > ol,
.gh-content > ul, .gh-content > ul,
.gh-content > dl, .gh-content > dl,
@ -1053,13 +1053,13 @@ is the very first element in the post content */
padding-left: 1.9em; padding-left: 1.9em;
} }
.gh-content > blockquote { .gh-content > blockquote:not([class]) {
position: relative; position: relative;
font-style: italic; font-style: italic;
padding: 0; padding: 0;
} }
.gh-content > blockquote::before { .gh-content > blockquote:not([class])::before {
content: ""; content: "";
position: absolute; position: absolute;
left: -1.5em; left: -1.5em;
@ -1093,7 +1093,7 @@ is the very first element in the post content */
} }
@media (max-width: 650px) { @media (max-width: 650px) {
.gh-content > blockquote, .gh-content > blockquote:not([class]),
.gh-content > ol, .gh-content > ol,
.gh-content > ul, .gh-content > ul,
.gh-content > dl, .gh-content > dl,
@ -1151,6 +1151,15 @@ except for when immediately preceeded by a heading */
margin-top: min(2.4rem, 4vmin); margin-top: min(2.4rem, 4vmin);
} }
.kg-blockquote-alt {
font-family: var(--font-serif);
color: var(--color-midgrey);
}
.has-sans-body .kg-blockquote-alt {
font-family: var(--font-sans);
}
/* Captions */ /* Captions */
figcaption { figcaption {
@ -1867,6 +1876,14 @@ html.dark-mode .site-archive-header .no-image {
background: var(--color-darkmode); background: var(--color-darkmode);
} }
html.dark-mode .kg-product-card-rating-active.kg-product-card-rating-star svg {
fill: #ebeef0;
}
html.dark-mode .kg-product-card-rating-star svg {
fill: #394047;
}
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
html.auto-color body { html.auto-color body {
color: rgba(255, 255, 255, 0.75); color: rgba(255, 255, 255, 0.75);
@ -2004,6 +2021,14 @@ html.dark-mode .site-archive-header .no-image {
color: rgba(255, 255, 255, 0.9); color: rgba(255, 255, 255, 0.9);
background: var(--color-darkmode); background: var(--color-darkmode);
} }
html.auto-color .kg-product-card-rating-active.kg-product-card-rating-star svg {
fill: #ebeef0;
}
html.auto-color .kg-product-card-rating-star svg {
fill: #394047;
}
} }
/* /*

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.3.1", "version": "4.4.0",
"engines": { "engines": {
"ghost": ">=4.0.0", "ghost": ">=4.0.0",
"ghost-api": "v4" "ghost-api": "v4"