Ghost_Ruby_Theme/assets/css/misc/kg.css

140 lines
2.2 KiB
CSS
Raw Normal View History

2019-05-14 18:48:55 +03:00
.kg-width-wide,
.kg-width-full {
2020-09-28 06:05:46 +03:00
margin-right: -30px;
2020-10-19 04:07:40 +03:00
margin-left: -30px;
2020-09-28 06:05:46 +03:00
max-width: calc(100% + 60px);
width: auto;
2019-05-14 18:48:55 +03:00
}
2020-09-24 05:18:34 +03:00
.kg-width-wide img,
.kg-width-full img {
2020-09-28 06:05:46 +03:00
width: 100%;
}
2020-09-24 05:18:34 +03:00
2020-03-23 11:04:05 +02:00
.kg-image-card .kg-image {
2020-09-28 06:05:46 +03:00
cursor: pointer;
2020-03-23 11:04:05 +02:00
}
2020-09-24 05:18:34 +03:00
2019-05-14 18:48:55 +03:00
.kg-gallery-container {
2020-09-28 06:05:46 +03:00
display: flex;
flex-direction: column;
2019-05-14 18:48:55 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-14 18:48:55 +03:00
.kg-gallery-row {
2020-09-28 06:05:46 +03:00
display: flex;
flex-direction: row;
justify-content: center;
2019-05-14 18:48:55 +03:00
}
2020-09-24 05:18:34 +03:00
2020-03-22 10:50:59 +02:00
.kg-gallery-image {
2020-09-28 06:05:46 +03:00
cursor: pointer;
2019-05-14 18:48:55 +03:00
}
2020-09-24 05:18:34 +03:00
.kg-gallery-image img {
2020-09-28 06:05:46 +03:00
width: 100%;
2020-10-19 04:07:40 +03:00
height: 100%;
}
2020-09-24 05:18:34 +03:00
2019-05-14 18:48:55 +03:00
.kg-gallery-row:not(:first-of-type) {
2020-09-28 06:05:46 +03:00
margin: 10px 0 0 0;
2019-05-14 18:48:55 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-14 18:48:55 +03:00
.kg-gallery-image:not(:first-of-type) {
2020-09-28 06:05:46 +03:00
margin: 0 0 0 10px;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-card {
2020-09-28 06:05:46 +03:00
border: 1px solid var(--mid-gray-color);
border-radius: 4px;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-container {
2020-09-28 06:05:46 +03:00
display: flex;
overflow: hidden;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-container::after {
2020-09-28 06:05:46 +03:00
display: none;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-content {
2021-03-09 07:40:19 +02:00
flex-grow: 1;
2020-09-28 06:05:46 +03:00
overflow: hidden;
padding: 25px;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-title {
2020-09-28 06:05:46 +03:00
color: var(--dark-gray-color);
2020-11-09 07:44:58 +02:00
font-size: 16px;
2020-09-28 06:05:46 +03:00
line-height: 1.3;
2020-10-19 04:07:40 +03:00
font-weight: 700;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-description {
2020-09-28 06:05:46 +03:00
overflow: hidden;
2020-10-19 04:07:40 +03:00
margin-top: 5px;
color: var(--secondary-text-color);
2020-11-09 07:44:58 +02:00
font-size: 14px;
2020-09-28 06:05:46 +03:00
text-overflow: ellipsis;
white-space: nowrap;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-metadata {
2020-09-28 06:05:46 +03:00
display: flex;
2020-11-09 07:44:58 +02:00
flex-wrap: wrap;
2020-10-19 04:07:40 +03:00
align-items: center;
2020-09-28 06:05:46 +03:00
margin-top: 5px;
2020-11-09 07:44:58 +02:00
font-size: 12px;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-icon {
2020-09-28 06:05:46 +03:00
margin-right: 5px;
width: 20px;
2020-10-19 04:07:40 +03:00
height: 20px;
}
2020-09-24 05:18:34 +03:00
2020-11-24 06:24:08 +02:00
/* These classes will be deprecated. Keep them for GScan validation. */
.kg-bookmark-author,
.kg-bookmark-publisher {
display: inline;
}
.kg-bookmark-metadata > span {
2020-09-28 06:05:46 +03:00
color: var(--dark-gray-color);
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-metadata > span:nth-of-type(2)::before {
2020-09-28 06:05:46 +03:00
content: "•";
padding: 0 5px;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-thumbnail {
2020-10-19 04:07:40 +03:00
position: relative;
2020-09-28 06:05:46 +03:00
flex-shrink: 0;
2020-11-09 07:44:58 +02:00
width: 180px;
}
2020-09-24 05:18:34 +03:00
.kg-bookmark-thumbnail img {
2020-09-28 06:05:46 +03:00
position: absolute;
width: 100%;
2020-10-19 04:07:40 +03:00
height: 100%;
object-fit: cover;
2020-11-09 07:44:58 +02:00
border-radius: 0 4px 4px 0;
}
2020-09-24 05:18:34 +03:00
@media (max-width: 767px) {
2020-09-28 06:05:46 +03:00
.kg-bookmark-container {
flex-direction: column;
}
.kg-bookmark-thumbnail {
margin-left: 0;
width: 100%;
2020-10-19 04:07:40 +03:00
height: 200px;
2020-09-28 06:05:46 +03:00
}
2020-11-09 07:44:58 +02:00
.kg-bookmark-thumbnail img {
border-radius: 0 0 4px 4px;
}
}