User:高文海/interface/MediaWiki:Gadget-bluedeck-ding.css
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/**
* Bluedeck ding 样式表
*
* @source https://meta.wikimedia.org/wiki/User:Bluedeck/source/confirm-logout.js
* @author Bluedeck
* @author 高文海 (组件化)
*/
#bluedeck_ding > div.ding {
position: fixed;
top: 0;
left: 0;
right: 0;
margin: 0 0 auto 0;
height: auto;
padding: 0.6em 2em;
opacity: 1;
text-align: center;
z-index: 9999;
font-size: 86%;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
font-weight: bold;
line-height: 1.4em;
transform: translateY(-130%);
transition: all 0.2s;
color: rgba(0, 0, 0, 1);
background: rgba(234, 236, 240, 1);
}
#bluedeck_ding > div.warning {
color: rgba(255, 255, 255, 1);
background: rgba(221, 51, 51, 1);
}
#bluedeck_ding > div.info {
color: rgba(255, 255, 255, 1);
background: rgba(51, 102, 204, 1);
}
#bluedeck_ding > div.success {
color: rgba(255, 255, 255, 1);
background: rgba(0, 175, 137, 1);
}
#bluedeck_ding > div.confusion {
color: rgba(0, 0, 0, 1);
background: rgba(234, 236, 240, 1);
}
#bluedeck_ding button,
#bluedeck_ding .button
{
background: transparent;
border: 0.2em solid white;
border-radius: 9em;
box-sizing: border-box;
color: inherit;
font-weight: inherit;
margin: 0 0.2em;
padding: 0 0.7em;
font-size: 11px;
text-decoration: none;
}
#bluedeck_ding button:active,
#bluedeck_ding .button:active
{
background:rgba(255,255,255,0.6);
}