2019-02-12 23:40:06 +08:00
|
|
|
// unified palette
|
|
|
|
// try to use these colors when possible
|
|
|
|
$bg-color: #181b21;
|
2019-02-16 01:34:39 +08:00
|
|
|
$base-color: #15171b;
|
2019-02-12 23:40:06 +08:00
|
|
|
$base-text-color: #edf3ff;
|
2019-02-13 21:10:55 +08:00
|
|
|
$header-panel-bg-color: #22262e;
|
|
|
|
$header-panel-border-color: #000000;
|
2019-02-12 23:40:06 +08:00
|
|
|
$header-panel-text-primary-color: #a1b2d1;
|
|
|
|
$header-panel-text-secondary-color: #c8c8cd;
|
|
|
|
$text-primary-color: #edf3ff;
|
|
|
|
$text-secondary-color: #a1b2d1;
|
2019-02-13 21:10:55 +08:00
|
|
|
$search-bg-color: #181b21;
|
2019-02-12 23:40:06 +08:00
|
|
|
$search-placeholder-color: #61708b;
|
2019-02-13 21:10:55 +08:00
|
|
|
$room-highlight-color: #343a46;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
|
|
|
// typical text (dark-on-white in light skin)
|
2019-02-12 23:40:06 +08:00
|
|
|
$primary-fg-color: $text-primary-color;
|
|
|
|
$primary-bg-color: $bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
|
|
|
// used for dialog box text
|
2019-02-12 23:40:06 +08:00
|
|
|
$light-fg-color: $header-panel-text-secondary-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
// used for focusing form controls
|
|
|
|
$focus-bg-color: $room-highlight-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-13 23:11:29 +08:00
|
|
|
$mention-user-pill-bg-color: $warning-color;
|
|
|
|
$other-user-pill-bg-color: $room-highlight-color;
|
2019-02-18 19:41:23 +08:00
|
|
|
$rte-room-pill-color: $room-highlight-color;
|
|
|
|
$rte-group-pill-color: $room-highlight-color;
|
2019-02-13 23:11:29 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
// informational plinth
|
|
|
|
$info-plinth-bg-color: $header-panel-bg-color;
|
|
|
|
$info-plinth-fg-color: #888;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$preview-bar-bg-color: $header-panel-bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$tagpanel-bg-color: $base-color;
|
2019-02-13 18:30:38 +08:00
|
|
|
|
|
|
|
// used by AddressSelector
|
|
|
|
$selected-color: $room-highlight-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
|
|
|
// selected for hoverover & selected event tiles
|
2019-05-01 00:41:11 +08:00
|
|
|
$event-selected-color: $header-panel-bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
|
|
|
// used for the hairline dividers in RoomView
|
2019-02-12 23:40:06 +08:00
|
|
|
$primary-hairline-color: $header-panel-border-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
|
|
|
// used for the border of input text fields
|
2019-02-12 23:40:06 +08:00
|
|
|
$input-border-color: #e7e7e7;
|
|
|
|
$input-darker-bg-color: $search-bg-color;
|
|
|
|
$input-darker-fg-color: $search-placeholder-color;
|
|
|
|
$input-lighter-bg-color: #f2f5f8;
|
|
|
|
$input-lighter-fg-color: $input-darker-fg-color;
|
|
|
|
$input-focused-border-color: #238cf5;
|
|
|
|
$input-valid-border-color: $accent-color;
|
2019-02-01 07:36:19 +08:00
|
|
|
$input-invalid-border-color: $warning-color;
|
2019-02-12 23:40:06 +08:00
|
|
|
|
|
|
|
$field-focused-label-bg-color: $bg-color;
|
|
|
|
|
2019-01-22 02:01:18 +08:00
|
|
|
// scrollbars
|
|
|
|
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
|
|
$scrollbar-track-color: transparent;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
// context menus
|
|
|
|
$menu-border-color: $header-panel-border-color;
|
|
|
|
$menu-bg-color: $header-panel-bg-color;
|
2019-02-13 22:56:28 +08:00
|
|
|
$menu-box-shadow-color: $bg-color;
|
2019-02-12 23:40:06 +08:00
|
|
|
$menu-selected-color: $room-highlight-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$avatar-initial-color: #ffffff;
|
|
|
|
$avatar-bg-color: $bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-16 11:56:42 +08:00
|
|
|
$h3-color: $primary-fg-color;
|
|
|
|
|
2019-04-05 17:06:35 +08:00
|
|
|
$dialog-title-fg-color: $base-text-color;
|
2019-02-18 20:14:55 +08:00
|
|
|
$dialog-backdrop-color: #000;
|
|
|
|
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
|
|
|
|
$dialog-close-fg-color: #9fa9ba;
|
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$dialog-background-bg-color: $header-panel-bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
$lightbox-background-bg-color: #000;
|
|
|
|
|
|
|
|
$settings-grey-fg-color: #a2a2a2;
|
2019-02-12 23:40:06 +08:00
|
|
|
$settings-profile-placeholder-bg-color: #e7e7e7;
|
|
|
|
$settings-profile-overlay-bg-color: #000;
|
|
|
|
$settings-profile-overlay-placeholder-bg-color: transparent;
|
|
|
|
$settings-profile-overlay-fg-color: #fff;
|
|
|
|
$settings-profile-overlay-placeholder-fg-color: #454545;
|
|
|
|
$settings-subsection-fg-color: $text-secondary-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$topleftmenu-color: $text-primary-color;
|
|
|
|
$roomheader-color: $text-primary-color;
|
2019-02-16 02:16:10 +08:00
|
|
|
$roomheader-addroom-bg-color: #3c4556; // $search-placeholder-color at 0.5 opacity
|
|
|
|
$roomheader-addroom-fg-color: $text-primary-color;
|
2019-02-13 00:05:31 +08:00
|
|
|
$tagpanel-button-color: $header-panel-text-primary-color;
|
2019-02-13 00:42:11 +08:00
|
|
|
$roomheader-button-color: $header-panel-text-primary-color;
|
2019-02-13 01:48:27 +08:00
|
|
|
$groupheader-button-color: $header-panel-text-primary-color;
|
2019-02-13 01:31:47 +08:00
|
|
|
$rightpanel-button-color: $header-panel-text-primary-color;
|
2019-02-13 02:05:19 +08:00
|
|
|
$composer-button-color: $header-panel-text-primary-color;
|
2019-02-12 23:40:06 +08:00
|
|
|
$roomtopic-color: $text-secondary-color;
|
|
|
|
$eventtile-meta-color: $roomtopic-color;
|
2018-12-07 05:39:59 +08:00
|
|
|
|
2019-02-13 21:57:59 +08:00
|
|
|
$header-divider-color: $header-panel-text-primary-color;
|
2019-02-13 18:52:03 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$roomtile-name-color: $header-panel-text-primary-color;
|
|
|
|
$roomtile-selected-color: $text-primary-color;
|
|
|
|
$roomtile-notified-color: $text-primary-color;
|
|
|
|
$roomtile-selected-bg-color: $room-highlight-color;
|
|
|
|
$roomtile-focused-bg-color: $room-highlight-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$roomtile-transparent-focused-color: rgba(0, 0, 0, 0.1);
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$panel-divider-color: $header-panel-border-color;
|
2018-10-23 21:48:44 +08:00
|
|
|
|
2019-02-16 01:20:02 +08:00
|
|
|
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2019-02-20 09:58:03 +08:00
|
|
|
// event tile lifecycle
|
|
|
|
$event-sending-color: $text-secondary-color;
|
|
|
|
|
2019-02-15 23:14:59 +08:00
|
|
|
// event redaction
|
|
|
|
$event-redacted-fg-color: #606060;
|
|
|
|
$event-redacted-border-color: #000000;
|
|
|
|
|
2019-07-03 00:31:11 +08:00
|
|
|
$event-highlight-fg-color: $warning-color;
|
2019-07-10 01:29:13 +08:00
|
|
|
$event-highlight-bg-color: #25271F;
|
2019-07-03 00:31:11 +08:00
|
|
|
|
2018-04-12 07:24:22 +08:00
|
|
|
// event timestamp
|
2019-02-12 23:40:06 +08:00
|
|
|
$event-timestamp-color: $text-secondary-color;
|
|
|
|
|
|
|
|
// Tabbed views
|
|
|
|
$tab-label-fg-color: $text-primary-color;
|
|
|
|
$tab-label-active-fg-color: $text-primary-color;
|
|
|
|
$tab-label-bg-color: transparent;
|
|
|
|
$tab-label-active-bg-color: $accent-color;
|
|
|
|
$tab-label-icon-bg-color: $text-primary-color;
|
|
|
|
$tab-label-active-icon-bg-color: $text-primary-color;
|
|
|
|
|
|
|
|
// Buttons
|
|
|
|
$button-primary-fg-color: #ffffff;
|
|
|
|
$button-primary-bg-color: $accent-color;
|
|
|
|
$button-secondary-bg-color: transparent;
|
|
|
|
$button-danger-fg-color: #ffffff;
|
2019-02-13 22:05:45 +08:00
|
|
|
$button-danger-bg-color: $notice-primary-color;
|
2019-02-12 23:40:06 +08:00
|
|
|
$button-danger-disabled-fg-color: #ffffff;
|
|
|
|
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
|
2019-07-05 06:45:40 +08:00
|
|
|
$button-link-fg-color: $accent-color;
|
|
|
|
$button-link-bg-color: transparent;
|
2019-02-12 23:40:06 +08:00
|
|
|
|
2019-08-29 00:00:57 +08:00
|
|
|
$visual-bell-bg-color: #800;
|
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
$room-warning-bg-color: $header-panel-bg-color;
|
|
|
|
|
2019-02-18 21:50:17 +08:00
|
|
|
$dark-panel-bg-color: $header-panel-bg-color;
|
2019-02-13 23:06:24 +08:00
|
|
|
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
|
|
|
|
2019-05-01 00:41:11 +08:00
|
|
|
$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;
|
2019-04-29 20:04:16 +08:00
|
|
|
|
2019-05-02 01:05:11 +08:00
|
|
|
$reaction-row-button-bg-color: $header-panel-bg-color;
|
|
|
|
$reaction-row-button-border-color: #616b7f;
|
|
|
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
2019-05-02 18:48:32 +08:00
|
|
|
$reaction-row-button-selected-bg-color: #1f6954;
|
|
|
|
$reaction-row-button-selected-border-color: $accent-color;
|
2019-05-17 19:09:47 +08:00
|
|
|
|
|
|
|
$tooltip-timeline-bg-color: $tagpanel-bg-color;
|
|
|
|
$tooltip-timeline-fg-color: #ffffff;
|
2019-05-02 01:05:11 +08:00
|
|
|
|
2019-06-21 18:41:19 +08:00
|
|
|
$interactive-tooltip-bg-color: $base-color;
|
|
|
|
$interactive-tooltip-fg-color: #ffffff;
|
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
// ***** Mixins! *****
|
2018-04-12 07:24:22 +08:00
|
|
|
|
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2019-02-12 23:40:06 +08:00
|
|
|
border-radius: 4px;
|
2018-04-12 07:24:22 +08:00
|
|
|
font-family: $font-family;
|
|
|
|
font-size: 14px;
|
2019-02-12 23:40:06 +08:00
|
|
|
color: $button-fg-color;
|
|
|
|
background-color: $button-bg-color;
|
2018-04-12 07:24:22 +08:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
@define-mixin mx_DialogButton_danger {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2018-12-07 05:39:59 +08:00
|
|
|
@define-mixin mx_DialogButton_secondary {
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
|
|
|
border: 1px solid $accent-color ! important;
|
|
|
|
color: $accent-color;
|
2019-02-12 23:40:06 +08:00
|
|
|
background-color: $button-secondary-bg-color;
|
2018-12-07 05:39:59 +08:00
|
|
|
}
|
|
|
|
|
2019-02-13 18:06:18 +08:00
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gm-scrollbar .thumb {
|
|
|
|
filter: invert(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
// markdown overrides:
|
|
|
|
.mx_EventTile_content .markdown-body pre:hover {
|
|
|
|
border-color: #808080 !important; // inverted due to rules below
|
|
|
|
}
|
|
|
|
.mx_EventTile_content .markdown-body {
|
|
|
|
pre, code {
|
|
|
|
filter: invert(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
tr {
|
|
|
|
background-color: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(2n) {
|
|
|
|
background-color: #080808;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|