From 8eecc2306ef689442bd8d87394b860166726ae4a Mon Sep 17 00:00:00 2001 From: Oliver Jurgen Date: Thu, 29 Oct 2020 21:39:39 +0800 Subject: [PATCH] migrate send-button.disabled i to css variables --- sass/components/_post.scss | 2 +- utils/utils.jsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sass/components/_post.scss b/sass/components/_post.scss index be0e37f474d3..7d28ac3de2de 100644 --- a/sass/components/_post.scss +++ b/sass/components/_post.scss @@ -464,7 +464,7 @@ &.disabled { i { - color: inherit; + color: rgba(var(--center-channel-color-rgb),0.4); } } diff --git a/utils/utils.jsx b/utils/utils.jsx index 161851e9d833..07763c943bde 100644 --- a/utils/utils.jsx +++ b/utils/utils.jsx @@ -685,7 +685,6 @@ export function applyTheme(theme) { changeCss('.app__body .shadow--2', '-webkit-box-shadow: 0 20px 30px 0 ' + changeOpacity(theme.centerChannelColor, 0.1) + ', 0 14px 20px 0 ' + changeOpacity(theme.centerChannelColor, 0.1)); changeCss('.app__body .shortcut-key, .app__body .post__body hr, .app__body .loading-screen .loading__content .round, .app__body .tutorial__circles .circle', 'background:' + theme.centerChannelColor); changeCss('.app__body .markdown__table tbody tr:nth-child(2n)', 'background:' + changeOpacity(theme.centerChannelColor, 0.07)); - changeCss('.app__body .post-create__container .post-create-body .send-button.disabled i', 'color:' + changeOpacity(theme.centerChannelColor, 0.4)); changeCss('.app__body .channel-header .pinned-posts-button svg', 'fill:' + changeOpacity(theme.centerChannelColor, 0.6)); changeCss('.app__body .channel-header .channel-header_plugin-dropdown svg', 'fill:' + changeOpacity(theme.centerChannelColor, 0.6)); changeCss('.app__body .file-preview, .app__body .post-image__details, .app__body .markdown__table th, .app__body .markdown__table td, .app__body .modal .settings-modal .settings-table .settings-content .divider-light, .app__body .webhooks__container, .app__body .dropdown-menu, .app__body .modal .modal-header', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2));