Skip to content

Commit 6a050dc

Browse files
authored
Merge branch 'main' into feat/tabs
2 parents 00f736f + a0624dd commit 6a050dc

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

assets/css/v2/style.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ nav {
220220
z-index: 9999;
221221
}
222222

223-
@media (max-width: 1512px) {
223+
@media (max-width: 1528px) {
224224
.sidebar-layout {
225225
display: none;
226226
}
@@ -278,6 +278,7 @@ nav {
278278
display: grid;
279279
grid-template-rows: repeat(2, auto);
280280
column-gap: var(--component-gap);
281+
max-width: 100%;
281282
}
282283

283284
.breadcrumb-layout {
@@ -349,6 +350,23 @@ nav {
349350
}
350351
}
351352

353+
.api {
354+
margin: 2rem 0 2rem 2rem;
355+
width: 100%;
356+
.row {
357+
display: grid !important;
358+
}
359+
360+
.nginx-docs-api-container {
361+
grid-column: 1 / -1 !important;
362+
max-width: 100% !important;
363+
}
364+
365+
.content-layout {
366+
grid-template-columns: 1fr var(--side-gutter-width);
367+
}
368+
}
369+
352370
.main {
353371
display: flex;
354372
}
@@ -360,6 +378,8 @@ nav {
360378
position: sticky;
361379
top: 0;
362380
height: 100vh;
381+
margin-top: -1rem;
382+
padding-top: 1rem;
363383
}
364384

365385
.sidebar .product-selector-button {
@@ -385,7 +405,8 @@ nav {
385405
position: absolute;
386406
top: 0;
387407
min-width: 80%;
388-
margin-left: 46rem;
408+
margin-top: 1rem;
409+
margin-left: 44rem;
389410
padding: 1rem 1.5rem;
390411
background-color: white;
391412
border: black 1px solid;

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
});
5858

5959
// swap out v1 and v2 elements
60-
const v1ElementIds = ["sidebar", "footer", "toc"];
60+
const v1ElementIds = ["sidebar", "footer", "toc", "api"]
6161

6262
v1ElementIds.forEach((elementId) => {
6363
const element = document.getElementById(elementId);

0 commit comments

Comments
 (0)