MediaWiki:Common.css
跳转到导航
跳转到搜索
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 为特定区域的链接添加特效,这里以 "a" 标签为例,你可以根据需要限制范围 */
a:hover {
text-decoration: none;
font-weight: bold;
background-color: #e6f2ff; /* 浅蓝色背景 */
padding: 2px 4px; /* 内边距让背景不贴字 */
border-radius: 3px; /* 圆角 */
transition: all 0.2s ease;
}
/* 自适应浅色/深色模式 */
blockquote {
margin: 1em 0;
padding: 12px 20px;
/* 使用相对透明的颜色,在不同背景下都能显示 */
background-color: rgba(0, 0, 0, 0.04); /* 浅色下显灰,深色下显白 */
border-left: 6px solid rgba(51, 102, 204, 0.7);
color: inherit; /* 继承正文颜色,自动适配深浅 */
font-style: italic;
border-radius: 0 4px 4px 0;
}
/* 针对深色皮肤做微调 (利用 body class) */
.skin-vector-2022.dark-mode blockquote {
background-color: rgba(255, 255, 255, 0.06); /* 深色下更明显的底色 */
border-left-color: #6d8fd1; /* 亮一点的边框 */
}