element-web/res/themes/dark/css/_dark.pcss

343 lines
9.4 KiB
Plaintext
Raw Normal View History

/* Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 */
/* ******************** */
$primary-content: #ffffff;
$secondary-content: #A9B2BC;
$tertiary-content: #8E99A4;
$quaternary-content: #6F7882;
$quinary-content: #394049;
$system: #21262C;
$system-transparent: rgba($system, 0.0); /* XXX: workaround for Safari 15.3 linear-gradient bug */
$background: #15191E;
Live location sharing - beacon in timeline happy path (#8285) * extract location markers into generic Marker Signed-off-by: Kerry Archibald <kerrya@element.io> * wrap marker in smartmarker Signed-off-by: Kerry Archibald <kerrya@element.io> * test smartmarker Signed-off-by: Kerry Archibald <kerrya@element.io> * working map in location body Signed-off-by: Kerry Archibald <kerrya@element.io> * remove skinned sdk Signed-off-by: Kerry Archibald <kerrya@element.io> * use new ZoomButtons in MLocationBody Signed-off-by: Kerry Archibald <kerrya@element.io> * test LocationViewDialog Signed-off-by: Kerry Archibald <kerrya@element.io> * update commentt Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * extract livetimeremaining into own component Signed-off-by: Kerry Archibald <kerrya@element.io> * extract more beacon state utils Signed-off-by: Kerry Archibald <kerrya@element.io> * update tests for roomlivesharewarning Signed-off-by: Kerry Archibald <kerrya@element.io> * add idle status to live beacon icon * add beacon map and status chin Signed-off-by: Kerry Archibald <kerrya@element.io> * add handling for bubbles Signed-off-by: Kerry Archibald <kerrya@element.io> * tests for BeaconBody Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * move displaystatus check up to mbeaconbody Signed-off-by: Kerry Archibald <kerrya@element.io> * test BeaconStatus Signed-off-by: Kerry Archibald <kerrya@element.io> * rename BeaconStatusChin -> BeaconStatus Signed-off-by: Kerry Archibald <kerrya@element.io> * make BeaconStatus generic Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * adjust spinner size Signed-off-by: Kerry Archibald <kerrya@element.io> * polish and copyrights Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * better comment Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-13 10:44:15 +02:00
$overlay-background: rgba($background, 0.85);
$panel-base: #8D97A5; /* This color is not intended for use in the app */
$panels: rgba($system, 0.9);
$panel-selected: rgba($panel-base, 0.3);
$panel-hover: rgba($panel-base, 0.1);
$panel-actions: rgba($panel-base, 0.2);
$space-nav: rgba($panel-base, 0.1);
/* ******************** */
/* Reused Figma non-compound colors */
/* ******************** */
2021-11-15 10:42:06 +01:00
$inverted-bg-color: $background;
$header-panel-bg-color: #20252B;
/* ******************** */
2021-11-15 10:42:06 +01:00
/* Theme specific colors */
/* ******************** */
2021-11-15 10:42:06 +01:00
$icon-button-color: $tertiary-content;
/* ******************** */
2021-11-15 10:42:06 +01:00
/* Colors that aren't in Figma and are theme specific - we need to get rid of these */
/* ******************** */
2021-11-15 10:42:06 +01:00
$header-panel-text-secondary-color: #c8c8cd;
2019-02-13 14:10:55 +01:00
$room-highlight-color: #343a46;
$text-secondary-color: #B9BEC6;
/* ******************** */
/* Colors that aren't in Figma - we need to get rid of these */
/* ******************** */
$dark-panel-bg-color: $header-panel-bg-color;
$muted-fg-color: $header-panel-text-primary-color;
$light-fg-color: $header-panel-text-secondary-color;
$focus-bg-color: $room-highlight-color;
$info-plinth-bg-color: $header-panel-bg-color;
2021-11-15 10:42:06 +01:00
$event-selected-color: $system;
$topleftmenu-color: $primary-content;
$roomtopic-color: $text-secondary-color;
$spacePanel-bg-color: rgba(38, 39, 43, 0.82);
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
$h3-color: $primary-content;
$event-highlight-bg-color: #25271F;
$header-panel-text-primary-color: $text-secondary-color;
/* ******************** */
/* Tooltip */
/* ******************** */
$tooltip-timeline-bg-color: $spacePanel-bg-color;
$tooltip-timeline-fg-color: $primary-content;
/* ******************** */
/* Widget */
/* ******************** */
$widget-menu-bar-bg-color: $header-panel-bg-color;
$widget-body-bg-color: $panel-actions;
/* ******************** */
/* Menu */
/* ******************** */
$menu-border-color: #000000;
$menu-bg-color: $header-panel-bg-color;
$menu-box-shadow-color: $background;
$menu-selected-color: $room-highlight-color;
/* ******************** */
/* Settings */
/* ******************** */
2021-11-15 10:42:06 +01:00
$settings-profile-button-bg-color: #e7e7e7;
$settings-subsection-fg-color: $text-secondary-color;
/* ******************** */
/* Room */
/* ******************** */
$room-icon-unread-color: #fff;
/* ******************** */
/* RoomHeader */
/* ******************** */
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
$roomheader-addroom-fg-color: $primary-content;
/* ******************** */
2021-12-03 10:23:38 +01:00
/* Rich-text-editor */
/* ******************** */
2022-05-05 11:13:09 +02:00
$pill-bg-color: $room-highlight-color;
$pill-hover-bg-color: #545a66;
/* ******************** */
/* Inputs */
/* ******************** */
2020-07-14 19:19:27 +02:00
$input-border-color: rgba(231, 231, 231, 0.2);
$input-darker-bg-color: #181b21;
$input-darker-fg-color: #61708b;
2019-02-12 16:40:06 +01:00
$input-lighter-bg-color: #f2f5f8;
/* ******************** */
2019-02-12 16:40:06 +01:00
/* Dialog */
/* ******************** */
$dialog-title-fg-color: $primary-content;
2021-11-29 13:52:09 +01:00
$dialog-backdrop-color: $menu-border-color;
$dialog-close-fg-color: #9fa9ba;
$dialog-close-external-color: $primary-content;
/* ******************** */
/* RoomList */
/* ******************** */
2021-11-29 13:52:09 +01:00
$roomlist-bg-color: rgba($system, 0.90);
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
2021-11-29 13:52:09 +01:00
$roomtile-default-badge-bg-color: $input-darker-fg-color;
/* ******************** */
2020-06-12 21:52:54 +02:00
/* Tabbed views */
/* ******************** */
$tab-label-fg-color: $primary-content;
$tab-label-active-fg-color: $primary-content;
/* ******************** */
2019-02-12 16:40:06 +01:00
/* Buttons */
/* ******************** */
$button-primary-fg-color: $primary-content;
2019-02-12 16:40:06 +01:00
$button-secondary-bg-color: transparent;
$button-danger-fg-color: $primary-content;
$button-danger-disabled-fg-color: $primary-content;
/* ******************** */
2019-02-12 16:40:06 +01:00
/* Toggle switch */
/* ******************** */
2020-04-23 13:28:00 +02:00
$togglesw-off-color: $room-highlight-color;
/* ******************** */
2020-04-23 13:28:00 +02:00
/* Authpage */
/* ******************** */
$authpage-primary-color: $primary-content;
/* ******************** */
/* Message action bar */
/* ******************** */
$message-action-bar-bg-color: $header-panel-bg-color;
$message-action-bar-fg-color: $header-panel-text-primary-color;
$message-action-bar-border-color: #616b7f;
$message-action-bar-hover-border-color: $header-panel-text-primary-color;
/* ******************** */
/* Reaction row */
/* ******************** */
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
$reaction-row-button-selected-bg-color: #1f6954;
/* ******************** */
/* Voice messages */
/* ******************** */
$voice-record-stop-border-color: $quaternary-content;
$voice-record-icon-color: $quaternary-content;
/* ******************** */
/* Bubble tiles */
/* ******************** */
$eventbubble-self-bg: #133A34;
$eventbubble-others-bg: #21262C;
$eventbubble-bg-hover: #1C2026;
$eventbubble-reply-color: #C1C6CD;
/* ******************** */
2021-07-01 15:23:00 +02:00
/* Lightbox */
/* ******************** */
$lightbox-background-bg-color: $menu-border-color;
$lightbox-background-bg-opacity: 0.85;
/* ******************** */
/* VoIP */
/* ******************** */
$call-view-button-on-foreground: $primary-content;
$call-view-button-on-background: $system;
$call-view-button-off-foreground: $system;
$call-view-button-off-background: $primary-content;
2022-05-04 17:16:38 +02:00
$call-view-content-background: $quinary-content;
$video-feed-secondary-background: $system;
Prepare for Element Call integration (#9224) * Improve accessibility and testability of Tooltip Adding a role to Tooltip was motivated by React Testing Library's reliance on accessibility-related attributes to locate elements. * Make the ReadyWatchingStore constructor safer The ReadyWatchingStore constructor previously had a chance to immediately call onReady, which was dangerous because it was potentially calling the derived class's onReady at a point when the derived class hadn't even finished construction yet. In normal usage, I guess this never was a problem, but it was causing some of the tests I was writing to crash. This is solved by separating out the onReady call into a start method. * Rename 1:1 call components to 'LegacyCall' to reflect the fact that they're slated for removal, and to not clash with the new Call code. * Refactor VideoChannelStore into Call and CallStore Call is an abstract class that currently only has a Jitsi implementation, but this will make it easy to later add an Element Call implementation. * Remove WidgetReady, ClientReady, and ForceHangupCall hacks These are no longer used by the new Jitsi call implementation, and can be removed. * yarn i18n * Delete call map entries instead of inserting nulls * Allow multiple active calls and consolidate call listeners * Fix a race condition when creating a video room * Un-hardcode the media device fallback labels * Apply misc code review fixes * yarn i18n * Disconnect from calls more politely on logout * Fix some strict mode errors * Fix another updateRoom race condition
2022-08-30 21:13:39 +02:00
$call-lobby-system: $system;
$call-lobby-background: $background;
$call-lobby-primary-content: $primary-content;
/* ******************** */
/* Location sharing */
/* ******************** */
$location-live-color: #5c56f5;
$location-live-secondary-color: #deddfd;
/* ******************** */
/* Location sharing */
/* ******************** */
.maplibregl-ctrl-attrib-button {
color: $background;
}
/* ******************** */
/* Voice Broadcast */
/* ******************** */
$live-badge-color: #ffffff;
/* ******************** */
/* One-off colors */
/* ******************** */
$progressbar-bg-color: $system;
2021-11-29 13:52:09 +01:00
$kbd-border-color: $menu-border-color;
2021-11-15 10:42:06 +01:00
$visual-bell-bg-color: #800;
$event-timestamp-color: $text-secondary-color;
$slider-background-color: $quinary-content;
$appearance-tab-border-color: $room-highlight-color;
$composer-shadow-color: rgba(0, 0, 0, 0.28);
$breadcrumb-placeholder-bg-color: #272c35;
2021-11-15 10:42:06 +01:00
$theme-button-bg-color: #e3e8f0;
$resend-button-divider-color: rgba($header-panel-text-primary-color, 0.74);
2021-11-15 10:42:06 +01:00
$codeblock-background-color: #2a3039;
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
$selected-color: $room-highlight-color;
/* ******************** */
2021-11-15 10:42:06 +01:00
/* blur amounts for left left panel (only for element theme) */
/* ******************** */
2021-11-15 10:42:06 +01:00
:root {
--lp-background-blur: 45px;
}
/* ******************** */
/* Mixins */
/* ******************** */
@define-mixin mx_DialogButton {
/* align images in buttons (eg spinners) */
vertical-align: middle;
border: 0px;
border-radius: 8px;
font-family: $font-family;
font-size: $font-14px;
2019-02-12 16:40:06 +01:00
color: $button-fg-color;
background-color: $accent;
width: auto;
padding: 7px;
padding-left: 1.5em;
padding-right: 1.5em;
cursor: pointer;
display: inline-block;
outline: none;
}
2019-02-12 16:40:06 +01:00
@define-mixin mx_DialogButton_danger {
background-color: $accent;
2019-02-12 16:40:06 +01:00
}
@define-mixin mx_DialogButton_secondary {
/* flip colours for the secondary ones */
font-weight: 600;
border: 1px solid $accent !important;
color: $accent;
2019-02-12 16:40:06 +01:00
background-color: $button-secondary-bg-color;
}
@define-mixin mx_Dialog_link {
color: $accent;
text-decoration: none;
}
/* ******************** */
body {
color-scheme: dark;
}
/* Nasty hacks to apply a filter to arbitrary monochrome artwork to make it */
/* better match the theme. Typically applied to dark grey 'off' buttons or */
/* light grey 'on' buttons. */
/* ******************** */
.mx_filterFlipColor {
filter: invert(1);
}
/* ******************** */
/* markdown overrides */
/* ******************** */
.mx_EventTile_content .markdown-body {
table {
tr {
2021-11-29 13:52:09 +01:00
background-color: $menu-border-color;
}
tr:nth-child(2n) {
background-color: #080808;
}
}
}
/* ******************** */
/* diff highlight colors */
/* ******************** */
.hljs-tag {
color: inherit; /* Without this they'd be weirdly blue which doesn't match the theme */
}
.hljs-addition {
background: #1a4b59;
}
.hljs-deletion {
background: #53232a;
}
/* ******************** */
/* Splash Page Gradient */
.mx_SplashPage::before {
background-image:
radial-gradient(
53.85% 66.75% at 87.55% 0%,
hsla(0, 0%, 11%, 0.15) 0%,
hsla(250, 100%, 88%, 0) 100%
),
radial-gradient(
41.93% 41.93% at 0% 0%,
hsla(0, 0%, 38%, 0.28) 0%,
hsla(250, 100%, 88%, 0) 100%
),
radial-gradient(
100% 100% at 0% 0%,
hsla(250, 100%, 88%, 0.3) 0%,
hsla(0, 100%, 86%, 0) 100%
),
radial-gradient(
106.35% 96.26% at 100% 0%,
hsla(25, 100%, 88%, 0.4) 0%,
hsla(167, 76%, 82%, 0) 100%
) !important;
}