.site-chat-section { height: calc(100% - @navbar-nav-item-height); } #site-chat-container { align-self: stretch; overflow: scroll; .chat-menubar { padding: 10px @grid-small-gutter-horizontal; border-bottom: solid 1px @content-border-color; } #chat-input-form { textarea.uk-textarea { padding: 2px 6px; resize: none; } } .fundraising-progress-overlay { position: absolute; top: 40px; right: 0; left: 0; width: 100%; overflow: hidden; background: black; &.hidden { display: none; } } #chat-message-list-wrapper { position: relative; flex: 1; #chat-reactions { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: transparent; overflow: hidden; span.reaction-icon { display: block; position: absolute; font-size: 24px; opacity: 0.6; transform: rotate(0deg); } } #chat-message-list { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: auto; box-shadow: var(--dtp-chat-shadow); scroll-behavior: auto; &::-webkit-scrollbar { display: none; /* Chrome */ } scrollbar-width: none; /* Firefox */ .chat-message { color: var(--dtp-chat-color); background: var(--dtp-chat-background); border-radius: 8px; font-size: var(--dtp-chat-font-size); margin: 5px @grid-small-gutter-horizontal; &.system-message { background: rgba(255,255,255, 0.1); } .chat-username { font-weight: bold; font-size: var(--dtp-chat-font-size); line-height: 1; color: var(--dtp-chat-username-color); } img.chat-author-image { width: auto; height: 2em; border-radius: 4px; } .chat-content { line-height: 1.2em; font-size: var(--dtp-chat-font-size); color: inherit; overflow-wrap: break-word; p:last-child { margin-bottom: 0; } } .chat-timestamp { color: var(--dtp-chat-timestamp-color); } .chat-sticker { display: inline-block; margin-top: 4px; margin-right: 8px; color: inherit; video { width: auto; height: 100px; } } .chat-user-menu { button.chat-menu-button { padding: 0; margin: 0; background: transparent; outline: none; border: none; line-height: 1; } } } } .chat-message-menu { position: absolute; display: none; right: 4px; bottom: 20px; left: 4px; text-align: center; &.chat-menu-visible { display: block; } button.chat-scroll-return { padding: 4px 8px; background: rgba(0,0,0, 0.6); color: #c8c8c8; border: solid 2px @site-brand-color; border-radius: 8px; outline: none; cursor: pointer; &:hover { color: white; } &:active { background: rgba(160, 0, 0, 0.9); color: white; } } } } } /* * OBS Chat Widget specializations */ body[data-obs-widget="chat"] { .site-player-view { #site-chat-container { #chat-message-list-wrapper { background-color: transparent; #chat-reactions { background-color: transparent; } } } } } /* * Mobile view layout */ @media screen and (max-width: 959px) { body[data-current-view="channel-broadcast"], body[data-current-view="dvr-player"] { position: fixed; top: 0; right: 0; bottom: 0; left: 0; padding: 0; margin: 0; width: 100%; height: 100%; .site-player-view { position: absolute; top: 64px; right: 0; bottom: 0; left: 0; overflow: hidden; display: flex; flex-direction: column; flex-wrap: nowrap; #site-video-container { flex: 0; } #site-chat-container { position: relative; flex: 1; #chat-message-list { flex: 1; } #chat-input-form { flex: 0; } } } } } body[data-obs-widget="chat"] { .chat-message { .chat-user-menu { display: none; } } }