MediaWiki:Common.css:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第22行: | 第22行: | ||
border-radius: 10px; | border-radius: 10px; | ||
} | } | ||
.tooltip { | .tooltip { | ||
position: relative; | position: relative; | ||
border-bottom: 1px dotted; | border-bottom: 1px dotted; | ||
cursor: help; | |||
} | } | ||
第32行: | 第33行: | ||
visibility: hidden; | visibility: hidden; | ||
position: absolute; | position: absolute; | ||
z-index: 1; | top: 100%; | ||
left: -10em; | |||
z-index:1; | |||
padding: 0.5em; | |||
margin-top: 1em; | |||
border-radius: 0.2em; | |||
width: 20em; | |||
background-color: #e2e1e8; | |||
} | |||
.tooltip .tooltip-content::after { | |||
content: ""; | |||
position: absolute; | |||
top: -1em; | |||
left: 10.5em; | |||
margin-left: 0; | |||
border-width: 0.5em; | |||
border-style: solid; | |||
border-color: transparent transparent #e2e1e8 transparent; | |||
} | } | ||
.tooltip:hover .tooltip-content { | .tooltip:hover .tooltip-content { | ||
visibility: visible; | visibility: visible; | ||
} | } | ||
2024年1月22日 (一) 18:59的版本
.infobox-container { position: relative; float: right; } .infobox-body { border-collapse: collapse; border-style: solid; border-width: 0.4em; border-color: transparent; text-align: center; vertical-align: center; } .infobox-border { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-style: solid; border-width: 0.4em; border-radius: 10px; } .tooltip { position: relative; border-bottom: 1px dotted; cursor: help; } .tooltip .tooltip-content { visibility: hidden; position: absolute; top: 100%; left: -10em; z-index:1; padding: 0.5em; margin-top: 1em; border-radius: 0.2em; width: 20em; background-color: #e2e1e8; } .tooltip .tooltip-content::after { content: ""; position: absolute; top: -1em; left: 10.5em; margin-left: 0; border-width: 0.5em; border-style: solid; border-color: transparent transparent #e2e1e8 transparent; } .tooltip:hover .tooltip-content { visibility: visible; } table.stripe tr:nth-child(odd) { background: #e9e9e9; }