MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
第66行: | 第66行: | ||
} | } | ||
/* | /* 基础黑幕样式 */ | ||
.heimu { | .heimu { | ||
background-color: #000; | background-color: #000 !important; | ||
color: #000; | color: #000 !important; | ||
padding: 0 2px; | padding: 0 2px !important; | ||
border-radius: 2px; | border-radius: 2px !important; | ||
cursor: help; | cursor: help !important; | ||
transition: color 0. | transition: color 0.1s ease !important; | ||
} | } | ||
/* | /* 悬停/点击时的显示效果 - 这个才是关键规则! */ | ||
.heimu:hover, | .heimu:hover, | ||
.heimu:active { | .heimu:active, | ||
.heimu.heimu-reveal { | |||
color: #fff !important; | color: #fff !important; | ||
text-shadow: none !important; | text-shadow: none !important; | ||
} | } | ||
/* | /* 移动设备兼容性 */ | ||
.heimu:active { | @media (hover: none) { | ||
.heimu { | |||
-webkit-tap-highlight-color: transparent !important; | |||
} | |||
.heimu:active { | |||
color: #fff !important; | |||
} | |||
} | } |