2022-07-27 21:39:29 +08:00
|
|
|
/* Reference: https://www.figma.com/file/RnLKnv09glhxGIZtn8zfmh/UI-Themes-%26-Accessibility?node-id=321%3A65847 */
|
2023-07-13 01:46:49 +08:00
|
|
|
$accent: var(--cpd-color-text-action-accent);
|
|
|
|
$alert: var(--cpd-color-text-critical-primary);
|
|
|
|
$links: var(--cpd-color-text-link-external);
|
|
|
|
$primary-content: var(--cpd-color-text-primary);
|
|
|
|
$secondary-content: var(--cpd-color-text-secondary);
|
|
|
|
$tertiary-content: var(--cpd-color-gray-800);
|
|
|
|
$quaternary-content: var(--cpd-color-gray-600);
|
|
|
|
$quinary-content: var(--cpd-color-gray-400);
|
2021-10-22 22:18:49 +08:00
|
|
|
|
2023-07-13 01:46:49 +08:00
|
|
|
$username-variant1-color: var(--cpd-color-blue-900);
|
|
|
|
$username-variant2-color: var(--cpd-color-fuchsia-900);
|
|
|
|
$username-variant3-color: var(--cpd-color-green-900);
|
|
|
|
$username-variant4-color: var(--cpd-color-pink-900);
|
|
|
|
$username-variant5-color: var(--cpd-color-orange-900);
|
|
|
|
$username-variant6-color: var(--cpd-color-cyan-900);
|
|
|
|
$username-variant7-color: var(--cpd-color-purple-900);
|
|
|
|
$username-variant8-color: var(--cpd-color-lime-900);
|
2021-10-22 22:18:49 +08:00
|
|
|
|
2021-11-11 21:37:29 +08:00
|
|
|
$accent-alt: $links;
|
2021-10-27 21:31:54 +08:00
|
|
|
$input-border-color: $secondary-content;
|
2021-10-22 22:18:49 +08:00
|
|
|
$input-darker-bg-color: $quinary-content;
|
2021-10-27 21:31:54 +08:00
|
|
|
$input-darker-fg-color: $secondary-content;
|
2021-10-22 22:18:49 +08:00
|
|
|
$resend-button-divider-color: $input-darker-bg-color;
|
2023-07-13 01:46:49 +08:00
|
|
|
$icon-button-color: var(--cpd-color-icon-tertiary);
|
2021-10-22 22:18:49 +08:00
|
|
|
$theme-button-bg-color: $quinary-content;
|
|
|
|
$presence-offline: $quinary-content;
|
|
|
|
$pinned-color: $tertiary-content;
|
|
|
|
$button-secondary-bg-color: $accent-fg-color;
|
|
|
|
$message-action-bar-fg-color: $primary-content;
|
|
|
|
$voice-record-stop-border-color: $quinary-content;
|
|
|
|
$voice-record-icon-color: $tertiary-content;
|
|
|
|
$appearance-tab-border-color: $input-darker-bg-color;
|
|
|
|
$eventbubble-reply-color: $quaternary-content;
|
2021-10-27 21:31:54 +08:00
|
|
|
$roomtopic-color: $secondary-content;
|
2021-10-22 22:18:49 +08:00
|
|
|
|
2023-07-13 01:46:49 +08:00
|
|
|
/**
|
|
|
|
* Creating a `semantic` color scale. This will not be needed with the new
|
|
|
|
* visual language, but necessary during the transition period
|
|
|
|
* This abstract the `green` away from where accent shades are used
|
|
|
|
* Take: `background: rgba($accent, 0.1);`
|
|
|
|
* would be transformed to: `background: $accent-300;`
|
|
|
|
*
|
|
|
|
* To use under very rare circumstances, always prefer the semantics defined
|
|
|
|
* in https://compound.element.io/?path=/docs/tokens-semantic-colors--docs
|
|
|
|
*/
|
|
|
|
$accent-100: var(--cpd-color-green-100);
|
|
|
|
$accent-200: var(--cpd-color-green-200);
|
|
|
|
$accent-300: var(--cpd-color-green-300);
|
|
|
|
$accent-400: var(--cpd-color-green-400);
|
|
|
|
$accent-500: var(--cpd-color-green-500);
|
|
|
|
$accent-600: var(--cpd-color-green-600);
|
|
|
|
$accent-700: var(--cpd-color-green-700);
|
|
|
|
$accent-800: var(--cpd-color-green-800);
|
|
|
|
$accent-900: var(--cpd-color-green-900);
|
|
|
|
$accent-1000: var(--cpd-color-green-1000);
|
|
|
|
$accent-1100: var(--cpd-color-green-1100);
|
|
|
|
$accent-1200: var(--cpd-color-green-1200);
|
|
|
|
$accent-1300: var(--cpd-color-green-1300);
|
|
|
|
$accent-1400: var(--cpd-color-green-1400);
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Draw an outline on buttons with focus */
|
2021-10-27 21:31:54 +08:00
|
|
|
.mx_AccessibleButton:focus {
|
2021-11-11 21:37:29 +08:00
|
|
|
outline: 2px solid $accent;
|
2021-10-27 21:31:54 +08:00
|
|
|
outline-offset: 2px;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Add padding (and remove margin to compensate), so the outline is not */
|
|
|
|
/* chopped off on the left */
|
2021-11-10 19:24:27 +08:00
|
|
|
.mx_TabbedView_tabPanel {
|
2022-07-27 21:39:29 +08:00
|
|
|
margin-left: 236px !important; /* Remove 4 to allow 4 in mx_SettingsTab */
|
2021-11-10 19:24:27 +08:00
|
|
|
}
|
|
|
|
.mx_SettingsTab {
|
|
|
|
padding-left: 4px !important;
|
|
|
|
}
|
|
|
|
.mx_BaseCard {
|
2022-07-27 21:39:29 +08:00
|
|
|
padding-left: 4px !important; /* Remove 4 to allow 4 in mx_BaseCard_Group */
|
2021-11-10 19:24:27 +08:00
|
|
|
}
|
|
|
|
.mx_BaseCard_Group {
|
|
|
|
padding-left: 4px !important;
|
|
|
|
}
|
|
|
|
|
2021-10-27 21:31:54 +08:00
|
|
|
.mx_BasicMessageComposer .mx_BasicMessageComposer_inputEmpty > :first-child::before {
|
|
|
|
color: $secondary-content;
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TextualEvent {
|
|
|
|
color: $secondary-content;
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Dialog,
|
|
|
|
.mx_MatrixChat_wrapper {
|
2022-07-15 21:53:23 +08:00
|
|
|
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type="text"]::placeholder,
|
|
|
|
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type="search"]::placeholder,
|
2021-10-27 21:31:54 +08:00
|
|
|
.mx_textinput input::placeholder {
|
|
|
|
color: $input-darker-fg-color !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserMenu_contextMenu .mx_UserMenu_contextMenu_header .mx_UserMenu_contextMenu_themeButton {
|
2021-11-29 20:52:09 +08:00
|
|
|
background-color: $panel-actions !important;
|
2021-10-27 21:31:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_FontScalingPanel_fontSlider {
|
2021-11-29 20:52:09 +08:00
|
|
|
background-color: $panel-actions !important;
|
2021-10-27 21:31:54 +08:00
|
|
|
}
|
2021-10-28 20:01:50 +08:00
|
|
|
|
2023-05-22 05:12:11 +08:00
|
|
|
.mx_ThemeChoicePanel_themeSelectors > .mx_StyledRadioButton input[type="radio"]:disabled + div {
|
2021-10-28 20:01:50 +08:00
|
|
|
border-color: $primary-content;
|
|
|
|
}
|
|
|
|
|
2023-05-22 05:12:11 +08:00
|
|
|
.mx_ThemeChoicePanel_themeSelectors > .mx_StyledRadioButton.mx_StyledRadioButton_disabled {
|
2021-10-28 20:01:50 +08:00
|
|
|
color: $primary-content;
|
|
|
|
}
|
2021-12-09 17:13:03 +08:00
|
|
|
|
|
|
|
.mx_RoomSearch {
|
|
|
|
&.mx_RoomSearch_focused,
|
|
|
|
&.mx_RoomSearch_hasQuery {
|
|
|
|
.mx_RoomSearch_clearButton {
|
|
|
|
&::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_PollCreateDialog {
|
|
|
|
.mx_PollCreateDialog_option {
|
|
|
|
.mx_PollCreateDialog_removeOption {
|
|
|
|
&::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 23:40:51 +08:00
|
|
|
|
|
|
|
.mx_Dialog_buttons button.mx_LocationPicker_cancelButton::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
2022-06-30 22:17:30 +08:00
|
|
|
|
|
|
|
.mx_SpotlightDialog_wrapper .mx_Dialog {
|
|
|
|
#mx_SpotlightDialog_keyboardPrompt {
|
|
|
|
kbd {
|
|
|
|
color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpotlightDialog {
|
|
|
|
.mx_SpotlightDialog_searchBox {
|
|
|
|
> .mx_SpotlightDialog_filter {
|
|
|
|
color: $background !important;
|
|
|
|
&::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#mx_SpotlightDialog_content {
|
|
|
|
.mx_SpotlightDialog_recentlyViewed {
|
|
|
|
.mx_SpotlightDialog_option {
|
2022-07-15 21:53:23 +08:00
|
|
|
&:hover,
|
|
|
|
&[aria-selected="true"] {
|
2022-06-30 22:17:30 +08:00
|
|
|
color: $background !important;
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.mx_SpotlightDialog_results,
|
|
|
|
.mx_SpotlightDialog_recentSearches,
|
|
|
|
.mx_SpotlightDialog_otherSearches,
|
|
|
|
.mx_SpotlightDialog_hiddenResults {
|
|
|
|
.mx_SpotlightDialog_option {
|
2022-07-15 21:53:23 +08:00
|
|
|
&:hover,
|
|
|
|
&[aria-selected="true"] {
|
2022-06-30 22:17:30 +08:00
|
|
|
background-color: $quinary-content !important;
|
|
|
|
color: $background !important;
|
|
|
|
|
|
|
|
&.mx_SpotlightDialog_startChat::before,
|
|
|
|
&.mx_SpotlightDialog_joinRoomAlias::before,
|
|
|
|
&.mx_SpotlightDialog_explorePublicRooms::before,
|
|
|
|
&.mx_SpotlightDialog_startGroupChat::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DecoratedRoomAvatar_icon::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpotlightDialog_result_publicRoomDetails {
|
|
|
|
.mx_SpotlightDialog_result_publicRoomHeader {
|
|
|
|
.mx_SpotlightDialog_result_publicRoomName {
|
|
|
|
color: $background;
|
|
|
|
}
|
|
|
|
.mx_SpotlightDialog_result_publicRoomAlias {
|
|
|
|
color: $background;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.mx_SpotlightDialog_result_publicRoomDescription {
|
|
|
|
color: $background;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NotificationBadge {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpotlightDialog_result_details {
|
|
|
|
color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.mx_SpotlightDialog_enterPrompt {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_GenericDropdownMenu_button:hover,
|
2022-07-15 21:53:23 +08:00
|
|
|
.mx_GenericDropdownMenu_button[aria-expanded="true"] {
|
2022-06-30 22:17:30 +08:00
|
|
|
color: $background !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_wrapper.mx_GenericDropdownMenu_wrapper {
|
|
|
|
.mx_GenericDropdownMenu_Option {
|
|
|
|
&.mx_GenericDropdownMenu_Option--item {
|
|
|
|
&:hover {
|
|
|
|
background-color: $quinary-content !important;
|
|
|
|
color: $background !important;
|
|
|
|
|
|
|
|
&[aria-checked="true"]::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_GenericDropdownMenu_Option--label {
|
|
|
|
span:first-child {
|
|
|
|
color: $background !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NetworkDropdown_removeServer::before {
|
|
|
|
background-color: $background !important;
|
|
|
|
}
|