Skip to content

Commit

Permalink
[Solo] Fixed title and excerpt alignment on pages without feature image
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaluminium committed Nov 18, 2024
1 parent 8c92e06 commit 68d20be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/solo/assets/built/screen.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/solo/assets/built/screen.css.map

Large diffs are not rendered by default.

20 changes: 8 additions & 12 deletions packages/solo/assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ hr {
grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gh-canvas > * {
.gh-canvas > *,
.page-template .no-image :is(.gh-article-title, .gh-article-excerpt) {
grid-column: 4 / span 6;
}

Expand All @@ -75,7 +76,8 @@ hr {
}

@media (max-width: 991px) {
.gh-canvas > * {
.gh-canvas > *,
.page-template .no-image :is(.gh-article-title, .gh-article-excerpt) {
grid-column: 3 / span 8;
}

Expand All @@ -85,7 +87,8 @@ hr {
}

@media (max-width: 767px) {
.gh-canvas > * {
.gh-canvas > *,
.page-template .no-image :is(.gh-article-title, .gh-article-excerpt) {
grid-column: 2 / span 10;
}

Expand All @@ -95,7 +98,8 @@ hr {
}

@media (max-width: 480px) {
.gh-canvas > * {
.gh-canvas > *,
.page-template .no-image :is(.gh-article-title, .gh-article-excerpt) {
grid-column: 1 / span 12;
}
}
Expand Down Expand Up @@ -683,10 +687,6 @@ hr {
letter-spacing: -0.03em;
}

.page-template .no-image .gh-article-title {
grid-column: 4 / span 6;
}

.has-serif-font:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]):not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-article-title {
font-family: var(--gh-font-heading, var(--font-serif));
}
Expand All @@ -703,10 +703,6 @@ hr {
line-height: 1.45;
}

.page-template .no-image .gh-article-excerpt {
grid-column: 4 / span 6;
}

.has-serif-font:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]):not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-article-excerpt {
font-family: var(--gh-font-body, var(--font-serif));
}
Expand Down

0 comments on commit 68d20be

Please sign in to comment.