Skip to content

Commit b0225a9

Browse files
authored
Fix elastic-nav width (#1987)
* Fix elastic-nav width * Run prettier
1 parent 2e71fc5 commit b0225a9

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

src/Elastic.Documentation.Site/Assets/styles.css

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747

4848
@media screen and (min-width: 767px) {
4949
:root {
50-
--offset-top: 123px;
50+
--offset-top: 102px;
5151
}
5252
}
5353

5454
@media screen and (min-width: 992px) {
5555
:root {
56-
--offset-top: 131px;
56+
--offset-top: 110px;
5757
}
5858
}
5959

@@ -186,22 +186,9 @@
186186

187187
#elastic-nav {
188188
@media screen and (min-width: 1200px) {
189-
.oldNav {
190-
& > div {
191-
width: 100%;
192-
max-width: var(--max-layout-width);
193-
}
194-
div:has(> div > nav) {
195-
flex-grow: 1;
196-
justify-content: center;
197-
}
198-
}
199-
}
200-
@media screen and (min-width: 1536px) {
201-
.oldNav {
202-
nav {
203-
margin-left: -74px;
204-
}
189+
[data-component='Container'] {
190+
/* subtract the padding */
191+
max-width: calc(var(--max-layout-width) - (var(--spacing) * 10));
205192
}
206193
}
207194
}

0 commit comments

Comments
 (0)