Luogu display better CSS

· · 个人记录

/* 1. 隐藏首页轮播图 */
#lg-slider {
    display: none !important;
}

/* 2. 强行给正文、评论和全页面加高权重白边 */
html body .lfe-marked,
html body .lfe-marked p,
html body .lfe-marked a,
html body .lfe-marked span,
html body .lfe-marked li,
html body .lfe-marked strong,
html body .lfe-marked h1,
html body .lfe-marked h2,
html body .lfe-marked h3,
html body .lfe-marked blockquote,
html body .lfe-marked blockquote p,
html body .lfe-marked summary,
html body .lfe-marked details,
html body .lfe-marked time,
html body .lfe-marked .token,
html body .lfe-marked .line,
html body .reply-item .content,
html body .reply-item .content *,
html body .update-info,
html body .update-info *,
html body * {
    text-shadow:
        0.6px 0.6px 0 #fff,
        -0.6px 0.6px 0 #fff,
        0.6px -0.6px 0 #fff,
        -0.6px -0.6px 0 #fff,
        0 0 5px rgba(255, 255, 255, 0.9) !important;
}

/* ============================================ */
/* 3. 以下为精确排除项,确保不该有白边的地方没有白边     */
/* ============================================ */

/* 排除按钮、输入框、下拉框(包括代码块里的复制按钮) */
html body button,
html body button *,
html body input,
html body input *,
html body textarea,
html body textarea *,
html body select,
html body select *,
html body .copy-button,
html body .copy-button * {
    text-shadow: none !important;
}

/* 排除 SVG 图标(如复制按钮、点赞图标) */
html body svg,
html body svg * {
    text-shadow: none !important;
}

/* 排除所有标签、徽章、难度 */
html body .tag,
html body .tag *,
html body .lg-tag,
html body .lg-tag *,
html body .badge,
html body .badge *,
html body .difficulty,
html body .difficulty *,
html body .am-badge,
html body .am-badge * {
    text-shadow: none !important;
}

/* 排除测评记录(AC / 时间内存 / 测试点) */
html body .status,
html body .status *,
html body .test-case,
html body .test-case *,
html body .lcolor-bg-green-3,
html body .lcolor-bg-green-3 * {
    text-shadow: none !important;
}

/* 排除弹窗(v-popper) */
html body .v-popper__wrapper,
html body .v-popper__wrapper *,
html body .v-popper__inner,
html body .v-popper__inner * {
    text-shadow: none !important;
}

/* 排除洛谷按钮 */
html body .l-button,
html body .l-button * {
    text-shadow: none !important;
}

/* 排除代码块的行号 */
html body .line-numbers-rows,
html body .line-numbers-rows *,
html body .line-numbers-sizer,
html body .line-numbers-sizer * {
    text-shadow: none !important;
}

/* 让 CodeMirror 编辑器背景透明 */
.cm-editor,
.cm-scroller,
.cm-content,
.cm-gutters {
    background-color: transparent !important;
}

/* 行号区域默认可能会有一点底色,也一起去掉 */
.cm-gutter {
    background-color: transparent !important;
}

/* 如果编辑器有边框,顺便去掉 */
.cm-editor {
    border: none !important;
}