.StickerButton { --custom-emoji-size: 2.25rem; --premium-gradient: linear-gradient(88.39deg, #6C93FF -2.56%, #976FFF 51.27%, #DF69D1 107.39%); display: inline-block; width: 4.5rem; height: 4.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; flex-shrink: 0; &.custom-emoji { color: var(--color-primary); width: var(--custom-emoji-size); height: var(--custom-emoji-size); margin: 0.3125rem; &.status-default { font-size: 2rem; padding: 0.125rem; color: var(--color-text); } } &.effect-emoji .sticker-locked { font-size: 0.75rem; width: 0.875rem; height: 0.875rem; } &.set-expand { padding: 0; vertical-align: bottom; align-self: center; justify-self: center; font-weight: var(--font-weight-medium); } .sticker-locked { position: absolute; bottom: 0; right: 0; width: 1.25rem; height: 1.25rem; display: flex; justify-content: center; align-items: center; border-radius: 50%; color: white; z-index: 2; opacity: 0.75; background: var(--premium-gradient); } .sticker-premium { position: absolute; bottom: 0; right: 0; width: 1.25rem; height: 1.25rem; display: flex; justify-content: center; align-items: center; border-radius: 50%; color: white; background: var(--premium-gradient); z-index: 1; } &.selected { background-color: var(--color-interactive-element-hover); } &.interactive { cursor: var(--custom-cursor, pointer); &:hover { background-color: var(--color-interactive-element-hover); .sticker-remove-button { opacity: 1; } } } @media (max-width: 600px) { &, &.custom-emoji { margin: 0.25rem; } } &.set-button { width: 2.75rem !important; height: 2.75rem; margin: 0 0.5rem; } &.large { width: 10rem; height: 10rem; margin: 0; } .AnimatedSticker, .sticker-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .sticker-media { object-fit: contain; -webkit-touch-callout: none; user-select: none; } .sticker-remove-button { position: absolute; top: -0.125rem; right: -0.125rem; width: 1.25rem; height: 1.25rem; padding: 0.125rem; z-index: 2; .icon { font-size: 1rem; } opacity: 0; transition: opacity 0.15s ease; } } .sticker-context-menu { position: absolute; cursor: var(--custom-cursor, default); z-index: var(--z-header-menu); .bubble { width: auto !important; } .SymbolMenu & .bubble { --offset-y: 0; } }