.StickerButton { display: inline-block; width: 4rem; height: 4rem; margin: 0.5rem; border-radius: var(--border-radius-messages-small); background: transparent no-repeat center; background-size: contain; transition: background-color 0.15s ease, opacity 0.3s ease !important; position: relative; &.interactive { cursor: pointer; &:hover { background-color: var(--color-interactive-element-hover); .sticker-remove-button { opacity: 1; } } } @media (max-width: 600px) { margin: 0.25rem; } &.set-button { width: 2.75rem !important; height: 2.75rem; margin: 0 0.5rem; } &.large { width: 10rem; height: 10rem; margin: 0; } .AnimatedSticker, img, video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } img, video { object-fit: contain; -webkit-touch-callout: none; user-select: none; } .sticker-remove-button { position: absolute; top: -0.5rem; right: -0.5rem; width: 1.25rem; height: 1.25rem; padding: 0.125rem; i { font-size: 1rem; } opacity: 0; } .sticker-context-menu { position: absolute; cursor: default; .bubble { width: auto; } } }