MediaWiki:Item.css: Difference between revisions
MediaWiki interface page
More actions
NekoPillow (talk | contribs) No edit summary |
mNo edit summary |
||
| (50 intermediate revisions by 3 users not shown) | |||
| Line 5: | Line 5: | ||
*************************************************/ | *************************************************/ | ||
/* | /* GTW Item Card */ | ||
. | .gtw-card.item-card { | ||
padding: 15px 20px 80px; | |||
} | |||
.gtw-card.item-card .card-header { | |||
padding: 5px 10px; | |||
} | } | ||
. | .gtw-card.item-card .card-header h3 { | ||
margin: 0; | |||
overflow: visible; | |||
} | } | ||
. | .gtw-card.item-card .card-header h3 .mw-headline { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
} | } | ||
. | .gtw-card.item-card .card-header h3 .growsprite { | ||
filter: drop-shadow(-3px 3px 0 rgba(0,0,0,0.4)); | |||
padding-left: 5px; | |||
} | |||
.gtw-card.item-card .card-header h3 .growsprite img { | |||
margin: 2px 0px 5px; | |||
width: 48px; | width: 48px; | ||
} | } | ||
. | .gtw-card.item-card .card-header h3 b { | ||
font-size: | font-size: 32px; | ||
line-height: 29px; | |||
margin-left: 5px; | |||
text-shadow: -3px 3px rgba(0,0,0,0.5); | text-shadow: -3px 3px rgba(0,0,0,0.5); | ||
} | } | ||
. | .gtw-card.item-card .card-header h3 small { | ||
display: block; | display: block; | ||
font-size: 14px; | font-size: 14px; | ||
| Line 39: | Line 42: | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
. | .gtw-card.item-card .card-title { | ||
background: rgba(0,0,0,0.2); | |||
display: block; | display: block; | ||
font-size: 20px; | font-size: 20px; | ||
margin: 0 -20px; | |||
padding: 7px 35px; | |||
padding: 7px | text-shadow: -2px 2px rgba(0,0,0,0.5); | ||
} | } | ||
. | .gtw-card.item-card .card-text { | ||
font-size: 16px; | |||
padding: 12px 25px; | padding: 12px 25px; | ||
text-shadow: -1.5px 1.5px rgba(0,0,0,0.5); | text-shadow: -1.5px 1.5px rgba(0,0,0,0.5); | ||
} | } | ||
. | .gtw-card.item-card .card-text .warning { | ||
color: #F60; | |||
font-size: 16px; | font-size: 16px; | ||
} | } | ||
. | .gtw-card.item-card .card-text a { | ||
color: #FFF; | |||
} | |||
.gtw-card.item-card .card-field { | |||
box-sizing: border-box; | |||
font-size: 16px; | |||
font-weight: normal; | |||
padding: 12px 25px; | |||
text-shadow: -1.5px 1.5px rgba(0,0,0,0.5); | |||
width: 100%; | width: 100%; | ||
} | } | ||
. | .gtw-card.item-card .card-field tbody { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
. | .gtw-card.item-card .card-field tr { | ||
display: block; | display: block; | ||
padding: 5px 0; | |||
width: 50%; | width: 50%; | ||
} | } | ||
. | .gtw-card.item-card .card-field th { | ||
color: #9CF; | |||
display: block; | display: block; | ||
font-size: 16px; | |||
font-size: | |||
text-align: left; | text-align: left; | ||
} | } | ||
. | .gtw-card.item-card .card-field td { | ||
display: block; | display: block; | ||
padding: 5px 15px; | padding: 5px 15px; | ||
} | } | ||
. | .gtw-card.item-card .card-field td small { | ||
color: #CCC; | |||
} | |||
.gtw-card.item-card .card-field td .desc { | |||
color: #999; | |||
display: inline-block; | display: inline-block; | ||
font-size: 12px; | |||
line-height: 16px; | |||
margin-left: 7px; | |||
margin-top: 7px; | |||
} | |||
.gtw-card.item-card .card-field td small b { | |||
color: #F93; | |||
} | |||
.gtw-card.item-card .card-field .warning { | |||
color: #F60; | |||
font-size: 16px; | |||
} | } | ||
. | .gtw-card.item-card .card-field .seedColor img { | ||
margin: 6px; | |||
width: 20px; | width: 20px; | ||
} | } | ||
. | .gtw-card.item-card .card-field .seedColor div { | ||
display: inline-block; | display: inline-block; | ||
vertical-align: middle; | |||
} | |||
.gtw-card.item-card .card-field .seedColor div span { | |||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 1.5px 1.5px 2px rgba(0,0,0,0.5); | box-shadow: 1.5px 1.5px 2px rgba(0,0,0,0.5); | ||
display: inline-block; | |||
height: 24px; | |||
margin: 4px; | |||
vertical-align: middle; | vertical-align: middle; | ||
width: 24px; | |||
} | |||
.gtw-card.item-card .card-field .growsprite { | |||
filter: drop-shadow(-2px 2px 0 rgba(0,0,0,0.4)); | |||
} | |||
.gtw-card.item-card .paint-preview { | |||
box-sizing: border-box; | |||
display: flex; | |||
width: 100%; | |||
} | |||
.gtw-card.item-card .paint-preview div { | |||
text-align: center; | |||
width: 100%; | |||
} | |||
.gtw-card.item-card .paint-preview i { | |||
display: block; | |||
font-size: 8px; | |||
text-shadow: -1px 1px rgba(0,0,0,0.5); | |||
} | |||
.gtw-card.item-card .paint-preview .paint.red > i { | |||
color: #F00; | |||
} | |||
.gtw-card.item-card .paint-preview .paint.yellow > i { | |||
color: #FF0; | |||
} | |||
.gtw-card.item-card .paint-preview .paint.green > i { | |||
color: #0F0; | |||
} | |||
.gtw-card.item-card .paint-preview .paint.aqua > i { | |||
color: #0FF; | |||
} | |||
.gtw-card.item-card .paint-preview .paint.blue > i { | |||
color: #00F; | |||
} | |||
.gtw-card.item-card .paint-preview .paint.purple > i { | |||
color: #F0F; | |||
} | |||
.gtw-card.item-card .paint-preview .paint.charcoal > i { | |||
color: #333; | |||
} | |||
.gtw-card.item-card .paint-preview .paint>.growsprite { | |||
filter: drop-shadow(-3px 3px 0 rgba(0,0,0,0.4)); | |||
} | } | ||
. | .gtw-card.item-card .paint-preview .paint>.growsprite img { | ||
width: 48px; | |||
} | } | ||
. | .gtw-card.item-card .paint-preview i>.growsprite img { | ||
filter: drop-shadow(-1px 1px 0 rgba(0,0,0,0.4)); | |||
width: 16px; | |||
} | } | ||
.iteminfobox | |||
color: # | /* ========== Item InfoBox ========== */ | ||
.iteminfobox .footer { | |||
color: #CCC; | |||
font-size: 8px; | |||
text-align: right; | |||
padding-right: 5px; | |||
} | } | ||
/* ========== Sprite ========= */ | /* ========== Sprite ========= */ | ||
| Line 124: | Line 188: | ||
from {filter: brightness(0.5) sepia() saturate(4) hue-rotate(0deg);} | from {filter: brightness(0.5) sepia() saturate(4) hue-rotate(0deg);} | ||
to {filter: brightness(0.5) sepia() saturate(4) hue-rotate(360deg);} | to {filter: brightness(0.5) sepia() saturate(4) hue-rotate(360deg);} | ||
} | |||
.growsprite.seed { | |||
padding: 8px; | |||
} | } | ||
.growsprite { | .growsprite { | ||
display: inline-block; | display: inline-block; | ||
width: 32px; | |||
height: 32px; | |||
background-repeat: no-repeat; | |||
vertical-align: middle; | |||
image-rendering: pixelated; | |||
} | } | ||
.growsprite-item{ | |||
background-image: url("https://cdn.growtopiawiki.com/uploads/8/8f/ItemSprites.png"); | |||
} | |||
.growsprite-seed{ | |||
background-image: url("https://cdn.growtopiawiki.com/uploads/9/9c/SeedSprites.png"); | |||
} | |||
.growsprite-tree{ | |||
background-image: url("https://cdn.growtopiawiki.com/uploads/e/e5/TreeSprites.png"); | |||
} | |||
.growsprite.shifty { | .growsprite.shifty { | ||
animation: shiftyEffect 10s linear infinite; | animation: shiftyEffect 10s linear infinite; | ||
| Line 133: | Line 215: | ||
.growsprite img { | .growsprite img { | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | |||
.growsprite a { | |||
display: none; | |||
} | |||
.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"); | |||
} | } | ||
Latest revision as of 15:21, 12 January 2026
/******************** Item.css *******************
Description:
This is a stylesheet for item pages
*************************************************/
/* GTW Item Card */
.gtw-card.item-card {
padding: 15px 20px 80px;
}
.gtw-card.item-card .card-header {
padding: 5px 10px;
}
.gtw-card.item-card .card-header h3 {
margin: 0;
overflow: visible;
}
.gtw-card.item-card .card-header h3 .mw-headline {
display: flex;
align-items: center;
}
.gtw-card.item-card .card-header h3 .growsprite {
filter: drop-shadow(-3px 3px 0 rgba(0,0,0,0.4));
padding-left: 5px;
}
.gtw-card.item-card .card-header h3 .growsprite img {
margin: 2px 0px 5px;
width: 48px;
}
.gtw-card.item-card .card-header h3 b {
font-size: 32px;
line-height: 29px;
margin-left: 5px;
text-shadow: -3px 3px rgba(0,0,0,0.5);
}
.gtw-card.item-card .card-header h3 small {
display: block;
font-size: 14px;
text-shadow: -2px 2px rgba(0,0,0,0.5);
font-weight: normal;
}
.gtw-card.item-card .card-title {
background: rgba(0,0,0,0.2);
display: block;
font-size: 20px;
margin: 0 -20px;
padding: 7px 35px;
text-shadow: -2px 2px rgba(0,0,0,0.5);
}
.gtw-card.item-card .card-text {
font-size: 16px;
padding: 12px 25px;
text-shadow: -1.5px 1.5px rgba(0,0,0,0.5);
}
.gtw-card.item-card .card-text .warning {
color: #F60;
font-size: 16px;
}
.gtw-card.item-card .card-text a {
color: #FFF;
}
.gtw-card.item-card .card-field {
box-sizing: border-box;
font-size: 16px;
font-weight: normal;
padding: 12px 25px;
text-shadow: -1.5px 1.5px rgba(0,0,0,0.5);
width: 100%;
}
.gtw-card.item-card .card-field tbody {
display: flex;
flex-wrap: wrap;
}
.gtw-card.item-card .card-field tr {
display: block;
padding: 5px 0;
width: 50%;
}
.gtw-card.item-card .card-field th {
color: #9CF;
display: block;
font-size: 16px;
text-align: left;
}
.gtw-card.item-card .card-field td {
display: block;
padding: 5px 15px;
}
.gtw-card.item-card .card-field td small {
color: #CCC;
}
.gtw-card.item-card .card-field td .desc {
color: #999;
display: inline-block;
font-size: 12px;
line-height: 16px;
margin-left: 7px;
margin-top: 7px;
}
.gtw-card.item-card .card-field td small b {
color: #F93;
}
.gtw-card.item-card .card-field .warning {
color: #F60;
font-size: 16px;
}
.gtw-card.item-card .card-field .seedColor img {
margin: 6px;
width: 20px;
}
.gtw-card.item-card .card-field .seedColor div {
display: inline-block;
vertical-align: middle;
}
.gtw-card.item-card .card-field .seedColor div span {
border-radius: 12px;
box-shadow: 1.5px 1.5px 2px rgba(0,0,0,0.5);
display: inline-block;
height: 24px;
margin: 4px;
vertical-align: middle;
width: 24px;
}
.gtw-card.item-card .card-field .growsprite {
filter: drop-shadow(-2px 2px 0 rgba(0,0,0,0.4));
}
.gtw-card.item-card .paint-preview {
box-sizing: border-box;
display: flex;
width: 100%;
}
.gtw-card.item-card .paint-preview div {
text-align: center;
width: 100%;
}
.gtw-card.item-card .paint-preview i {
display: block;
font-size: 8px;
text-shadow: -1px 1px rgba(0,0,0,0.5);
}
.gtw-card.item-card .paint-preview .paint.red > i {
color: #F00;
}
.gtw-card.item-card .paint-preview .paint.yellow > i {
color: #FF0;
}
.gtw-card.item-card .paint-preview .paint.green > i {
color: #0F0;
}
.gtw-card.item-card .paint-preview .paint.aqua > i {
color: #0FF;
}
.gtw-card.item-card .paint-preview .paint.blue > i {
color: #00F;
}
.gtw-card.item-card .paint-preview .paint.purple > i {
color: #F0F;
}
.gtw-card.item-card .paint-preview .paint.charcoal > i {
color: #333;
}
.gtw-card.item-card .paint-preview .paint>.growsprite {
filter: drop-shadow(-3px 3px 0 rgba(0,0,0,0.4));
}
.gtw-card.item-card .paint-preview .paint>.growsprite img {
width: 48px;
}
.gtw-card.item-card .paint-preview i>.growsprite img {
filter: drop-shadow(-1px 1px 0 rgba(0,0,0,0.4));
width: 16px;
}
/* ========== Item InfoBox ========== */
.iteminfobox .footer {
color: #CCC;
font-size: 8px;
text-align: right;
padding-right: 5px;
}
/* ========== 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;
width: 32px;
height: 32px;
background-repeat: no-repeat;
vertical-align: middle;
image-rendering: pixelated;
}
.growsprite-item{
background-image: url("https://cdn.growtopiawiki.com/uploads/8/8f/ItemSprites.png");
}
.growsprite-seed{
background-image: url("https://cdn.growtopiawiki.com/uploads/9/9c/SeedSprites.png");
}
.growsprite-tree{
background-image: url("https://cdn.growtopiawiki.com/uploads/e/e5/TreeSprites.png");
}
.growsprite.shifty {
animation: shiftyEffect 10s linear infinite;
}
.growsprite img {
image-rendering: pixelated;
}
.growsprite a {
display: none;
}
.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");
}