mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
3a31326199
* add fallback image/card for collectibles when image was not fetched correctly or does not exist * UI and storybook updates (#15071) * UI and storybook updates * Adding break so token id is displayed * subtle border fix * Updating content * Removing unused image * Adding proptype descriptions * Lint fix Co-authored-by: George Marshall <george.marshall@consensys.net>
23 lines
449 B
SCSS
23 lines
449 B
SCSS
.collectible-default {
|
|
background-color: var(--color-background-alternative);
|
|
padding-top: 100%; // retains 1:1 aspect ratio
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
&__text {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-align: center;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: calc(100% - 32px);
|
|
}
|
|
|
|
&--clickable {
|
|
cursor: pointer;
|
|
}
|
|
}
|