User:Huawei251/MediaWiki:Gadget-bluedeck-ding.css

From TestWiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * 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);
}