A platform for community discussion. Free, open, simple.
UX: general style adjustments for livestream chat drawer (#43601)
Krisc89b1a0506a3
diff --git a/plugins/discourse-events/assets/stylesheets/desktop/livestream.scss b/plugins/discourse-events/assets/stylesheets/desktop/livestream.scssindex e4e463e690f..fd4d16ed2be 100644--- a/plugins/discourse-events/assets/stylesheets/desktop/livestream.scss+++ b/plugins/discourse-events/assets/stylesheets/desktop/livestream.scss@@ -1,3 +1,5 @@+@use "lib/viewport";+.livestream-topic.chat-enabled.archetype-regular {// we need to fullscreen the header icons to match the chat panel// being on the right side of the screen@@ -16,20 +18,21 @@}#custom-chat-container {- height: calc(- var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px)- ) !important;+ --1dvh: 1vh;grid-area: livestream;- border-left: 2px solid var(--primary-very-low);display: flex;position: sticky;top: var(--header-offset);background: var(--d-content-background, var(--secondary));-- --1dvh: 1vh;align-self: start;overflow-y: auto;- margin-left: 1em;++ @include viewport.from(lg) {+ border-left: 2px solid var(--primary-very-low);+ height: calc(+ var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px)+ ) !important;+ }.livestream-chat-close {display: none;@@ -40,6 +43,17 @@}}+ .d-modal__body {+ #custom-chat-container {+ height: 70vh;++ .chat-composer__wrapper {+ position: sticky;+ bottom: 0;+ }+ }+ }+// the timeline is swapped for the progress bar while chat is docked, so the// navigation is placed below the posts and the column it occupied is// reclaimed for themdiff --git a/plugins/discourse-events/assets/stylesheets/mobile/livestream.scss b/plugins/discourse-events/assets/stylesheets/mobile/livestream.scssindex 15ce3519aa7..8b9a0005b24 100644--- a/plugins/discourse-events/assets/stylesheets/mobile/livestream.scss+++ b/plugins/discourse-events/assets/stylesheets/mobile/livestream.scss@@ -1,3 +1,5 @@+@use "lib/viewport";+body.livestream-topic.chat-enabled {.d-header-icons {.livestream-header-icon {@@ -6,30 +8,14 @@ body.livestream-topic.chat-enabled {&::after {content: "";position: absolute;- top: 9px;- right: 16px;- width: 8px;- height: 8px;+ top: 1px;+ right: 0;+ width: 14px;+ height: 14px;border-radius: 50%;- background-color: rgb(255, 0, 0);+ background-color: var(--danger);animation: pulse-circle 3s infinite;- }-- @keyframes pulse-circle {- 0% {- transform: scale(1);- background-color: rgb(255, 0, 0, 0.9);- }-- 50% {- transform: scale(1.3);- background-color: rgb(255, 0, 0, 0.75);- }-- 100% {- transform: scale(1);- background-color: rgb(255, 0, 0, 0.9);- }+ border: 2px solid var(--header_background);}}}@@ -167,19 +153,11 @@ body.livestream-topic.chat-enabled {}.chat-composer__outer-container {- gap: var(--space-2);+ align-items: center;}.chat-composer-dropdown__menu-trigger {- padding: 0;margin: 0;- width: 3em;-- .d-icon {- padding: var(--space-2);- width: 100%;- height: 100%;- }}.chat-composer-button__wrapper {@@ -188,9 +166,13 @@ body.livestream-topic.chat-enabled {}.chat-composer-button {- margin: 0;- padding: 0.5em 0.65em;- height: 100%;+ align-self: center;+ }++ @include viewport.until(sm) {+ .chat-channel .empty-state__title {+ font-size: var(--font-up-1);+ }}}