Skip to content

Commit 4d9c132

Browse files
authored
Remove search-banner background image on non-landing pages. (#8693)
1 parent ffc5b3b commit 4d9c132

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/web_css/lib/src/_base.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,18 @@ pre {
282282

283283
._banner-bg {
284284
background: var(--pub-searchbar-background-color);
285-
background-image: url("../img/hero-bg-static.svg");
286285
background-size: cover;
287286
color: var(--pub-searchbar-text-color);
288287
padding: 10px 0px;
289288

290289
a {
291290
color: var(--pub-link-text-color);
292291
}
292+
293+
// Display background image only on the landing page.
294+
body.page-landing & {
295+
background-image: url("../img/hero-bg-static.svg");
296+
}
293297
}
294298

295299
/*

0 commit comments

Comments
 (0)