mirror of
https://github.com/TryGhost/Ruby.git
synced 2024-10-29 20:38:33 +02:00
Remove bookmark and gallery card assets
This commit is contained in:
parent
dfecc39d14
commit
94ab5fbc0d
2
assets/built/main.min.js
vendored
Executable file → Normal file
2
assets/built/main.min.js
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -27,126 +27,3 @@
|
|||||||
.kg-image-card .kg-image {
|
.kg-image-card .kg-image {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-gallery-container {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-gallery-row {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-gallery-image {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-gallery-image img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-gallery-row:not(:first-of-type) {
|
|
||||||
margin: 10px 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-gallery-image:not(:first-of-type) {
|
|
||||||
margin: 0 0 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-card {
|
|
||||||
border: 1px solid var(--mid-gray-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-container {
|
|
||||||
display: flex;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-container::after {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-content {
|
|
||||||
flex-grow: 1;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-title {
|
|
||||||
color: var(--dark-gray-color);
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.3;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-description {
|
|
||||||
overflow: hidden;
|
|
||||||
margin-top: 5px;
|
|
||||||
color: var(--secondary-text-color);
|
|
||||||
font-size: 14px;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-metadata {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: 5px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-icon {
|
|
||||||
margin-right: 5px;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* These classes will be deprecated. Keep them for GScan validation. */
|
|
||||||
.kg-bookmark-author,
|
|
||||||
.kg-bookmark-publisher {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-metadata > span {
|
|
||||||
color: var(--dark-gray-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-metadata > span:nth-of-type(2)::before {
|
|
||||||
content: "•";
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-thumbnail {
|
|
||||||
position: relative;
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: 180px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-thumbnail img {
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
border-radius: 0 4px 4px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
.kg-bookmark-container {
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-thumbnail {
|
|
||||||
margin-left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-bookmark-thumbnail img {
|
|
||||||
border-radius: 0 0 4px 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -79,15 +79,6 @@ function video() {
|
|||||||
|
|
||||||
function gallery() {
|
function gallery() {
|
||||||
'use strict';
|
'use strict';
|
||||||
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%';
|
|
||||||
});
|
|
||||||
|
|
||||||
pswp(
|
pswp(
|
||||||
'.kg-gallery-container',
|
'.kg-gallery-container',
|
||||||
'.kg-gallery-image',
|
'.kg-gallery-image',
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
"width": 1920
|
"width": 1920
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"card_assets": true,
|
||||||
"custom": {
|
"custom": {
|
||||||
"title_font": {
|
"title_font": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
|
Loading…
Reference in New Issue
Block a user