Skip to content

Commit e964388

Browse files
committed
feat: merge Casper changes up to v5.5.1
2 parents cbd02ba + bdf1506 commit e964388

File tree

2 files changed

+196
-198
lines changed

2 files changed

+196
-198
lines changed

assets/css/screen.css

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,28 +1304,28 @@ html.no-infinite-scroll .pagination {
13041304
is laid out on top of. Canvas just defines the grid, we don't
13051305
use it for applying any other styles. */
13061306

1307-
.gh-canvas {
1307+
.gh-canvas,
1308+
.kg-width-full.kg-content-wide {
1309+
--gap: max(4vmin, 20px);
1310+
--main: min(var(--content-width, 720px), 100% - var(--gap) * 2);
1311+
--wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
1312+
--full: minmax(var(--gap), 1fr);
1313+
13081314
display: grid;
13091315
grid-template-columns:
1310-
[full-start]
1311-
minmax(max(4vmin, 20px), auto)
1312-
[wide-start]
1313-
minmax(auto, 240px)
1314-
[main-start]
1315-
min(720px, calc(100% - max(8vmin, 40px)))
1316-
[main-end]
1317-
minmax(auto, 240px)
1318-
[wide-end]
1319-
minmax(max(4vmin, 20px), auto)
1320-
[full-end]
1321-
;
1316+
[full-start] var(--full)
1317+
[wide-start] var(--wide)
1318+
[main-start] var(--main) [main-end]
1319+
var(--wide) [wide-end]
1320+
var(--full) [full-end];
13221321
}
13231322

13241323
.gh-canvas > * {
13251324
grid-column: main-start / main-end;
13261325
}
13271326

1328-
.kg-width-wide {
1327+
.kg-width-wide,
1328+
.kg-content-wide > div {
13291329
grid-column: wide-start / wide-end;
13301330
}
13311331

@@ -2128,8 +2128,7 @@ html.dark-mode figcaption a {
21282128
color: #fff;
21292129
}
21302130

2131-
html.dark-mode .gh-head,
2132-
html.dark-mode .has-cover:not(.home-template) .gh-head {
2131+
html.dark-mode body:not(.has-cover) .gh-head {
21332132
background: var(--color-darkmode);
21342133
color: #fff;
21352134
}
@@ -2297,8 +2296,8 @@ html.dark-mode .footer-cta-title {
22972296
}
22982297

22992298
@media (max-width: 767px) {
2300-
html.dark-mode .gh-head-open #gh-head,
2301-
html.dark-mode .gh-head-open #gh-head .gh-head-actions {
2299+
html.dark-mode .gh-head-open:not(.has-cover) #gh-head,
2300+
html.dark-mode .gh-head-open:not(.has-cover) #gh-head .gh-head-actions {
23022301
background: var(--color-darkmode);
23032302
}
23042303
}
@@ -2321,8 +2320,7 @@ html.dark-mode .footer-cta-title {
23212320
color: #fff;
23222321
}
23232322

2324-
html.auto-color .gh-head,
2325-
html.auto-color .has-cover:not(.home-template) .gh-head {
2323+
html.auto-color body:not(.has-cover) .gh-head {
23262324
background: var(--color-darkmode);
23272325
color: #fff;
23282326
}
@@ -2490,8 +2488,8 @@ html.dark-mode .footer-cta-title {
24902488
}
24912489

24922490
@media (max-width: 767px) {
2493-
html.auto-color .gh-head-open #gh-head,
2494-
html.auto-color .gh-head-open #gh-head .gh-head-actions {
2491+
html.auto-color .gh-head-open:not(.has-cover) #gh-head,
2492+
html.auto-color .gh-head-open:not(.has-cover) #gh-head .gh-head-actions {
24952493
background: var(--color-darkmode);
24962494
}
24972495
}

0 commit comments

Comments
 (0)