31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<meta charset="utf-8">
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='system/component/pear/css/pear.css') }}"/>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='system/admin/css/variables.css') }}"/>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='system/admin/css/reset.css') }}"/>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='system/admin/css/admin.css') }}"/>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='system/admin/css/admin.dark.css') }}"/>
|
|
|
|
<style>
|
|
.layui-form-checked:hover > div {
|
|
background-color: unset;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
// 自动切换夜间模式
|
|
if (window.self != window.top) {
|
|
requestAnimationFrame(function () {
|
|
try {
|
|
const admin = window.parent.PearAdmin;
|
|
let checked = admin.isdrak;
|
|
if (checked === true || checked === "true") {
|
|
document.querySelector("body").classList.add("pear-admin-dark");
|
|
}
|
|
} catch (error) {
|
|
}
|
|
})
|
|
}
|
|
</script> |