@define-color bubble_bg_color mix(@window_bg_color, @window_fg_color, .05); @define-color bubble_self_bg_color alpha(@accent_bg_color, 0.3); @define-color quote_bg_color mix(@window_bg_color, @accent_bg_color, .1); .message-bubble { color: @window_fg_color; border-radius: 16px; padding: 9px; background-color: @bubble_bg_color; } .message-input-bar { border-top: 1px solid @borders; } .message-list row { padding:0; } .message-item { margin: 1px 0; } .message-item.has-timestamp { margin-bottom: 10pt; } .message-item.from-self .message-bubble { background-color: @bubble_self_bg_color; color: @card_fg_color; } .message-item:not(.has-header) .avatar-other { opacity: 0; } .currently-replied-box { padding: 12px 0; } .reaction { background-color: @bubble_bg_color; border: 1px solid @window_bg_color; border-radius: 16px; padding: 3px 6px; margin-top: -6px; } .no-padding { padding: 0px 0px; min-height: 16px; } .message-indicator-read { color: @accent_bg_color; } .quote { background-color: @quote_bg_color; border-left: 4px solid; border-left-color: @accent_bg_color; border-radius: 8px; color: @window_fg_color; padding: 9px; margin-bottom: 9px; } .message-item.from-self .quote { border-left-color: @accent_fg_color; } .message-item:not(.has-timestamp) .message-bubble { border-radius: 4px 16px 16px 4px ; } .message-item.has-timestamp .message-bubble { border-radius: 4px 16px 16px 16px ; } .message-item:not(.has-timestamp).from-self .message-bubble { border-radius: 16px 4px 4px 16px ; } .message-item.has-timestamp.from-self .message-bubble { border-radius: 16px 4px 16px 16px ; } .emoji .message-text, .emoji.from-self .message-text{ font-size: 3em; } .emoji:not(.has-attachment):not(.has-quote), .emoji.from-self:not(.has-attachment):not(.has-quote){ background: transparent; } .fl-emoji-picker { margin: 6px; } group { margin: -10px; margin-bottom: 9px; min-width:250px; } .only-media { margin-bottom: -34px; } .download-media { margin-bottom: 14px; } .qr-code { padding:18px; background-color: white; } .message-clamp { padding: 0 16px; } .message-list:first-child { padding-top: 16px; } .message-list:last-child { padding-bottom: 5px; } /* Utility */ .small-pill { border-radius: 18px; } /* Placeholder */ message-entry > overlay > label { margin: 0 9px; } message-entry > overlay > entry > .image-button { margin-right: -6px; } message-entry > overlay > entry > .image-button:hover { opacity: 1; background-color: unset; } message-entry > overlay > entry { padding: 0 9px; } message-entry > overlay > entry > scrolledwindow > scrollbar { box-shadow: none; background: none; } message-entry > overlay > entry > scrolledwindow > scrollbar slider { min-height: 0; } message-entry > overlay > entry > scrolledwindow > textview { background: none; color: inherit; } video controls { padding-left: 8px; } .not-loaded video image, .not-loaded video controls { opacity: 0; } .media-overlay { margin-left:-9px; margin-right:-9px; border-left: 1px solid; border-right: 1px solid; border-color: @bubble_bg_color; } .has-attachment:not(.has-text) .media-overlay { margin-bottom: -9px; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; border-bottom: 1px solid @light_3; } .has-attachment messagelabel { margin-top: 6pt; } .message-item:not(.has-header) .media-overlay { margin-top: -9px; border-top-left-radius: 16px; border-top-right-radius: 16px; border-top: 1px solid @light_3; } .message-item .has-quote .media-overlay { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; } .media-group { background-color: @window_bg_color; } .attachment-video controls { border-radius: 8px; margin-bottom: 16px; margin-right: 16px; margin-left: 16px; opacity: 0; } .attachment-video:hover controls { transition: all 0.4s ease-in-out; opacity: 1; } .media-overlay messageindicators { opacity: 0.7; background-color: alpha(black, 0.4); color: white; border-radius: 9999px; padding: 2px 6px; margin:12px; } .media-overlay:hover messageindicators { opacity:0; transition: all 0.4s ease-in-out; } .subtitle-room { font-size: smaller; } #room_title { margin-top: -6px; margin-bottom: -6px; min-height: 12px; } button.scroll-to-bottom { box-shadow: 0 1px 3px 0 alpha(black, 0.3); } .sidebar-pane searchbar box { padding-top: 0; } .navigation-sidebar .subtitle:not(.dim-label) { opacity:1; } .image-text-button label { font-weight: bold; } unread-indicator { background-color: @accent_bg_color; border-radius: 6px; } /* Message bubble coloring for pending and error messages */ .message-item.pending .message-bubble { background-color: yellow; } .message-item.error .message-bubble { background-color: red; } /* Animations when one wants to visibly draw focus to a message. */ .attention-animation:not(.from-self) .message-bubble { animation: attention-background-not-self 0.25s ease alternate; animation-iteration-count: 4; } @keyframes attention-background-not-self { to { background: mix(@window_bg_color, @window_fg_color, .4); } } .attention-animation.from-self .message-bubble { animation: attention-background-self 0.25s ease alternate; animation-iteration-count: 4; } @keyframes attention-background-self { to { background: alpha(@accent_bg_color, 0.7); } } .group-label { background-color: mix(@window_fg_color, transparent, 0.9); border-radius: 6pt; padding-left: 3px; padding-right: 3px; font-size: small; } @media (prefers-contrast: more) { .scroll-to-bottom { box-shadow: 0 0 0 1px @borders; } } @media (prefers-color-scheme: dark) { .timestamp{ background-color: black ; } .media-overlay { border-color: @dark_3; } button.scroll-to-bottom { box-shadow: 0 1px 3px 0 alpha(black, 0.6); } .message-item.pending .message-bubble { background-color: goldenrod; } .message-item.error .message-bubble { background-color: darkred; } }