Growtopia Wiki
No edit summary
No edit summary
Line 67: Line 67:
 
font-size: 16px;
 
font-size: 16px;
 
font-weight: normal;
 
font-weight: normal;
  +
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);
 
width: 100%;
 
width: 100%;
Line 87: Line 88:
 
display: block;
 
display: block;
 
padding: 5px 15px;
 
padding: 5px 15px;
  +
}
  +
.gtw-card.item-card .card-field .warning {
  +
color: #F60;
  +
font-size: 16px;
 
}
 
}
   

Revision as of 06:56, 12 July 2020

/******************** 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: 10px;
}
.gtw-card.item-card .card-header h3 {
    margin: 0;
}
.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: 34px;
    line-height: 28px;
    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;
    font-weight: normal;
    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;
    width: 50%;
}
.gtw-card.item-card .card-field th {
    color: #9CF;
    display: block;
    font-size: 20px;
    text-align: left;
}
.gtw-card.item-card .card-field td {
    display: block;
    padding: 5px 15px;
}
.gtw-card.item-card .card-field .warning {
    color: #F60;
    font-size: 16px;
}

.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 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;
}


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