mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-14 17:56:05 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
78993720fd | |||
676e17bd13 | |||
67e595741c | |||
7a88c88ea2 | |||
a0e42e0599 | |||
dc3bb316c7 |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -842,6 +842,7 @@ The first (most recent) post in the list is styled to be bigger than the others
|
|||||||
display: block;
|
display: block;
|
||||||
margin: 1.5em auto;
|
margin: 1.5em auto;
|
||||||
max-width: 1040px;
|
max-width: 1040px;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
@media (max-width: 1040px) {
|
@media (max-width: 1040px) {
|
||||||
.post-full-content img,
|
.post-full-content img,
|
||||||
@ -881,8 +882,9 @@ Usage (In Ghost editor):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Override third party iframe styles */
|
||||||
.post-full-content iframe {
|
.post-full-content iframe {
|
||||||
margin: 0 auto;
|
margin: 0 auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-full-content blockquote {
|
.post-full-content blockquote {
|
||||||
@ -1848,48 +1850,70 @@ Usage (In Ghost editor):
|
|||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content figcaption {
|
.post-full-content figure {
|
||||||
|
margin: 1.5em 0 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-full-content figure img {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-full-content figcaption {
|
||||||
|
margin: 1.0em 0 0;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-image-card {
|
.kg-width-full figcaption {
|
||||||
margin: 0 0 1.5em;
|
padding: 0 1.5em;
|
||||||
}
|
|
||||||
|
|
||||||
.kg-image-card figcaption {
|
|
||||||
margin: -1.0em 0 1.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-embed-card {
|
.kg-embed-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 1.5em 0 3em;
|
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-embed-card figcaption {
|
|
||||||
margin: 0.5em 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-embed-card .fluid-width-video-wrapper {
|
.kg-embed-card .fluid-width-video-wrapper {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.kg-image-full + figcaption {
|
|
||||||
padding: 0 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 1040px) {
|
@media (max-width: 1040px) {
|
||||||
.post-full-content .kg-width-full .kg-image {
|
.post-full-content .kg-width-full .kg-image {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kg-gallery-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
max-width: 1040px;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-gallery-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-gallery-image img {
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-gallery-row:not(:first-of-type) {
|
||||||
|
margin: 0.75em 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-gallery-image:not(:first-of-type) {
|
||||||
|
margin: 0 0 0 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
/* 8. Author Template
|
/* 8. Author Template
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
12
default.hbs
12
default.hbs
@ -55,6 +55,18 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var images = document.querySelectorAll('.kg-gallery-image img');
|
||||||
|
images.forEach(function (image) {
|
||||||
|
var container = image.closest('.kg-gallery-image');
|
||||||
|
var width = image.attributes.width.value;
|
||||||
|
var height = image.attributes.height.value;
|
||||||
|
var ratio = width / height;
|
||||||
|
container.style.flex = ratio + ' 1 0%';
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
|
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
|
||||||
<script
|
<script
|
||||||
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "casper",
|
"name": "casper",
|
||||||
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
|
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
|
||||||
"demo": "https://demo.ghost.io",
|
"demo": "https://demo.ghost.io",
|
||||||
"version": "2.5.1",
|
"version": "2.6.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=2.0.0"
|
"ghost": ">=2.0.0"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user