• 欢迎光临中文版东方维基
  • 您目前还未登录,请点此登录后进行编辑。
    如果您还没有在东方维基注册,请点此注册
  • 如果您想要注册账号,请联络KyoriAsh或前往Discord频道以取得新账号

MediaWiki:Gadget-ReferenceTooltips.css

来自东方维基
跳到导航 跳到搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/* 参见 [[mw:Reference Tooltips]] */

.referencetooltip {
    position: absolute;
    list-style: none;
    list-style-image: none;
    opacity: 0;
    font-size: 12px;
    margin: 0;
    z-index: 5;
    padding: 0;
}

.referencetooltip > li {
    background: #fff;
    border: 1px solid #bbb;
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin: 0;
    padding: 8px 10px;
    line-height: 18px;
    max-width: 300px;
}

.referencetooltip > li + li {
	box-sizing: border-box;
    margin-left: 7px;
    margin-top: -1px;
    border: 0;
    padding: 0;
    height: 3px;
    width: 0;
    background-color: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-top: 12px #bbb solid;
    border-right: 7px transparent solid;
    border-left: 7px transparent solid;
}

.referencetooltip > li + li::after {
    z-index: 111;
    content: '';
    border: 6px solid transparent;
    border-bottom: 0;
    border-top: 8px solid #fff;
    height: 0;
    width: 0;
    display: block;
    margin-left: -6px;
    margin-top: -12px;
}

.RTflipped {
    padding-top: 13px;
}

.referencetooltip.RTflipped > li + li {
    position: absolute;
    top: 0;
    border-top: 0;
    border-bottom: 12px #bbb solid;
}

.referencetooltip.RTflipped > li + li::after {
    border-top: 0;
    border-bottom: 8px #fff solid;
    position: absolute;
    margin-top: 7px;
}

.RTsettings {
    /*background-image: url(/w/extensions/Popups/resources/images/cog.png?58172);*/
    background-image: linear-gradient(transparent,transparent),url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0D%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%0D%0A%20%20%20%20%3Cpath%20fill%3D%22%23555%22%20d%3D%22M20%2014.5v-2.9l-1.8-.3c-.1-.4-.3-.8-.6-1.4l1.1-1.5-2.1-2.1-1.5%201.1c-.5-.3-1-.5-1.4-.6L13.5%205h-2.9l-.3%201.8c-.5.1-.9.3-1.4.6L7.4%206.3%205.3%208.4l1%201.5c-.3.5-.4.9-.6%201.4l-1.7.2v2.9l1.8.3c.1.5.3.9.6%201.4l-1%201.5%202.1%202.1%201.5-1c.4.2.9.4%201.4.6l.3%201.8h3l.3-1.8c.5-.1.9-.3%201.4-.6l1.5%201.1%202.1-2.1-1.1-1.5c.3-.5.5-1%20.6-1.4l1.5-.3zM12%2016c-1.7%200-3-1.3-3-3s1.3-3%203-3%203%201.3%203%203-1.3%203-3%203z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
    /*background-image: linear-gradient(transparent,transparent),url(/w/extensions/Popups/resources/images/cog.svg?327ed);*/
    /*background-image: -o-linear-gradient(transparent,transparent),url(/w/extensions/Popups/resources/images/cog.png?58172);*/
    display: block;
    float: right;
    cursor: pointer;
    margin: 0;
    margin-top: -4px;
    height: 24px;
    width: 24px;
    border-radius: 2px;
    box-sizing: border-box;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    margin-left: 8px;
}

.RTsettings:hover {
    background-color: #eee;
}

.RTTarget {
	background-color: #def;
}