mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
4f8c4820d2
* adding badges for nfts * fixing default nft styling issue * adding multichain flag, making borderRadius inline * Apply suggestions from code review Co-authored-by: George Marshall <george.marshall@consensys.net> * fixing imports * removing nullcheck for guaranteed fields * moving badgewrapper UI into multichain component * using Box for button, removing inline style, border-radius for NFT default image * adding nft badges to NFT Details page * nits, snap update * fixing/refactoring nftdefaultimage display, adding clickable, removing handleimageclick, refactor NFTItem, required props * editing nft-default-image story, test, and snap * Updating to fix positioning, use Box props to reduce CSS and BEM naming conventions * moving minor styling to Box props, adding comment * display block typo --------- Co-authored-by: George Marshall <george.marshall@consensys.net>
55 lines
850 B
SCSS
55 lines
850 B
SCSS
.nfts-items {
|
|
&__collection {
|
|
margin-bottom: 24px;
|
|
|
|
&-accordion-title {
|
|
cursor: pointer;
|
|
}
|
|
|
|
&-wrapper {
|
|
background-color: transparent;
|
|
border: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
&-image {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
&-image-alt {
|
|
border-radius: 50%;
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 8px;
|
|
background: var(--color-overlay-alternative);
|
|
color: var(--color-overlay-inverse);
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
&__item-wrapper {
|
|
align-self: center;
|
|
|
|
&__card {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
&__item {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
align-self: center;
|
|
padding: 0;
|
|
|
|
&-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|