MediaWiki:Item.css
MediaWiki interface page
More actions
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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/******************** Item.css *******************
Description:
This is a stylesheet for item pages
*************************************************/
/* ========== Item InfoBox ========== */
.iteminfobox {
font-family: Century Gothic, sans-serif;
font-weight: bold;
color: #FFF;
background: #1F92B4;
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
border-radius: 8px;
}
.iteminfobox .header {
position: relative;
padding: 10px 15px 0;
background: rgba(0,0,0,0.1);
border-radius: 8px 8px 0 0;
}
.iteminfobox .header h3 {
margin: 0;
}
.iteminfobox .header h3 .mw-headline {
display: flex;
align-items: center;
padding-bottom: 10px;
}
.iteminfobox .header h3 .growsprite img {
width: 48px;
margin: 2px 0px 5px;
}
.iteminfobox .header h3 b {
font-size: 34px;
text-shadow: -3px 3px rgba(0,0,0,0.5);
line-height: 28px;
margin-left: 5px;
}
.iteminfobox .header h3 small {
display: block;
font-size: 14px;
text-shadow: -2px 2px rgba(0,0,0,0.5);
font-weight: normal;
}
.iteminfobox .sect_title {
font-size: 20px;
background: rgba(0,0,0,0.2);
display: block;
padding: 7px 15px;
text-shadow: -2px 2px rgba(0,0,0,0.5);
}
.iteminfobox .sect_text {
padding: 12px 25px;
font-size: 16px;
text-shadow: -1.5px 1.5px rgba(0,0,0,0.5);
font-weight: normal;
}
.iteminfobox .sect_text .warning {
font-size: 16px;
color: #F60;
}
.iteminfobox .sect_text a {
color: #FFF;
}
.iteminfobox table.sect_text {
width: 100%;
box-sizing: border-box;
}
.iteminfobox table.sect_text tbody {
display: flex;
flex-wrap: wrap;
}
.iteminfobox table.sect_text tr {
display: block;
width: 50%;
}
.iteminfobox table.sect_text th {
display: block;
color: #9CF;
font-size: 20px;
text-align: left;
}
.iteminfobox table.sect_text td {
display: block;
padding: 5px 15px;
}
.iteminfobox table.sect_text .seedColor div {
display: inline-block;
vertical-align: middle;
}
.iteminfobox table.sect_text .seedColor img {
width: 20px;
margin: 6px;
}
.iteminfobox table.sect_text .seedColor div span {
display: inline-block;
width: 24px;
height: 24px;
border-radius: 12px;
box-shadow: 1.5px 1.5px 2px rgba(0,0,0,0.5);
vertical-align: middle;
margin: 4px;
}
.iteminfobox table.sect_text td small {
color: #CCC;
}
.iteminfobox table.sect_text td .desc {
display: inline-block;
line-height: 16px;
margin-top: 7px;
margin-left: 7px;
color: #999;
font-size: 12px;
}
.iteminfobox table.sect_text td small b {
color: #F93;
}
.iteminfobox .footer {
color: #CCC;
font-size: 8px;
text-align: right;
padding-right: 5px;
}
.iteminfobox .paint_preview div {
display: inline-block;
}
.iteminfobox .paint_preview i {
font-size: 8px;
}
.iteminfobox .paint_preview i .growsprite img {
width: 16px;
}
/* ========== Sprite ========= */
@keyframes shiftyEffect {
from {filter: brightness(0.5) sepia() saturate(4) hue-rotate(0deg);}
to {filter: brightness(0.5) sepia() saturate(4) hue-rotate(360deg);}
}
.growsprite.seed {
padding: 8px;
}
.growsprite {
display: inline-block;
}
.growsprite.shifty {
animation: shiftyEffect 10s linear infinite;
}
.growsprite img {
image-rendering: pixelated;
}
.paint.red>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='1 0 0 0 0 0 0.235 0 0 0 0 0 0.235 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.paint.yellow>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 0.235 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.paint.green>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.235 0 0 0 0 0 1 0 0 0 0 0 0.235 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.paint.aqua>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.235 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.paint.blue>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.235 0 0 0 0 0 0.235 0 0 0 0 0 1 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.paint.purple>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='1 0 0 0 0 0 0.235 0 0 0 0 0 1 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.paint.charcoal>.growsprite img {
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.235 0 0 0 0 0 0.235 0 0 0 0 0 0.235 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}