版本比较
Luogu display better CSS
正文
增加 48 行删除 34 行
1123456678910111213141516171819202122232425262728910111213293031323334351636373839404142434445464724484950515253285455565758596061626364653435363738666740686970717273745 行未改动80818283548485868788899091626364656667689293949596977475767778798081828398991001013 行未改动/* 隐藏首页轮播图 *//* 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.5px 0.5px 0 #fff, -0.5px 0.5px 0 #fff, 0.5px -0.5px 0 #fff, -0.5px -0.5px 0 #fff, 0 0 4px rgba(255, 255, 255, 0.9) !important; 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 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 * { text-shadow: none !important;}
/* 排除难度标签 */html body .badge *,html body .difficulty,html body .difficulty * {html body .difficulty *,html body .am-badge,html body .am-badge * { text-shadow: none !important;}
/* 排除测评记录(AC / 时间内存 / 测试点) */5 行未改动html body .lcolor-bg-green-3 * { text-shadow: none !important;}
/* 排除弹出提示层(v-popper) *//* 排除弹窗(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;}
/* 排除 am-badge 徽章(Rated / 官方比赛 / IOI 等) */html body .am-badge,html body .am-badge * { text-shadow: none !important;}
/* 排除洛谷按钮(l-button,如“查看文章”) *//* 排除洛谷按钮 */html body .l-button,html body .l-button * { text-shadow: none !important;}
/* 排除内联样式为白色文字的元素(如算法标签“双连通分量”) */html body [style*="color: rgb(255, 255, 255)"],html body [style*="color: rgb(255, 255, 255)"] *,html body [style*="color: #fff"],html body [style*="color: #fff"] *,html body [style*="color: white"],html body [style*="color: white"] * { text-shadow: none !important;}
/* 排除代码块的行号 */html body .line-numbers-rows,html body .line-numbers-rows *,html body .line-numbers-sizer,3 行未改动