Skip to content

Commit e9b2699

Browse files
committed
Search: Fix search page render on new grid
1 parent d53d624 commit e9b2699

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

assets/css/v2/style.css

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,32 @@ ol li:last-child {
349349
}
350350
}
351351

352+
/* Homepage specific layout */
353+
.grid-container:has(.homepage) {
354+
grid-template-columns: 1fr;
355+
grid-template-areas:
356+
"header"
357+
"content"
358+
"footer";
359+
360+
.sidebar {
361+
display: none;
362+
}
363+
}
364+
365+
/* Search specific layout */
366+
.grid-container:has(.search) {
367+
grid-template-columns: 1fr;
368+
grid-template-areas:
369+
"header"
370+
"content"
371+
"footer";
372+
373+
.sidebar {
374+
display: none;
375+
}
376+
}
377+
352378
.header {
353379
grid-area: header;
354380
display: flex;
@@ -577,18 +603,6 @@ nav {
577603
/* MARK: Homepage
578604
*/
579605

580-
.grid-container:has(.homepage) {
581-
grid-template-columns: 1fr;
582-
grid-template-areas:
583-
"header"
584-
"content"
585-
"footer";
586-
587-
.sidebar {
588-
display: none;
589-
}
590-
}
591-
592606
.homepage {
593607
--content-max-width: 120rem;
594608

layouts/search/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ define "main" }}
2-
<section class="main-layout" style="margin-left: 2rem;" >
2+
<section class="search" style="margin-left: 2rem;" >
33
{{ partial "coveo-atomic.html" .}}
44
</section>
55
{{ end }}

0 commit comments

Comments
 (0)