Commit b92ff194 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

disabled darkmode for uni mainz

parent bcc65dae
......@@ -1105,10 +1105,6 @@ class MetaGer
$this->framed = false;
}
if ($request->input("out", "") === "results-with-style") {
$_COOKIE["dark_mode"] = "1";
}
# IP
$this->ip = $this->anonymizeIp($request->ip());
......
......@@ -28,7 +28,7 @@
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager-dark.css') }}"/>
@elseif(Cookie::get('dark_mode') === "1")
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager.css') }}"/>
@else
@elseif(Request::input('out', '') !== "results-with-style" )
<link type="text/css" rel="stylesheet" media="(prefers-color-scheme:dark)" href="{{ mix('css/themes/metager-dark.css') }}"/>
@endif
......
......@@ -23,7 +23,7 @@
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager-dark.css') }}"/>
@elseif(Cookie::get('dark_mode') === "1")
<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/metager.css') }}"/>
@else
@elseif(Request::input('out', '') !== "results-with-style" )
<link type="text/css" rel="stylesheet" media="(prefers-color-scheme:dark)" href="{{ mix('css/themes/metager-dark.css') }}"/>
@endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment