feat: avatar sandbox retro item ribbon
This commit is contained in:
parent
57e9c7a289
commit
416519dbec
2 changed files with 11 additions and 0 deletions
|
|
@ -117,4 +117,13 @@ body:has(.polyplus-modal[open]) {
|
|||
|
||||
.ribbon-polyplus-unknown::after, .ribbon-polyplus-unknown::before {
|
||||
border-color: #121212 !important;
|
||||
}
|
||||
|
||||
.ribbon-polyplus-retro span {
|
||||
background-color: purple !important;
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
}
|
||||
|
||||
.ribbon-polyplus-retro::after, .ribbon-polyplus-retro::before {
|
||||
border-color: rgb(104, 0, 104) !important;
|
||||
}
|
||||
|
|
@ -970,6 +970,8 @@ function ChooseRibbon(item) {
|
|||
return '<div class="ribbon ribbon-polyplus-custom ribbon-top-right"><span>Custom</span></div>';
|
||||
} else if (item.ribbon === 'unknown') {
|
||||
return '<div class="ribbon ribbon-polyplus-unknown ribbon-top-right"><span><i>?</i></span></div>';
|
||||
} else if (item.ribbon === 'retro' && (Avatar.items.indexOf(item.id) !== -1 || Avatar.tool === item.id)) {
|
||||
return '<div class="ribbon ribbon-polyplus-retro ribbon-top-right"><span>Retro</span></div>';
|
||||
} else if (item.isLimited) {
|
||||
return '<div class="ribbon ribbon-limited ribbon-top-right"><span><i class="fas fa-star"></i></span></div>';
|
||||
} else if (new Date(item.createdAt) > NewDateAgo) {
|
||||
|
|
|
|||
Reference in a new issue