Skip to content

Commit bdc5a79

Browse files
committed
Also apply max width to isolated header and footer
1 parent 6619d7b commit bdc5a79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Elastic.Markdown/Slices/Layout/_Footer.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33

44
<footer class="text-grey-20 text-[12px] bg-ink-dark py-12 px-6">
5-
<div class="container mx-auto">
5+
<div class="max-w-(--max-layout-width) w-full mx-auto">
66
<a href="https://www.elastic.co/">
77
<img class="block" alt="Elastic logo" src="@Model.Static("logo-elastic-horizontal-white.svg")" width="120"/>
88
</a>
99
</div>
10-
<div class="container mx-auto grid grid-cols-1 md:grid-cols-2 gap-2 rounded-tl-4xl rounded-tr-4xl items-center">
10+
<div class="max-w-(--max-layout-width) w-full mx-auto grid grid-cols-1 md:grid-cols-2 gap-2 rounded-tl-4xl rounded-tr-4xl items-center">
1111
<div>
1212
<ul class="mt-4 flex gap-3">
1313
<li>

src/Elastic.Markdown/Slices/Layout/_Header.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
else
99
{
1010
<header class="sticky top-0 z-50 bg-blue-developer text-white text-lg font-semibold h-(--offset-top) flex items-center px-6">
11-
<div class="flex justify-between items-center">
11+
<div class="max-w-(--max-layout-width) w-full mx-auto flex justify-between items-center">
1212
@* ReSharper disable once Html.IdNotResolved *@
1313
<label role="button" class="md:hidden cursor-pointer" for="pages-nav-hamburger">
1414
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-8">

0 commit comments

Comments
 (0)