Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Allow for custom scrollbar styling
Gabe Kangas4250aaec5412
diff --git a/web/components/chat/ChatContainer/ChatContainer.module.scss b/web/components/chat/ChatContainer/ChatContainer.module.scssindex f717d4ddad..8305281e5a 100644--- a/web/components/chat/ChatContainer/ChatContainer.module.scss+++ b/web/components/chat/ChatContainer/ChatContainer.module.scss@@ -51,3 +51,17 @@overflow-y: scroll;overflow-x: hidden;}++.virtuoso::-webkit-scrollbar {+ width: 5px;+ height: auto;+ background-color: var(--theme-color-components-chat-background);+}++.virtuoso::-webkit-scrollbar-thumb {+ background: var(--theme-color-components-scrollbar-thumb);+}++.chatTextField {+ border-top: 1px solid lightgray;+}diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsxindex d55bb9ef26..82b8dbe242 100644--- a/web/components/chat/ChatContainer/ChatContainer.tsx+++ b/web/components/chat/ChatContainer/ChatContainer.tsx@@ -192,7 +192,11 @@ export const ChatContainer: FC<ChatContainerProps> = ({return (<div id="chat-container" className={styles.chatContainer}>{MessagesTable}- {showInput && <ChatTextField />}+ {showInput && (+ <div className={styles.chatTextField}>+ <ChatTextField />+ </div>+ )}</div>);};diff --git a/web/components/ui/Content/Content.module.scss b/web/components/ui/Content/Content.module.scssindex 566e5aeb08..56cc594bf4 100644--- a/web/components/ui/Content/Content.module.scss+++ b/web/components/ui/Content/Content.module.scss@@ -5,7 +5,7 @@grid-template-columns: 1fr auto;width: 100%;background-color: var(--theme-color-background-main);-+@include screen(desktop) {height: var(--content-height);}@@ -16,6 +16,16 @@flex-direction: column;}+ .mainSection::-webkit-scrollbar {+ width: 5px;+ height: auto;+ background-color: var(--theme-color-components-scrollbar-background);+ }++ .mainSection::-webkit-scrollbar-thumb {+ background: var(--theme-color-components-scrollbar-thumb);+ }+.topSection {padding: 0;background-color: var(--theme-color-components-video-background);@@ -45,4 +55,3 @@height: 100%;grid-template-rows: 1fr auto;}-diff --git a/web/style-definitions/tokens/color/default-theme.yaml b/web/style-definitions/tokens/color/default-theme.yamlindex 044c367a80..b94bb62b57 100644--- a/web/style-definitions/tokens/color/default-theme.yaml+++ b/web/style-definitions/tokens/color/default-theme.yaml@@ -174,8 +174,8 @@ theme:chat:background:- value: 'var(--theme-color-palette-4)'- comment: '{theme.color.palette.4.comment}'+ value: 'var(--theme-color-palette-15)'+ comment: '{theme.color.palette.15.comment}'text:value: 'var(--theme-color-palette-2)'comment: '{theme.color.palette.2.comment}'@@ -185,6 +185,14 @@ theme:value: 'var(--theme-color-palette-15)'comment: '{theme.color.palette.15.comment}'+ scrollbar:+ background:+ value: 'var(--theme-color-palette-15)'+ comment: '{theme.color.palette.15.comment}'+ thumb:+ value: 'var(--theme-color-palette-6)'+ comment: '{theme.color.palette.6.comment}'+modal:header:background:diff --git a/web/styles/theme.less b/web/styles/theme.lessindex d5d3895f43..271c2b69f6 100644--- a/web/styles/theme.less+++ b/web/styles/theme.less@@ -1,6 +1,6 @@// Do not edit directly-// Generated on Sun, 13 Nov 2022 04:09:55 GMT+// Generated on Sun, 13 Nov 2022 20:33:46 GMT//// How to edit these values:// Edit the corresponding token file under the style-definitions directory@@ -83,9 +83,11 @@@theme-color-components-secondary-button-text-disabled: var(--theme-color-action-disabled); // Disabled background@theme-color-components-secondary-button-border: var(--theme-color-action); // Text link/secondary light text@theme-color-components-secondary-button-border-disabled: var(--theme-color-action-disabled); // Disabled background-@theme-color-components-chat-background: var(--theme-color-palette-4); // Light secondary+@theme-color-components-chat-background: var(--theme-color-palette-15); // Lighter background@theme-color-components-chat-text: var(--theme-color-palette-2); // Dark alternate@theme-color-components-content-background: var(--theme-color-palette-15); // Lighter background+@theme-color-components-scrollbar-background: var(--theme-color-palette-15); // Lighter background+@theme-color-components-scrollbar-thumb: var(--theme-color-palette-6); // Text link/secondary light text@theme-color-components-modal-header-background: var(--theme-color-palette-1); // Dark secondary@theme-color-components-modal-header-text: var(--theme-color-palette-3); // Light primary@theme-color-components-modal-content-background: var(--theme-color-palette-3); // Light primarydiff --git a/web/styles/variables.css b/web/styles/variables.cssindex b1ba7f4497..13aa0691d0 100644--- a/web/styles/variables.css+++ b/web/styles/variables.css@@ -1,6 +1,6 @@/*** Do not edit directly- * Generated on Sun, 13 Nov 2022 04:09:55 GMT+ * Generated on Sun, 13 Nov 2022 20:33:46 GMT** How to edit these values:* Edit the corresponding token file under the style-definitions directory@@ -35,12 +35,8 @@--theme-rounded-corners: 0.5rem; /* How much corners are rounded in places in the UI. */--theme-unknown-1: green; /* This should never be used and it means something is wrong. */--theme-unknown-2: red; /* This should never be used and it means something is wrong. */- --theme-text-body-font-family: var(- --font-owncast-body- ); /* The font family used for the body text. */- --theme-text-display-font-family: var(- --font-owncast-display- ); /* The font family used for the display/header text. */+ --theme-text-body-font-family: var(--font-owncast-body); /* The font family used for the body text. */+ --theme-text-display-font-family: var(--font-owncast-display); /* The font family used for the display/header text. */--theme-color-users-0: var(--color-owncast-user-0);--theme-color-users-1: var(--color-owncast-user-1);--theme-color-users-2: var(--color-owncast-user-2);@@ -77,68 +73,38 @@--theme-color-warning: var(--theme-color-palette-warning); /* Warning */--theme-color-components-text-on-light: var(--theme-color-palette-0); /* Dark primary */--theme-color-components-text-on-dark: var(--theme-color-palette-3); /* Light primary */- --theme-color-components-primary-button-background: var(- --theme-color-action- ); /* Text link/secondary light text */- --theme-color-components-primary-button-background-disabled: var(- --theme-color-action-disabled- ); /* Disabled background */+ --theme-color-components-primary-button-background: var(--theme-color-action); /* Text link/secondary light text */+ --theme-color-components-primary-button-background-disabled: var(--theme-color-action-disabled); /* Disabled background */--theme-color-components-primary-button-text: var(--theme-color-palette-4); /* Light secondary */- --theme-color-components-primary-button-text-disabled: var(- --theme-color-palette-10- ); /* Neutral gray light */- --theme-color-components-primary-button-border: var(- --theme-color-palette-4- ); /* Light secondary */- --theme-color-components-primary-button-border-disabled: var(- --theme-color-action-disabled- ); /* Disabled background */- --theme-color-components-secondary-button-background: var(- --theme-color-palette-4- ); /* Light secondary */+ --theme-color-components-primary-button-text-disabled: var(--theme-color-palette-10); /* Neutral gray light */+ --theme-color-components-primary-button-border: var(--theme-color-palette-4); /* Light secondary */+ --theme-color-components-primary-button-border-disabled: var(--theme-color-action-disabled); /* Disabled background */+ --theme-color-components-secondary-button-background: var(--theme-color-palette-4); /* Light secondary */--theme-color-components-secondary-button-background-disabled: transparent;- --theme-color-components-secondary-button-text: var(- --theme-color-action-disabled- ); /* Disabled background */- --theme-color-components-secondary-button-text-disabled: var(- --theme-color-action-disabled- ); /* Disabled background */- --theme-color-components-secondary-button-border: var(- --theme-color-action- ); /* Text link/secondary light text */- --theme-color-components-secondary-button-border-disabled: var(- --theme-color-action-disabled- ); /* Disabled background */- --theme-color-components-chat-background: var(--theme-color-palette-4); /* Light secondary */+ --theme-color-components-secondary-button-text: var(--theme-color-action-disabled); /* Disabled background */+ --theme-color-components-secondary-button-text-disabled: var(--theme-color-action-disabled); /* Disabled background */+ --theme-color-components-secondary-button-border: var(--theme-color-action); /* Text link/secondary light text */+ --theme-color-components-secondary-button-border-disabled: var(--theme-color-action-disabled); /* Disabled background */+ --theme-color-components-chat-background: var(--theme-color-palette-15); /* Lighter background */--theme-color-components-chat-text: var(--theme-color-palette-2); /* Dark alternate */- --theme-color-components-content-background: var(- --theme-color-palette-15- ); /* Lighter background */- --theme-color-components-modal-header-background: var(- --theme-color-palette-1- ); /* Dark secondary */+ --theme-color-components-content-background: var(--theme-color-palette-15); /* Lighter background */+ --theme-color-components-scrollbar-background: var(--theme-color-palette-15); /* Lighter background */+ --theme-color-components-scrollbar-thumb: var(--theme-color-palette-6); /* Text link/secondary light text */+ --theme-color-components-modal-header-background: var(--theme-color-palette-1); /* Dark secondary */--theme-color-components-modal-header-text: var(--theme-color-palette-3); /* Light primary */- --theme-color-components-modal-content-background: var(- --theme-color-palette-3- ); /* Light primary */+ --theme-color-components-modal-content-background: var(--theme-color-palette-3); /* Light primary */--theme-color-components-modal-content-text: var(--theme-color-palette-0); /* Dark primary */--theme-color-components-menu-background: var(--theme-color-palette-3); /* Light primary */--theme-color-components-menu-item-text: var(--theme-color-palette-0); /* Dark primary */--theme-color-components-menu-item-bg: transparent;--theme-color-components-menu-item-hover-bg: rgba(0, 0, 0, 0.05);--theme-color-components-menu-item-focus-bg: rgba(0, 0, 0, 0.1);- --theme-color-components-form-field-background: var(- --theme-color-palette-4- ); /* Light secondary */- --theme-color-components-form-field-placeholder: var(- --theme-color-action-disabled- ); /* Disabled background */+ --theme-color-components-form-field-background: var(--theme-color-palette-4); /* Light secondary */+ --theme-color-components-form-field-placeholder: var(--theme-color-action-disabled); /* Disabled background */--theme-color-components-form-field-text: var(--theme-color-palette-0); /* Dark primary */--theme-color-components-form-field-border: var(--theme-color-palette-0); /* Dark primary */--theme-color-components-video-background: var(--theme-color-palette-2); /* Dark alternate */- --theme-color-components-video-live-indicator: var(- --theme-color-palette-7- ); /* The Live dot indicator in the control bar of the video player */+ --theme-color-components-video-live-indicator: var(--theme-color-palette-7); /* The Live dot indicator in the control bar of the video player */--owncast-purple-25: rgba(120, 113, 255, 0.25);--color-unknown: #7a5cf3;--color-unknown-2: #fffffe;@@ -168,10 +134,6 @@--color-owncast-palette-15: #eff1f4; /* Lighter background */--color-owncast-palette-error: #ff4b39; /* Error */--color-owncast-palette-warning: #ffc655; /* Warning */- --font-owncast-body: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,- 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',- 'Segoe UI Symbol', 'Noto Color Emoji';- --font-owncast-display: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',- Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',- 'Segoe UI Symbol', 'Noto Color Emoji';+ --font-owncast-body: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';+ --font-owncast-display: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';}