前言
氧洛谷是一款相当优秀的洛谷美化插件。不过,新版本的氧洛谷的深色模式似乎出现了一些 Bug,某些页面会有非常炸裂的白色出现。
于是老夫随手写了一个小修复(我也不知道还剩哪些地方没修,只能说差不多能用),希望能帮到同志们。
注意:本插件仅能作为辅助氧洛谷深色模式之用,无法单独作为深色模式插件使用。作者不是氧洛谷的开发人员,有问题请不要找我。本插件补充不会更新。
Code:
/* ==UserStyle==
@name O2LG Dark Mode Fix
@namespace userstyles.luogu.darkfix
@version 1.0.0
@description qwq awa
@author LTTXiaochuan
@match https://www.luogu.com.cn/*
==/UserStyle== */
/* 针对题目页正文容器强制覆盖背景 */
@-moz-document url-prefix("https://www.luogu.com.cn/") {
/* 整个页面背景 */
body {
background-color: #121214 !important; /* 页面深灰 */
}
/* 题目正文容器 */
.columba-content-wrap {
background-color: #1b1b1d !important; /* 深灰容器 */
margin: 0 !important;
padding: 1em !important;
border-radius: 4px;
}
/* 代码块和表格 */
pre, code, table, th, td {
background-color: #1c1c1e !important;
}
/* header 下方保持原背景,防止白条 */
.header-layout, .header-layout > .columba-content-wrap {
background-color: transparent !important;
}
}