MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第7行: | 第7行: | ||
border-radius: 3px; /* 圆角 */ | border-radius: 3px; /* 圆角 */ | ||
transition: all 0.2s ease; | 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; /* 亮一点的边框 */ | |||
} | } | ||
2026年7月8日 (三) 01:57的版本
/* 为特定区域的链接添加特效,这里以 "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; /* 亮一点的边框 */
}