Skip to content

Commit

Permalink
Update to support Ghost 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twkisner committed Jan 4, 2020
1 parent 02e3f1e commit 5987d8f
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,84 @@
color: black;
border-color: black;
}
.kg-bookmark-card {
width: 100%;
position: relative;
}

.kg-bookmark-container {
display: flex;
flex-wrap: wrap;
flex-direction: row-reverse;
color: currentColor;
font-family: inherit;
text-decoration: none;
border: 1px solid rgba(0, 0, 0, 0.1);
}

.kg-bookmark-container:hover {
text-decoration: none;
}

.kg-bookmark-content {
flex-basis: 0;
flex-grow: 999;
padding: 20px;
order: 1;
}

.kg-bookmark-title {
font-weight: 600;
}

.kg-bookmark-metadata,
.kg-bookmark-description {
margin-top: .5em;
}

.kg-bookmark-metadata {
align-items: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.kg-bookmark-description {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}

.kg-bookmark-icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: text-bottom;
margin-right: .5em;
margin-bottom: .05em;
}

.kg-bookmark-thumbnail {
display: flex;
flex-basis: 24rem;
flex-grow: 1;
}

.kg-bookmark-thumbnail img {
max-width: 100%;
height: auto;
vertical-align: bottom;
object-fit: cover;
}

.kg-bookmark-author {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

.kg-bookmark-publisher::before {
content: "•";
margin: 0 .5em;
}

0 comments on commit 5987d8f

Please sign in to comment.