Skip to content
Snippets Groups Projects
Commit b30fa935 authored by Davide's avatar Davide
Browse files

fixed startpage in light mode

parent 63962b41
No related branches found
No related tags found
3 merge requests!1739Development,!1717Resolve "Major Startpage Redesign",!1713Resolve "Add setting to enable darkmode"
...@@ -43,10 +43,9 @@ class StartpageController extends Controller ...@@ -43,10 +43,9 @@ class StartpageController extends Controller
$lang = 'all'; $lang = 'all';
} }
$css = mix('css/themes/startpage-only-light.css');
if(Cookie::get('dark_mode') === "2") if(Cookie::get('dark_mode') === "2")
$css = mix('css/themes/startpage-only-dark.css'); $css = mix('css/themes/startpage-only-dark.css');
else
$css = mix('css/themes/startpage-only-light.css');
return view('index') return view('index')
->with('title', trans('titles.index')) ->with('title', trans('titles.index'))
......
...@@ -81,15 +81,15 @@ html { ...@@ -81,15 +81,15 @@ html {
} }
&>:nth-child(2) { &>:nth-child(2) {
background-color: @story-ngo-background; background-color: @story-ngo-background;
color: #AD1A00 color: @story-ngo-color;
} }
&>:nth-child(3) { &>:nth-child(3) {
background-color: @story-diversity-background; background-color: @story-diversity-background;
color: #0C4690; color: @story-diversity-color;
} }
&>:nth-child(4) { &>:nth-child(4) {
background-color: @story-eco-background; background-color: @story-eco-background;
color: #0c621A; color: @story-eco-color;
} }
&>a { &>a {
......
...@@ -22,7 +22,7 @@ mix ...@@ -22,7 +22,7 @@ mix
.less("resources/less/metager/metager.less", "public/css/themes/metager.css", { .less("resources/less/metager/metager.less", "public/css/themes/metager.css", {
strictMath: true 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 strictMath: true
}) })
.less("resources/less/metager/startpage-only-dark.less", "public/css/themes/startpage-only-dark.css", { .less("resources/less/metager/startpage-only-dark.less", "public/css/themes/startpage-only-dark.css", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment