From b30fa9352140201bdbd1f13ab6577b55eacc14a8 Mon Sep 17 00:00:00 2001 From: Davide <davide@suma-ev.de> Date: Tue, 20 Oct 2020 14:33:50 +0200 Subject: [PATCH] fixed startpage in light mode --- app/Http/Controllers/StartpageController.php | 3 +-- resources/less/metager/startpage-only.less | 6 +++--- webpack.mix.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/StartpageController.php b/app/Http/Controllers/StartpageController.php index 6f7d66fc8..94554a07d 100644 --- a/app/Http/Controllers/StartpageController.php +++ b/app/Http/Controllers/StartpageController.php @@ -43,10 +43,9 @@ class StartpageController extends Controller $lang = 'all'; } + $css = mix('css/themes/startpage-only-light.css'); if(Cookie::get('dark_mode') === "2") $css = mix('css/themes/startpage-only-dark.css'); - else - $css = mix('css/themes/startpage-only-light.css'); return view('index') ->with('title', trans('titles.index')) diff --git a/resources/less/metager/startpage-only.less b/resources/less/metager/startpage-only.less index aaeee14cd..e5ac5557d 100644 --- a/resources/less/metager/startpage-only.less +++ b/resources/less/metager/startpage-only.less @@ -81,15 +81,15 @@ html { } &>:nth-child(2) { background-color: @story-ngo-background; - color: #AD1A00 + color: @story-ngo-color; } &>:nth-child(3) { background-color: @story-diversity-background; - color: #0C4690; + color: @story-diversity-color; } &>:nth-child(4) { background-color: @story-eco-background; - color: #0c621A; + color: @story-eco-color; } &>a { diff --git a/webpack.mix.js b/webpack.mix.js index 0eecdfda1..70865442f 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -22,7 +22,7 @@ mix .less("resources/less/metager/metager.less", "public/css/themes/metager.css", { strictMath: true }) - .less("resources/less/metager/startpage-only-light.less", "public/css/themes/startpage-only-dark.css", { + .less("resources/less/metager/startpage-only-light.less", "public/css/themes/startpage-only-light.css", { strictMath: true }) .less("resources/less/metager/startpage-only-dark.less", "public/css/themes/startpage-only-dark.css", { -- GitLab