Skip to content

Commit 10c9c4c

Browse files
Fixes navbar
1 parent b2a7488 commit 10c9c4c

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

docs-starlight/src/components/Header.astro

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ try {
3434
}
3535
---
3636

37-
<div class="sl-flex justify-between items-center px-5 xl:px-20">
37+
<div class="sl-flex justify-between items-center px-5 py-5 xl:px-20">
3838
<!-- Logo -->
3939
<a href="/" class="hover:cursor-pointer">
4040
<Image
@@ -101,13 +101,6 @@ try {
101101
<a href="#" class="hidden md:flex primary-button h-[43px]">
102102
Support
103103
</a>
104-
<button class="menu-icon hover:cursor-pointer">
105-
<div class="flex items-center">
106-
<svg data-slot="icon" class="text-white w-6 h-6" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
107-
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9h16.5m-16.5 6.75h16.5" />
108-
</svg>
109-
</div>
110-
</button>
111104
<a href="#" class="flex md:hidden primary-button !p-3">
112105
<Image
113106
src={HeadphonesIcon}
@@ -120,6 +113,7 @@ try {
120113
</div>
121114
</div>
122115
</div>
116+
123117
<div class="block md:hidden justify-center bg-bg-dark px-5 py-2.5 border-b border-stroke-dark">
124118
<div class="flex items-center">
125119
{shouldRenderSearch && <Search {...Astro.props} />}

docs-starlight/src/components/dv-Navbar.astro

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ try {
106106
<a href="https://www.gruntwork.io/services/terragrunt" class="hidden md:flex primary-button">
107107
Enterprise Support
108108
</a>
109-
<button class="menu-icon hover:cursor-pointer">
110-
<div class="flex items-center">
111-
<svg data-slot="icon" class="text-white w-6 h-6" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
112-
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9h16.5m-16.5 6.75h16.5" />
113-
</svg>
114-
</div>
115-
</button>
116109
<a href="https://www.gruntwork.io/services/terragrunt" class="flex md:hidden primary-button !p-3">
117110
<Image
118111
src={HeadphonesIcon}

docs-starlight/src/styles/global.css

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
/* Docs Dark mode colors. */
5656
:root {
57-
--sl-nav-height: 87px;
57+
--sl-nav-height: 96px;
5858
--sl-color-bg-nav: #0F1731;
5959
--sl-color-bg-sidebar: #0F1731;
6060
--sl-color-hairline-shade: #2E375A;
@@ -82,12 +82,15 @@
8282
--sl-color-white: #ffffff;
8383

8484
@media (width >= 768px) {
85-
--sl-nav-height: 84px;
85+
--sl-nav-height: 91px;
86+
}
87+
@media (width < 768px) {
88+
--sl-nav-height: 148px;
8689
}
8790
}
8891
/* Docs Light mode colors. */
8992
:root[data-theme='light'] {
90-
--sl-nav-height: 87px;
93+
--sl-nav-height: 96px;
9194
--sl-color-bg-nav: #0F1731;
9295
--sl-color-bg-sidebar: #ffffff;
9396
--sl-color-bg: #ffffff;
@@ -118,13 +121,19 @@
118121
}
119122
}
120123

121-
header {
122-
display: flex;
124+
.header {
123125
flex-direction: column;
126+
height: auto;
124127
justify-content: center;
125128
padding: 0 !important;
126129
}
127130

131+
@media screen and (max-width: 767px) {
132+
.main-frame {
133+
padding-top: 196px;
134+
}
135+
}
136+
128137
.social-icon {
129138
color: var(--color-gray-1) !important;
130139
cursor: pointer;

0 commit comments

Comments
 (0)