MediaWiki:Common.css: Difference between revisions

From Mechabellum Wiki
No edit summary
No edit summary
Line 19: Line 19:
.infobox-table td {
.infobox-table td {
     vertical-align: top;
     vertical-align: top;
}
/* icon template */
.icon {
  position: relative;
  display: inline-block;
}
/* cost badge */
.icon .cost {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #f99500;
  color: #333;
  font-weight: bold;
  line-height: 1em;
  padding: 1px 10px 2px;
  box-shadow: -2px -2px 3px #0006;
}
/* shadow as boder */
.icon-border img {
  box-sizing: content-box;
  padding: 6px;
  border-radius: 6px 1px;
  box-shadow: 0 0 3px 3px #eee6 inset;
}
/* colorize cyan */
.icon-Tech img {
  filter: sepia(100%) saturate(750%) hue-rotate(110deg);
  -webkit-filter:: sepia(100%) saturate(750%) hue-rotate(110deg);
  -moz-filter: sepia(100%) saturate(750%) hue-rotate(110deg);
}
/* override cost badge */
.icon-Tech .cost {
  right: 2px;
  bottom: 2px;
  background: #fff6;
  color: #222;
  padding: 0px 10px 1px;
  border-radius: 0 0 4px;
  box-shadow: none;
}
}

Revision as of 09:27, 31 May 2023

/* CSS placed here will be applied to all skins */
.infobox {
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 280px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
    vertical-align: top;
    width: 120px;
}
.infobox-table td {
    vertical-align: top;
}


/* icon template */
.icon {
  position: relative;
  display: inline-block;
}

/* cost badge */
.icon .cost {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #f99500;
  color: #333;
  font-weight: bold;
  line-height: 1em;
  padding: 1px 10px 2px;
  box-shadow: -2px -2px 3px #0006;
}

/* shadow as boder */
.icon-border img {
  box-sizing: content-box;
  padding: 6px;
  border-radius: 6px 1px;
  box-shadow: 0 0 3px 3px #eee6 inset;
}

/* colorize cyan */
.icon-Tech img {
  filter: sepia(100%) saturate(750%) hue-rotate(110deg);
  -webkit-filter:: sepia(100%) saturate(750%) hue-rotate(110deg);
  -moz-filter: sepia(100%) saturate(750%) hue-rotate(110deg);
}

/* override cost badge */
.icon-Tech .cost {
  right: 2px;
  bottom: 2px;
  background: #fff6;
  color: #222;
  padding: 0px 10px 1px;
  border-radius: 0 0 4px;
  box-shadow: none;
}