User:Huawei251/MediaWiki:Gadget-bluedeck-ding.css: Difference between revisions

From TestWiki
Content added Content deleted
 
No edit summary
Line 49: Line 49:
}
}
#bluedeck_ding button {
#bluedeck_ding button,
#bluedeck_ding .button
{
background: transparent;
background: transparent;
border: 0.2em solid white;
border: 0.2em solid white;
Line 60: Line 62:
}
}


#bluedeck_ding button:active {
#bluedeck_ding button:active,
#bluedeck_ding .button:active
{
background:rgba(255,255,255,0.6);
background:rgba(255,255,255,0.6);
}
}

Revision as of 14:00, 14 April 2020

/**
 * 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;
}

#bluedeck_ding button:active,
#bluedeck_ding .button:active
{
  background:rgba(255,255,255,0.6);
}