Kaydet (Commit) 9543b5a8 authored tarafından mertcelen's avatar mertcelen

Dark mode fixes.

üst 9c9e5593
......@@ -3840,6 +3840,5 @@ button.toast-close-button { background-image: initial; background-color: initial
.gutter.gutter-horizontal { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=="); }
.gutter.gutter-vertical { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII="); }
table.dataTable tbody tr.selected { background-color: rgb(32, 44, 66); }
.customAlert { text-shadow: rgba(24, 26, 27, 0.2) 3px 2px 3px; border-color: initial; box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 15px -2px; }
.vimvixen-hint { background-color: rgb(123, 83, 0) !important; border-color: rgb(216, 176, 19) !important; color: rgb(243, 232, 200) !important; }
::placeholder { opacity: 0.5 !important; }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
{
"/css/liman.css": "/css/liman.css?id=6ba89a28689628156872",
"/js/liman.js": "/js/liman.js?id=1201352717850f53b699"
"/css/liman.css": "/css/liman.css?id=defedb66f8a8b13bdeb3",
"/js/liman.js": "/js/liman.js?id=7a208636deda17ec6af8"
}
This diff is collapsed.
......@@ -25,32 +25,10 @@
</li>
@endif
<script>
let currentlyLight = window.localStorage.getItem("dark") ? window.localStorage.getItem("dark") : true;
function toggleDarkMode(){
currentlyLight = !currentlyLight;
window.localStorage.setItem("dark",currentlyLight);
let icon = $("#darkModeIcon");
if(currentlyLight){
icon.attr("class","far fa-tired");
$("#darkModeCss").remove();
}else{
icon.attr("class","fas fa-grin-stars");
var link = document.createElement( "link" );
link.href = "https://192.168.0.10/css/dark.css";
link.type = "text/css";
link.id = "darkModeCss";
link.rel = "stylesheet";
link.media = "screen,print";
document.getElementsByTagName( "head" )[0].appendChild( link );
}
}
toggleDarkMode();
if(currentlyDark == true){
setDarkMode();
}
</script>
<!-- Left navbar links -->
@if(env('LIMAN_RESTRICTED') == true && !user()->isAdmin())
@endif
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
......
Markdown is supported
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