Skip to content

Commit 8b8a3ee

Browse files
committed
Header: Fix coveo search breaking page height
1 parent a33f8ce commit 8b8a3ee

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

assets/css/v2/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ ol li:last-child {
443443

444444
.header__search {
445445
width: 14rem;
446+
/* This is a horrible hack to stop coveo overflowing 3500px for no reason. :sad */
447+
transform: translateY(0);
448+
overflow: hidden;
446449
}
447450

448451
.header__product-selector {
@@ -514,6 +517,7 @@ ol li:last-child {
514517
height: 2rem;
515518
stroke: currentColor;
516519
color: black;
520+
transition: color 0.2s ease;
517521
}
518522
}
519523

@@ -1057,7 +1061,7 @@ body:not(:has(.main-layout)) header atomic-search-interface {
10571061
display: none;
10581062
position: absolute;
10591063
top: 0;
1060-
margin-top: 4em;
1064+
margin-top: calc(var(--header-height) - 1rem);
10611065
padding: 1rem 1.5rem;
10621066
background-color: oklch(var(--color-background));
10631067
border: oklch(var(--color-foreground)) 1px solid;

layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "main" }}
22

3-
<main class="content content-has-toc" role="main">
3+
<main class="content " role="main">
44
<section class="main-layout">
55
<section id="maincontent" class="content-layout">
66
<div data-cms-edit="content" class="text-content list-page">

layouts/_default/single.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<main class="content">
44
<!-- Replace icons -->
55
{{ $content := partial "icon-replacement.html" (dict "content" .Content) }}
6-
<main role="main">
6+
77

88
<section class="main-layout">
99
<section id="maincontent" class="content-layout">
@@ -34,7 +34,6 @@ <h1>{{ .Title }}</h1>
3434

3535
{{ partial "previous-next-links-in-section-with-title.html" . }}
3636

37-
</main>
3837
</section>
3938
</section>
4039
</main>

layouts/partials/header.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@
116116
</div>
117117
</button>
118118
<div class="dropdown-content" id="dropdown-content">
119-
<ul>
120-
{{ range $f5Sites }}
121-
<li>
122-
<a href="{{ .url }}" target="_blank" >{{ .title }}</a>
123-
<p>{{ .description }}</p>
124-
</li>
125-
{{ end }}
126-
</ul>
119+
<ul>
120+
{{ range $f5Sites }}
121+
<li>
122+
<a href="{{ .url }}" target="_blank" >{{ .title }}</a>
123+
<p>{{ .description }}</p>
124+
</li>
125+
{{ end }}
126+
</ul>
127127
</div>
128128

129129
</div>

0 commit comments

Comments
 (0)