Disallow invalid inline style comments in stylesheets (#9099)
This commit is contained in:
parent
8eeeee1aa2
commit
72c24af5c0
193 changed files with 1520 additions and 1518 deletions
|
@ -1,5 +1,5 @@
|
|||
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741
|
||||
// ********************
|
||||
/* Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 */
|
||||
/* ******************** */
|
||||
$primary-content: #ffffff;
|
||||
$secondary-content: #A9B2BC;
|
||||
$tertiary-content: #8E99A4;
|
||||
|
@ -7,38 +7,38 @@ $quaternary-content: #6F7882;
|
|||
$quinary-content: #394049;
|
||||
|
||||
$system: #21262C;
|
||||
$system-transparent: rgba($system, 0.0); // XXX: workaround for Safari 15.3 linear-gradient bug
|
||||
$system-transparent: rgba($system, 0.0); /* XXX: workaround for Safari 15.3 linear-gradient bug */
|
||||
$background: #15191E;
|
||||
$overlay-background: rgba($background, 0.85);
|
||||
|
||||
$panel-base: #8D97A5; // This color is not intended for use in the app
|
||||
$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
|
||||
// ********************
|
||||
/* Reused Figma non-compound colors */
|
||||
/* ******************** */
|
||||
$inverted-bg-color: $background;
|
||||
$header-panel-bg-color: #20252B;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Theme specific colors
|
||||
// ********************
|
||||
/* Theme specific colors */
|
||||
/* ******************** */
|
||||
$icon-button-color: $tertiary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Colors that aren't in Figma and are theme specific - we need to get rid of these
|
||||
// ********************
|
||||
/* Colors that aren't in Figma and are theme specific - we need to get rid of these */
|
||||
/* ******************** */
|
||||
$header-panel-text-secondary-color: #c8c8cd;
|
||||
$room-highlight-color: #343a46;
|
||||
$text-secondary-color: #B9BEC6;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Colors that aren't in Figma - we need to get rid of these
|
||||
// ********************
|
||||
/* 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;
|
||||
|
@ -52,134 +52,134 @@ $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 */
|
||||
/* ******************** */
|
||||
$tooltip-timeline-bg-color: $spacePanel-bg-color;
|
||||
$tooltip-timeline-fg-color: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Widget
|
||||
// ********************
|
||||
/* Widget */
|
||||
/* ******************** */
|
||||
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
||||
$widget-body-bg-color: $panel-actions;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Menu
|
||||
// ********************
|
||||
/* Menu */
|
||||
/* ******************** */
|
||||
$menu-border-color: #000000;
|
||||
$menu-bg-color: $header-panel-bg-color;
|
||||
$menu-box-shadow-color: $background;
|
||||
$menu-selected-color: $room-highlight-color;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Settings
|
||||
// ********************
|
||||
/* Settings */
|
||||
/* ******************** */
|
||||
$settings-profile-button-bg-color: #e7e7e7;
|
||||
$settings-subsection-fg-color: $text-secondary-color;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Room
|
||||
// ********************
|
||||
/* Room */
|
||||
/* ******************** */
|
||||
$room-icon-unread-color: #fff;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// RoomHeader
|
||||
// ********************
|
||||
/* RoomHeader */
|
||||
/* ******************** */
|
||||
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
|
||||
$roomheader-addroom-fg-color: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Rich-text-editor
|
||||
// ********************
|
||||
/* Rich-text-editor */
|
||||
/* ******************** */
|
||||
$pill-bg-color: $room-highlight-color;
|
||||
$pill-hover-bg-color: #545a66;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Inputs
|
||||
// ********************
|
||||
/* Inputs */
|
||||
/* ******************** */
|
||||
$input-border-color: rgba(231, 231, 231, 0.2);
|
||||
$input-darker-bg-color: #181b21;
|
||||
$input-darker-fg-color: #61708b;
|
||||
$input-lighter-bg-color: #f2f5f8;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Dialog
|
||||
// ********************
|
||||
/* Dialog */
|
||||
/* ******************** */
|
||||
$dialog-title-fg-color: $primary-content;
|
||||
$dialog-backdrop-color: $menu-border-color;
|
||||
$dialog-close-fg-color: #9fa9ba;
|
||||
$dialog-close-external-color: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// RoomList
|
||||
// ********************
|
||||
/* RoomList */
|
||||
/* ******************** */
|
||||
$roomlist-bg-color: rgba($system, 0.90);
|
||||
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
||||
$roomtile-default-badge-bg-color: $input-darker-fg-color;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Tabbed views
|
||||
// ********************
|
||||
/* Tabbed views */
|
||||
/* ******************** */
|
||||
$tab-label-fg-color: $primary-content;
|
||||
$tab-label-active-fg-color: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Buttons
|
||||
// ********************
|
||||
/* Buttons */
|
||||
/* ******************** */
|
||||
$button-primary-fg-color: $primary-content;
|
||||
$button-secondary-bg-color: transparent;
|
||||
$button-danger-fg-color: $primary-content;
|
||||
$button-danger-disabled-fg-color: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Toggle switch
|
||||
// ********************
|
||||
/* Toggle switch */
|
||||
/* ******************** */
|
||||
$togglesw-off-color: $room-highlight-color;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Authpage
|
||||
// ********************
|
||||
/* Authpage */
|
||||
/* ******************** */
|
||||
$authpage-primary-color: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Message action bar
|
||||
// ********************
|
||||
/* 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 */
|
||||
/* ******************** */
|
||||
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
||||
$reaction-row-button-selected-bg-color: #1f6954;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Voice messages
|
||||
// ********************
|
||||
/* Voice messages */
|
||||
/* ******************** */
|
||||
$voice-record-stop-border-color: $quaternary-content;
|
||||
$voice-record-icon-color: $quaternary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Bubble tiles
|
||||
// ********************
|
||||
/* Bubble tiles */
|
||||
/* ******************** */
|
||||
$eventbubble-self-bg: #133A34;
|
||||
$eventbubble-others-bg: #21262C;
|
||||
$eventbubble-bg-hover: #1C2026;
|
||||
$eventbubble-reply-color: #C1C6CD;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Lightbox
|
||||
// ********************
|
||||
/* Lightbox */
|
||||
/* ******************** */
|
||||
$lightbox-background-bg-color: $menu-border-color;
|
||||
$lightbox-background-bg-opacity: 0.85;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// VoIP
|
||||
// ********************
|
||||
/* VoIP */
|
||||
/* ******************** */
|
||||
$call-view-button-on-foreground: $primary-content;
|
||||
$call-view-button-on-background: $system;
|
||||
$call-view-button-off-foreground: $system;
|
||||
|
@ -191,23 +191,23 @@ $video-feed-secondary-background: $system;
|
|||
$video-lobby-system: $system;
|
||||
$video-lobby-background: $background;
|
||||
$video-lobby-primary-content: $primary-content;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Location sharing
|
||||
// ********************
|
||||
/* Location sharing */
|
||||
/* ******************** */
|
||||
$location-live-color: #5c56f5;
|
||||
$location-live-secondary-color: #deddfd;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Location sharing
|
||||
// ********************
|
||||
/* Location sharing */
|
||||
/* ******************** */
|
||||
.maplibregl-ctrl-attrib-button {
|
||||
color: $background;
|
||||
}
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// One-off colors
|
||||
// ********************
|
||||
/* One-off colors */
|
||||
/* ******************** */
|
||||
$progressbar-bg-color: $system;
|
||||
$kbd-border-color: $menu-border-color;
|
||||
$visual-bell-bg-color: #800;
|
||||
|
@ -221,17 +221,17 @@ $resend-button-divider-color: rgba($header-panel-text-primary-color, 0.74);
|
|||
$codeblock-background-color: #2a3039;
|
||||
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
||||
$selected-color: $room-highlight-color;
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// blur amounts for left left panel (only for element theme)
|
||||
// ********************
|
||||
/* blur amounts for left left panel (only for element theme) */
|
||||
/* ******************** */
|
||||
:root {
|
||||
--lp-background-blur: 45px;
|
||||
}
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Mixins
|
||||
// ********************
|
||||
/* Mixins */
|
||||
/* ******************** */
|
||||
@define-mixin mx_DialogButton {
|
||||
/* align images in buttons (eg spinners) */
|
||||
vertical-align: middle;
|
||||
|
@ -255,7 +255,7 @@ $selected-color: $room-highlight-color;
|
|||
}
|
||||
|
||||
@define-mixin mx_DialogButton_secondary {
|
||||
// flip colours for the secondary ones
|
||||
/* flip colours for the secondary ones */
|
||||
font-weight: 600;
|
||||
border: 1px solid $accent !important;
|
||||
color: $accent;
|
||||
|
@ -266,23 +266,23 @@ $selected-color: $room-highlight-color;
|
|||
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.
|
||||
// ********************
|
||||
/* 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
|
||||
// ********************
|
||||
/* markdown overrides */
|
||||
/* ******************** */
|
||||
.mx_EventTile_content .markdown-body {
|
||||
table {
|
||||
tr {
|
||||
|
@ -294,12 +294,12 @@ body {
|
|||
}
|
||||
}
|
||||
}
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// diff highlight colors
|
||||
// ********************
|
||||
/* diff highlight colors */
|
||||
/* ******************** */
|
||||
.hljs-tag {
|
||||
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
|
||||
color: inherit; /* Without this they'd be weirdly blue which doesn't match the theme */
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
|
@ -309,9 +309,9 @@ body {
|
|||
.hljs-deletion {
|
||||
background: #53232a;
|
||||
}
|
||||
// ********************
|
||||
/* ******************** */
|
||||
|
||||
// Splash Page Gradient
|
||||
/* Splash Page Gradient */
|
||||
.mx_SplashPage::before {
|
||||
background-image:
|
||||
radial-gradient(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue