From f96de94864412a17132bae73f3d4764d4932f4a3 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 2 Jul 2021 12:53:45 +0200 Subject: [PATCH 1/3] microsite: add display of no search results Signed-off-by: Patrik Oldsberg --- microsite/static/css/custom.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/microsite/static/css/custom.css b/microsite/static/css/custom.css index 6404b25251..33d9a43556 100644 --- a/microsite/static/css/custom.css +++ b/microsite/static/css/custom.css @@ -137,6 +137,15 @@ td { color: $navigatorItemTextColor; } +/* search */ +[aria-expanded="true"] ~ .aa-without-1 { + display: block !important; +} + +[aria-expanded="true"] ~ .aa-without-1 .aa-dataset-1:after { + content: "No results" +} + /* header */ .fixedHeaderContainer { position: fixed; From e5d765f41969198c50fcda804afdccc1937de9e4 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 2 Jul 2021 13:07:58 +0200 Subject: [PATCH 2/3] microsite: fix search box breakage and avoid unecessary wrapping Signed-off-by: Patrik Oldsberg --- microsite/static/css/custom.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/microsite/static/css/custom.css b/microsite/static/css/custom.css index 33d9a43556..ddc1239efa 100644 --- a/microsite/static/css/custom.css +++ b/microsite/static/css/custom.css @@ -146,6 +146,11 @@ td { content: "No results" } +.navSearchWrapper { + /* Prevents the search box from detaching from its icon when pushed down */ + justify-content: flex-start; +} + /* header */ .fixedHeaderContainer { position: fixed; @@ -155,6 +160,12 @@ td { box-shadow: 3px 3px 8px rgba(38, 38, 38, 0.25); color: #fff; } + +.wrapper.headerWrapper { + /* Keep the header stretched across the screen on the mid breakpoint, since we need a bit more space */ + max-width: 1400px; +} + @media only screen and (min-width: 1024px) { .fixedHeaderContainer { height: 66px; From 228e294d5bd7b74d5687102327e5fbcfde528cda Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 2 Jul 2021 13:19:59 +0200 Subject: [PATCH 3/3] prettier Signed-off-by: Patrik Oldsberg --- microsite/static/css/custom.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microsite/static/css/custom.css b/microsite/static/css/custom.css index ddc1239efa..2c8b46ff00 100644 --- a/microsite/static/css/custom.css +++ b/microsite/static/css/custom.css @@ -138,12 +138,12 @@ td { } /* search */ -[aria-expanded="true"] ~ .aa-without-1 { +[aria-expanded='true'] ~ .aa-without-1 { display: block !important; } -[aria-expanded="true"] ~ .aa-without-1 .aa-dataset-1:after { - content: "No results" +[aria-expanded='true'] ~ .aa-without-1 .aa-dataset-1:after { + content: 'No results'; } .navSearchWrapper {