Skip to content

Commit

Permalink
🚨 Fixed GScan issues
Browse files Browse the repository at this point in the history
no issue

- Added missing `.kg-bookmark` styles
- Updated `error.code` to be `error.statusCode`
  • Loading branch information
aileen committed Jan 9, 2020
1 parent 291b221 commit b821e05
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/main/css/main.css

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions assets/main/sass/layout/_ghost.scss
Expand Up @@ -296,6 +296,88 @@
margin: -2.25em 0 3em;
}

.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;
}

// Error Pages
// --------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion error.hbs
Expand Up @@ -40,7 +40,7 @@ You'll notice that we *don't* use any JavsScript, or ghost_head / ghost_foot in
<section class="post error-wrapper">

<section class="error-message">
<h1 class="error-code">{{code}}</h1>
<h1 class="error-code">{{statusCode}}</h1>
<p class="error-description">{{message}}</p>
<a class="error-link" href="{{@site.url}}">Go to the front page →</a>
</section>
Expand Down

0 comments on commit b821e05

Please sign in to comment.