diff --git a/web/components/action-buttons/ActionButton/ActionButton.module.scss b/web/components/action-buttons/ActionButton/ActionButton.module.scss index 1ada467a1..17fd9b4c8 100644 --- a/web/components/action-buttons/ActionButton/ActionButton.module.scss +++ b/web/components/action-buttons/ActionButton/ActionButton.module.scss @@ -1,10 +1,11 @@ .button { - margin: 3px; - font-weight: 400; - font-family: var(--theme-text-display-font-family); + font-weight: 600; + .icon { + max-height: 18px; height: 90%; margin-right: 5px; + margin-left: -3px; margin-bottom: 1%; } } diff --git a/web/components/action-buttons/ActionButtonRow/ActionButtonRow.module.scss b/web/components/action-buttons/ActionButtonRow/ActionButtonRow.module.scss index 0939fde64..986d1b1f2 100644 --- a/web/components/action-buttons/ActionButtonRow/ActionButtonRow.module.scss +++ b/web/components/action-buttons/ActionButtonRow/ActionButtonRow.module.scss @@ -1,11 +1,14 @@ .row { - padding: .3rem; + padding: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; button { - margin-left: .3rem; - margin-right: .3rem; + margin-left: 0.3rem; + margin-right: 0.3rem; + &:last-of-type { + margin-right: 0; + } } } diff --git a/web/components/chat/ChatActionMessage/ChatActionMessage.module.scss b/web/components/chat/ChatActionMessage/ChatActionMessage.module.scss index 90351a6b8..710f2f91b 100644 --- a/web/components/chat/ChatActionMessage/ChatActionMessage.module.scss +++ b/web/components/chat/ChatActionMessage/ChatActionMessage.module.scss @@ -1,5 +1,16 @@ .chatAction { - padding: 5px; - text-align: center; - color: var(--theme-color-components-chat-text); + padding: 8px; + margin: 4px 1rem; + border-radius: 4px; + + text-align: center; + font-size: 12px; + + color: var(--theme-color-components-chat-text); + background-color: var(--theme-color-palette-0); + + + p { + margin: 0; + } } diff --git a/web/components/chat/ChatContainer/ChatContainer.module.scss b/web/components/chat/ChatContainer/ChatContainer.module.scss index ac83ccefd..d3437f6c0 100644 --- a/web/components/chat/ChatContainer/ChatContainer.module.scss +++ b/web/components/chat/ChatContainer/ChatContainer.module.scss @@ -15,6 +15,8 @@ align-items: center; opacity: 0; animation: show 250ms forwards ease-in-out 500ms; + font-size: 12px; + font-weight: 600; } } @@ -23,6 +25,7 @@ flex-direction: column; background-color: var(--theme-color-components-chat-background); height: 100%; + font-size: var(--chat-message-text-size); } .virtuoso { width: auto; diff --git a/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss b/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss index 635499213..97a7f4f13 100644 --- a/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss +++ b/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss @@ -1,4 +1,10 @@ .root { padding: 10px 0px; color: var(--theme-color-components-chat-text); + font-weight: 300; + font-size: var(--chat-message-text-size); +} + +.icon { + padding: 0 var(--chat-notification-icon-padding) 0 16px; } diff --git a/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx b/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx index c169dcd0d..c99c584ea 100644 --- a/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx +++ b/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx @@ -1,8 +1,9 @@ import { FC } from 'react'; import dynamic from 'next/dynamic'; -import styles from './ChatJoinMessage.module.scss'; import { ModerationBadge } from '../ChatUserBadge/ModerationBadge'; +import styles from './ChatJoinMessage.module.scss'; + // Lazy loaded components const TeamOutlined = dynamic(() => import('@ant-design/icons/TeamOutlined'), { @@ -25,10 +26,10 @@ export const ChatJoinMessage: FC = ({ return (
- + - {displayName} + {displayName} {isAuthorModerator && ( diff --git a/web/components/chat/ChatModeratorNotification/ChatModeratorNotification.module.scss b/web/components/chat/ChatModeratorNotification/ChatModeratorNotification.module.scss index dac6d21cf..3097569aa 100644 --- a/web/components/chat/ChatModeratorNotification/ChatModeratorNotification.module.scss +++ b/web/components/chat/ChatModeratorNotification/ChatModeratorNotification.module.scss @@ -5,6 +5,7 @@ color: var(--theme-color-components-chat-text); margin: 5px; padding: 10px 10px; + font-size: var(--chat-message-text-size); @include flexCenter; .icon { diff --git a/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.module.scss b/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.module.scss index c366a7939..855f585a2 100644 --- a/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.module.scss +++ b/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.module.scss @@ -1,15 +1,18 @@ .nameChangeView { display: flex; - font-size: 0.9rem; + font-size: var(--chat-message-text-size); + font-weight: 300; border-radius: var(--theme-rounded-corners); padding: 5px 15px; color: var(--theme-color-components-chat-text); & .nameChangeText { - font-weight: bold; - font-family: var(--theme-text-display-font-family); + font-weight: 300; & .plain { - font-weight: normal; - font-family: var(--theme-text-body-font-family) !important; + font-weight: 300; } } } + +.icon { + padding-right: var(--chat-notification-icon-padding); +} diff --git a/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx b/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx index c44be73b5..a4bef7908 100644 --- a/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx +++ b/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx @@ -22,7 +22,7 @@ export const ChatNameChangeMessage: FC = ({ message return (
-
+
diff --git a/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss b/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss index d381aaf37..c112948d4 100644 --- a/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss +++ b/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss @@ -3,7 +3,7 @@ border-width: 1px; border-style: solid; padding: 10px 10px; - border-radius: 15px; + border-radius: var(--theme-rounded-corners); background-color: var(--theme-color-background-main); margin: 0.5em; diff --git a/web/components/chat/ChatSystemMessage/ChatSystemMessage.module.scss b/web/components/chat/ChatSystemMessage/ChatSystemMessage.module.scss index 22e107c6c..1356c0efc 100644 --- a/web/components/chat/ChatSystemMessage/ChatSystemMessage.module.scss +++ b/web/components/chat/ChatSystemMessage/ChatSystemMessage.module.scss @@ -33,7 +33,7 @@ padding-left: 0.3em; padding-right: 0.3em; color: var(--theme-color-palette-4); - border-radius: var(--theme-rounded-corners); + border-radius: var(--chat-text-highlight-border-radius); background-color: var(--color-owncast-palette-7); } } diff --git a/web/components/chat/ChatTextField/ChatTextField.module.scss b/web/components/chat/ChatTextField/ChatTextField.module.scss index 35f9985cf..45ee52886 100644 --- a/web/components/chat/ChatTextField/ChatTextField.module.scss +++ b/web/components/chat/ChatTextField/ChatTextField.module.scss @@ -34,7 +34,8 @@ } div[role='textbox'] { - font-size: 16px; + font-size: 13px; + font-weight: 400; padding: 0.3rem; background-color: inherit; border-color: var(--theme-color-components-form-field-border); @@ -53,7 +54,7 @@ border: none; background: none; cursor: pointer; - padding: 0 1rem; + padding: 0 .25rem; } .sendButton { diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss index f1da93314..3773bb208 100644 --- a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss +++ b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss @@ -1,5 +1,7 @@ -$border-style: 4px solid currentColor; +$border-style: 3px solid currentColor; $p-size: 8px; +$p-h-size: 8px; +$p-v-size: 2px; .root { * { @@ -7,28 +9,27 @@ $p-size: 8px; } border-left: $border-style; position: relative; - font-size: 0.9rem; - padding: 0px $p-size $p-size $p-size; + font-size: var(--chat-message-text-size); + padding: $p-v-size $p-h-size; color: var(--theme-color-components-chat-text); .user { display: flex; align-items: center; - font-family: var(--theme-text-display-font-family); - font-weight: 600; + font-weight: 600; } .message { overflow: hidden; overflow-wrap: anywhere; - font-weight: 500; + font-weight: 400; position: relative; mark { padding-left: 0.3em; padding-right: 0.3em; color: var(--theme-color-palette-4); - border-radius: var(--theme-rounded-corners); + border-radius: var(--chat-text-highlight-border-radius); background-color: var(--color-owncast-palette-7); } @@ -60,7 +61,7 @@ $p-size: 8px; .modMenuWrapper { position: absolute; display: none; - top: 0; + top: 5px; right: 10px; color: var(--theme-color-components-text-on-light); & button:focus, @@ -70,7 +71,8 @@ $p-size: 8px; button { border-radius: var(--theme-rounded-corners); - opacity: 0.8; + border-width: 0; + opacity: 0.8; } } diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx index 9d0115397..5304aa974 100644 --- a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx +++ b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx @@ -101,7 +101,7 @@ export const ChatUserMessage: FC = ({
{displayName} - {badgeNodes} + {badgeNodes}
)} diff --git a/web/components/common/ContentHeader/ContentHeader.module.scss b/web/components/common/ContentHeader/ContentHeader.module.scss index b82540399..eb3696d7a 100644 --- a/web/components/common/ContentHeader/ContentHeader.module.scss +++ b/web/components/common/ContentHeader/ContentHeader.module.scss @@ -1,14 +1,15 @@ @import '../../../styles/mixins.scss'; +$vert-spacing: 0.75rem; + .root { position: relative; display: grid; - padding: 1.4rem; - padding-top: unset; + padding: var(--content-padding); } .row { - margin-bottom: 7px; + margin-bottom: $vert-spacing; } .logoTitleSection { @@ -17,6 +18,7 @@ .logo { margin: auto 0.6rem; } + @include screen(desktop) { flex-direction: row; .logo { @@ -24,8 +26,11 @@ } } - @include screen(mobile) { + @include screen(tablet) { align-items: center; + .logo { + margin: 1.2rem auto; + } } } @@ -33,23 +38,25 @@ display: flex; flex-direction: column; margin-left: 0.6rem; + @include screen(tablet) { + margin-left: 0; + } .title { font-family: var(--theme-text-display-font-family); color: var(--theme-color-palette-0); - font-size: 1.7rem; - font-weight: bold; + font-size: 1.8rem; + font-weight: 600; line-height: 30px; margin: unset; } .subtitle { - font-size: 1.2rem; - font-weight: 400; - line-height: 1.3; + font-size: 1.15rem; + font-weight: 300; color: var(--theme-color-palette-0); max-width: 900px; - margin-top: 7px; + margin: $vert-spacing 0; } } @@ -59,7 +66,6 @@ span { display: inline-block; margin-right: 0.5rem; - font-size: 0.9rem; - font-weight: 500; + font-weight: 400; } } diff --git a/web/components/common/UserDropdown/UserDropdown.module.scss b/web/components/common/UserDropdown/UserDropdown.module.scss index f68810c58..6f0061c46 100644 --- a/web/components/common/UserDropdown/UserDropdown.module.scss +++ b/web/components/common/UserDropdown/UserDropdown.module.scss @@ -9,18 +9,14 @@ } } } - .userIcon { - @include screen(desktop) { - margin-right: .5rem; - } - } - .username { + .username { display: none; - + @include screen(desktop) { display: inline; + font-weight: 600; + font-size: .8rem; } } } - diff --git a/web/components/common/UserDropdown/UserDropdown.tsx b/web/components/common/UserDropdown/UserDropdown.tsx index 1ce0a25dd..78d06714d 100644 --- a/web/components/common/UserDropdown/UserDropdown.tsx +++ b/web/components/common/UserDropdown/UserDropdown.tsx @@ -121,7 +121,7 @@ export const UserDropdown: FC = ({ username: defaultUsername /> )} > -
+