From 6aeb71ac844284b9ffa3cc86d1c58726f084593d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Mar 2024 00:10:16 +0100 Subject: [PATCH] Declutter pages and add dark mode --- .../src/main/resources/static/search/serp.scss | 7 ++++++- .../resources/templates/search/parts/search-footer.hdb | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/services-application/search-service/src/main/resources/static/search/serp.scss b/code/services-application/search-service/src/main/resources/static/search/serp.scss index e9a70a99..b0f4181e 100644 --- a/code/services-application/search-service/src/main/resources/static/search/serp.scss +++ b/code/services-application/search-service/src/main/resources/static/search/serp.scss @@ -22,6 +22,11 @@ progress { width: 10ch; } +/* dark mode, pls find a better solution */ +html { + filter: invert(1) hue-rotate(180deg); +} + body { background-color: $nicotine-light; color: $fg-dark; @@ -705,4 +710,4 @@ footer { // The search results page is very confusing on text-based browsers, so we add a hr to separate the search results. This is // hidden on modern browsers via CSS. -hr.w3m-helper { display: none; } \ No newline at end of file +hr.w3m-helper { display: none; } diff --git a/code/services-application/search-service/src/main/resources/templates/search/parts/search-footer.hdb b/code/services-application/search-service/src/main/resources/templates/search/parts/search-footer.hdb index 2b22b395..66661aed 100644 --- a/code/services-application/search-service/src/main/resources/templates/search/parts/search-footer.hdb +++ b/code/services-application/search-service/src/main/resources/templates/search/parts/search-footer.hdb @@ -1,4 +1,6 @@