.CommentButton { --background-color: var(--color-background); --hover-color: var(--color-chat-hover); display: flex; width: 100%; align-items: center; padding: .5625rem .25rem .5625rem .625rem; padding-inline-start: .625rem; padding-inline-end: .25rem; background: var(--background-color); border-bottom-right-radius: var(--border-bottom-right-radius); border-bottom-left-radius: var(--border-bottom-left-radius); font-size: .9375rem; font-weight: 500; line-height: 2rem; color: var(--accent-color); white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; user-select: none; body.animation-level-0 & { transition: none !important; } .Message .has-appendix &::before { content: ''; display: block; position: absolute; bottom: -.1875rem; left: -.5625rem; width: .5625rem; height: 1.25rem; background-position: bottom left; background-image: url('data:image/svg+xml,%3Csvg width="9" height="20" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"%3E%3Cdefs%3E%3Cfilter x="-50%25" y="-14.7%25" width="200%25" height="141.2%25" filterUnits="objectBoundingBox" id="a"%3E%3CfeOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"/%3E%3CfeGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"/%3E%3CfeColorMatrix values="0 0 0 0 0.0621962482 0 0 0 0 0.138574144 0 0 0 0 0.185037364 0 0 0 0.15 0" in="shadowBlurOuter1"/%3E%3C/filter%3E%3Cpath d="M3 17h6V0c-.193 2.84-.876 5.767-2.05 8.782-.904 2.325-2.446 4.485-4.625 6.48A1 1 0 003 17z" id="b"/%3E%3C/defs%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cuse fill="%23000" filter="url(%23a)" xlink:href="%23b"/%3E%3Cuse fill="%23FFF" xlink:href="%23b"/%3E%3C/g%3E%3C/svg%3E'); opacity: 0; transition: opacity .15s, filter .15s; .theme-dark #root & { filter: invert(.83); } body.animation-level-0 & { transition: none !important; } } .custom-shape & { position: absolute; right: -3rem; width: 2.25rem; bottom: 3rem; height: 3.375rem; border-radius: 1.375rem; padding: 0.375rem .3125rem .25rem; align-items: flex-start; color: white; background-color: rgba(0, 0, 0, .2); opacity: 0; transition: opacity .2s ease; @media (pointer: coarse) { opacity: 1 !important; } &:hover { background-color: rgba(0, 0, 0, .28); } .Message:hover & { opacity: 1; } &::after { content: attr(data-cnt); position: absolute; bottom: -.0625rem; left: 0; width: 100%; text-align: center; font-size: 12px; display: block; } &[data-cnt="0"] { height: 2.25rem; &::after { display: none; } } .icon-comments-sticker { display: block; font-size: 1.5rem; margin: 0 auto; } .recent-repliers, .icon-comments, .label, .icon-next { display: none; } } &:hover { background: var(--hover-color); .Message .has-appendix &::before { opacity: 1; } .Avatar { border-color: var(--hover-color) !important; } } .is-forwarded &, .audio &, .voice &, .poll &, .text & { border-top: 1px solid var(--color-borders); } .message-content.has-solid-background & { margin: .375rem -.5rem -.375rem; } .message-content.voice & { margin-bottom: -.5rem; } .message-content.audio & { margin-bottom: -.8125rem; } .message-content.audio &, .message-content.voice &, .message-content.poll &, .message-content.has-solid-background.text &, .message-content.has-solid-background.is-forwarded & { width: calc(100% + 1rem); } .icon-comments-sticker { display: none; } .icon-comments { font-size: 1.5625rem; line-height: 2rem; margin-inline-end: .875rem; } .icon-next { margin-inline-start: auto; font-size: 1.5rem; } .recent-repliers { display: inline-flex; align-items: center; margin-inline-end: .5rem; margin-inline-start: -.125rem; .Avatar { transition: border .15s; border: 2px solid var(--color-background); margin-inline-end: 0; z-index: 3; overflow: hidden; .emoji { width: 1rem; background-size: 1rem; } + .Avatar { z-index: 2; + .Avatar { z-index: 1; } } &:not(:first-child) { margin-inline-start: -.75rem; } } } &.has-unread .label { position: relative; &::after { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-color); margin-inline-start: .75rem; } } &.disabled { cursor: default; pointer-events: none; } }