element-web/res/themes/legacy-dark/css/_legacy-dark.pcss

243 lines
6.8 KiB
Plaintext
Raw Normal View History

/* Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 */
2022-12-12 12:24:14 +01:00
$system: #21262c;
$system-transparent: rgba($system, 0); /* XXX: workaround for Safari 15.3 linear-gradient bug */
/* unified palette */
/* try to use these colors when possible */
2020-07-09 14:48:15 +02:00
$bg-color: #181b21;
$base-color: #15171b;
$base-text-color: #edf3ff;
2020-07-09 14:48:15 +02:00
$header-panel-bg-color: #22262e;
$header-panel-text-primary-color: #a1b2d1;
2020-07-09 14:48:15 +02:00
$header-panel-text-secondary-color: #c8c8cd;
$text-primary-color: #edf3ff;
$text-secondary-color: #a1b2d1;
2020-07-09 14:48:15 +02:00
$room-highlight-color: #343a46;
/* typical text (dark-on-white in light skin) */
2020-07-09 14:48:15 +02:00
$primary-fg-color: $text-primary-color;
$secondary-fg-color: $primary-fg-color;
2020-08-14 19:53:56 +02:00
$tertiary-fg-color: $primary-fg-color;
2020-07-09 14:48:15 +02:00
$primary-bg-color: $bg-color;
$muted-fg-color: $header-panel-text-primary-color;
/* used for dialog box text */
2020-07-09 14:48:15 +02:00
$light-fg-color: $header-panel-text-secondary-color;
/* used for focusing form controls */
2020-07-09 14:48:15 +02:00
$focus-bg-color: $room-highlight-color;
2022-05-05 11:13:09 +02:00
$pill-bg-color: $room-highlight-color;
$pill-hover-bg-color: #545a66;
2020-07-09 14:48:15 +02:00
/* informational plinth */
2020-07-09 14:48:15 +02:00
$info-plinth-bg-color: $header-panel-bg-color;
$info-plinth-fg-color: #888;
$spacePanel-bg-color: $base-color;
$inverted-bg-color: $spacePanel-bg-color;
2020-07-09 14:48:15 +02:00
/* used by Autocomplete */
2020-07-09 14:48:15 +02:00
$selected-color: $room-highlight-color;
/* selected for hoverover & selected event tiles */
2020-07-09 14:48:15 +02:00
$event-selected-color: $header-panel-bg-color;
/* used for the hairline dividers in RoomView */
$primary-hairline-color: #000000;
2020-07-09 14:48:15 +02:00
/* used for the border of input text fields */
2020-07-09 14:48:15 +02:00
$input-border-color: #e7e7e7;
$input-darker-bg-color: #181b21;
$input-darker-fg-color: #61708b;
2020-07-09 14:48:15 +02:00
$input-lighter-bg-color: #f2f5f8;
2021-04-22 00:22:27 +02:00
$resend-button-divider-color: $muted-fg-color;
/* scrollbars */
2020-07-09 14:48:15 +02:00
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
/* context menus */
$menu-border-color: #000000;
2020-07-09 14:48:15 +02:00
$menu-bg-color: $header-panel-bg-color;
$menu-box-shadow-color: $bg-color;
$menu-selected-color: $room-highlight-color;
$avatar-initial-color: #ffffff;
$h3-color: $primary-fg-color;
$dialog-title-fg-color: $base-text-color;
$dialog-backdrop-color: #000;
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
$dialog-close-fg-color: #9fa9ba;
$dialog-close-external-color: $text-primary-color;
2020-07-09 14:48:15 +02:00
$lightbox-background-bg-color: #000;
$lightbox-background-bg-opacity: 0.85;
2020-07-09 14:48:15 +02:00
$settings-grey-fg-color: #a2a2a2;
$settings-subsection-fg-color: $text-secondary-color;
$topleftmenu-color: $text-primary-color;
$roomheader-addroom-bg-color: #3c4556;
2020-07-09 14:48:15 +02:00
$roomheader-addroom-fg-color: $text-primary-color;
2020-07-28 14:19:11 +02:00
$icon-button-color: $header-panel-text-primary-color;
2020-07-09 14:48:15 +02:00
$roomtopic-color: $text-secondary-color;
$room-icon-unread-color: #fff;
2020-07-09 14:48:15 +02:00
/* Legacy theme backports */
2022-12-12 12:24:14 +01:00
$accent: #0dbd8b;
$alert: #ff5b55;
$links: #0086e6;
2023-03-21 10:23:20 +01:00
$link-external: #0467dd;
$primary-content: $primary-fg-color;
$secondary-content: $secondary-fg-color;
$tertiary-content: $tertiary-fg-color;
2022-12-12 12:24:14 +01:00
$quaternary-content: #6f7882;
$quinary-content: $quaternary-content;
2022-12-12 12:24:14 +01:00
$system: #21262c;
$system-transparent: rgba($system, 0); /* XXX: workaround for Safari 15.3 linear-gradient bug */
$background: $primary-bg-color;
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);
$panels: rgba($system, 0.9);
2022-12-12 12:24:14 +01:00
$panel-base: #8d97a5; /* This color is not intended for use in the app */
$panel-selected: rgba($panel-base, 0.3);
$panel-hover: rgba($panel-base, 0.1);
$panel-actions: $roomtile-selected-bg-color;
$space-nav: rgba($panel-base, 0.1);
/* Legacy theme backports */
/* ******************** */
2020-07-09 14:48:15 +02:00
$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;
$call-system: $system;
$call-background: $background;
$call-primary-content: $primary-content;
$call-light-quaternary-content: #c1c6cd;
2021-11-29 13:52:09 +01:00
$roomlist-filter-active-bg-color: $panel-actions;
2020-07-17 23:59:35 +02:00
$roomlist-bg-color: $header-panel-bg-color;
2020-07-09 14:48:15 +02:00
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
2020-07-09 14:48:15 +02:00
$spacePanel-divider-color: $tertiary-content;
$roomtile-default-badge-bg-color: #61708b;
2022-12-12 12:24:14 +01:00
$roomtile-selected-bg-color: #1a1d23;
2020-07-09 14:48:15 +02:00
/* ******************** */
2020-07-09 14:48:15 +02:00
$widget-menu-bar-bg-color: $header-panel-bg-color;
2022-12-12 12:24:14 +01:00
$widget-body-bg-color: #1a1d23;
2020-07-09 14:48:15 +02:00
2022-12-12 12:24:14 +01:00
$event-highlight-bg-color: #25271f;
2020-07-09 14:48:15 +02:00
/* event timestamp */
2020-07-09 14:48:15 +02:00
$event-timestamp-color: $text-secondary-color;
/* Tabbed views */
2020-07-09 14:48:15 +02:00
$tab-label-fg-color: $text-primary-color;
$tab-label-active-fg-color: $text-primary-color;
/* Buttons */
2020-07-09 14:48:15 +02:00
$button-primary-fg-color: #ffffff;
$button-secondary-bg-color: transparent;
$button-danger-fg-color: #ffffff;
$button-danger-disabled-fg-color: #ffffff;
$button-danger-disabled-bg-color: #f5b6bb; /* TODO: Verify color */
2020-07-09 14:48:15 +02:00
/* Toggle switch */
2020-07-09 14:48:15 +02:00
$togglesw-off-color: $room-highlight-color;
$progressbar-bg-color: #21262c;
2020-07-09 14:48:15 +02:00
$visual-bell-bg-color: #800;
$dark-panel-bg-color: $header-panel-bg-color;
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
$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-button-hover-border-color: $header-panel-text-primary-color;
$reaction-row-button-selected-bg-color: #1f6954;
$kbd-border-color: #000000;
$tooltip-timeline-bg-color: $spacePanel-bg-color;
2020-07-09 14:48:15 +02:00
$tooltip-timeline-fg-color: #ffffff;
$breadcrumb-placeholder-bg-color: #272c35;
/* See non-legacy dark for variable information */
2022-12-12 12:24:14 +01:00
$voice-record-stop-border-color: #6f7882;
$voice-record-icon-color: #6f7882;
2021-05-05 22:00:56 +02:00
/* Appearance tab colors */
2020-07-09 14:48:15 +02:00
$appearance-tab-border-color: $room-highlight-color;
$composer-shadow-color: tranparent;
$codeblock-background-color: #2a3039;
$inlinecode-border-color: #2a3039;
$inlinecode-background-color: #2a3039;
/* Bubble tiles */
2022-12-12 12:24:14 +01:00
$eventbubble-self-bg: #14322e;
$eventbubble-others-bg: $event-selected-color;
2022-12-12 12:24:14 +01:00
$eventbubble-bg-hover: #1c2026;
$eventbubble-reply-color: #c1c6cd;
/* Location sharing */
/* ******************** */
$location-marker-color: #ffffff;
$location-live-color: #5c56f5;
$location-live-secondary-color: #deddfd;
/* ******************** */
/* Voice Broadcast */
/* ******************** */
$live-badge-color: #ffffff;
/* ******************** */
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. */
2020-07-09 14:48:15 +02:00
.mx_filterFlipColor {
filter: invert(1);
}
/* markdown overrides: */
2020-07-09 14:48:15 +02:00
.mx_EventTile_content .markdown-body {
table {
tr {
background-color: #000000;
}
tr:nth-child(2n) {
background-color: #080808;
}
}
}
/* highlight.js overrides: */
.hljs-tag {
color: inherit; /* Without this they'd be weirdly blue which doesn't match the theme */
2020-07-09 14:48:15 +02:00
}