Template:CosmeticCard/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
.cosmetic-card { | .cosmetic-card { | ||
display: inline-block; | display: inline-block; | ||
width: | width: 115px; | ||
margin: | margin: 6px 6px 6px 0; | ||
vertical-align:top; | |||
} | } | ||
.cosmetic-card__background { | .cosmetic-card__background { | ||
background: linear-gradient(#808b9a,#d5e2e6); | background: linear-gradient(#808b9a,#d5e2e6); | ||
border-radius: 6px 6px 0 0; | |||
} | |||
.cosmetic-card__background .image { | |||
border-radius: 6px 6px 0 0; | border-radius: 6px 6px 0 0; | ||
} | } | ||
.cosmetic-card__background img { | .cosmetic-card__background img { | ||
object-position: center; | object-position: center; | ||
object-fit: contain; | |||
} | } | ||
Line 25: | Line 28: | ||
text-transform: uppercase; | text-transform: uppercase; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: | font-size: 18px; | ||
font-family: 'Saira Extra Condensed', 'Nunito','Saira',system-ui,-apple-system,sans-serif; | font-family: 'Saira Extra Condensed', 'Nunito','Saira',system-ui,-apple-system,sans-serif; | ||
line-height: 1.4; | line-height: 1.4; | ||
font-style: italic; | |||
} | |||
.cosmetic-card__optional--above { | |||
margin-top: 0px; | |||
margin-bottom: 4px; | |||
} | } | ||
Line 35: | Line 43: | ||
color: gray; | color: gray; | ||
margin-top: 8px; | margin-top: 8px; | ||
font-size: | font-size: 13px; | ||
} | |||
.cosmetic-card__line { | |||
height: 10px; | |||
border-radius: 0 0 6px 6px; | |||
background-color: var(--rarity-none); | |||
} | |||
.cosmetic-card__mythic { | |||
background-color: #d21f3c; /* Red gradient */ | |||
color: white; | |||
font-weight: bold; | |||
font-style: italic; | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
/* Moving light reflection */ | |||
.cosmetic-card__mythic::before { | |||
content:""; | |||
position:absolute; | |||
left:-50px; | |||
width:150%; | |||
height:350%; | |||
background:rgba(255,255,255,0.2); | |||
transform:rotate(25deg); | |||
animation:shine 1.25s ease-in-out infinite; | |||
pointer-events:none; | |||
filter:blur(0.5px) | |||
} | |||
@keyframes shine { | |||
from { | |||
transform:rotate(25deg) translateY(100%); | |||
} | |||
to { | |||
transform:rotate(25deg) translateY(-190%); | |||
} | |||
} | |||
.cosmetic-card__legendary { | |||
background-color: var(--rarity-legendary); | |||
} | |||
.cosmetic-card__epic { | |||
background-color: var(--rarity-epic); | |||
} | |||
.cosmetic-card__rare { | |||
background-color: var(--rarity-rare); | |||
} | |||
.cosmetic-card__common { | |||
background-color: var(--rarity-common); | |||
} | |||
@media only screen and (max-width: 640px) { | |||
.cosmetic-card { | |||
width: 105px; | |||
} | |||
.cosmetic-card__background img { | |||
height: 105px; | |||
width: 105px; | |||
} | |||
} | } |
Latest revision as of 09:57, 24 July 2025
.cosmetic-card {
display: inline-block;
width: 115px;
margin: 6px 6px 6px 0;
vertical-align:top;
}
.cosmetic-card__background {
background: linear-gradient(#808b9a,#d5e2e6);
border-radius: 6px 6px 0 0;
}
.cosmetic-card__background .image {
border-radius: 6px 6px 0 0;
}
.cosmetic-card__background img {
object-position: center;
object-fit: contain;
}
.cosmetic-card__optional {
text-align: center;
color: #B9BABC;
background-color: #302b36;
margin-top: 4px;
border-radius: 4px;
text-transform: uppercase;
font-weight: bold;
font-size: 18px;
font-family: 'Saira Extra Condensed', 'Nunito','Saira',system-ui,-apple-system,sans-serif;
line-height: 1.4;
font-style: italic;
}
.cosmetic-card__optional--above {
margin-top: 0px;
margin-bottom: 4px;
}
.cosmetic-card__name {
text-align: center;
color: gray;
margin-top: 8px;
font-size: 13px;
}
.cosmetic-card__line {
height: 10px;
border-radius: 0 0 6px 6px;
background-color: var(--rarity-none);
}
.cosmetic-card__mythic {
background-color: #d21f3c; /* Red gradient */
color: white;
font-weight: bold;
font-style: italic;
position: relative;
overflow: hidden;
}
/* Moving light reflection */
.cosmetic-card__mythic::before {
content:"";
position:absolute;
left:-50px;
width:150%;
height:350%;
background:rgba(255,255,255,0.2);
transform:rotate(25deg);
animation:shine 1.25s ease-in-out infinite;
pointer-events:none;
filter:blur(0.5px)
}
@keyframes shine {
from {
transform:rotate(25deg) translateY(100%);
}
to {
transform:rotate(25deg) translateY(-190%);
}
}
.cosmetic-card__legendary {
background-color: var(--rarity-legendary);
}
.cosmetic-card__epic {
background-color: var(--rarity-epic);
}
.cosmetic-card__rare {
background-color: var(--rarity-rare);
}
.cosmetic-card__common {
background-color: var(--rarity-common);
}
@media only screen and (max-width: 640px) {
.cosmetic-card {
width: 105px;
}
.cosmetic-card__background img {
height: 105px;
width: 105px;
}
}