Skip to content

Commit 041cc53

Browse files
Restrict 4-column grid only to highlight and magazine headers
1 parent a6244aa commit 041cc53

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,15 +1649,15 @@ Search LOGO Login Subscribe
16491649

16501650
/* 11.2. Without sidebar */
16511651

1652-
.gh-container.is-list:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
1652+
.gh-container:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
16531653
grid-column: 3 / span 12;
16541654
}
16551655

16561656
.gh-container.is-list.no-image:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
16571657
grid-column: 4 / span 10;
16581658
}
16591659

1660-
.gh-container.is-grid:not(.has-sidebar) .gh-main {
1660+
.gh-header:is(.is-highlight, .is-magazine) ~ .gh-container.is-grid:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
16611661
grid-column: 1 / -1;
16621662
}
16631663

@@ -1774,7 +1774,7 @@ Search LOGO Login Subscribe
17741774

17751775
.gh-container.is-grid .gh-feed {
17761776
display: grid;
1777-
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
1777+
grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
17781778
row-gap: calc(var(--grid-gap) * 1.5);
17791779
overflow: hidden;
17801780
}

0 commit comments

Comments
 (0)