Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
[MM-29842] Migrate changeCSS() to CSS variable in utils/utils.jsx (#6915
Browse files Browse the repository at this point in the history
)
  • Loading branch information
1jz authored and deanwhillier committed Jan 26, 2021
1 parent da198c0 commit 72bd3c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion sass/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@

&.disabled {
i {
color: inherit;
color: rgba(var(--center-channel-color), 0.4);
}
}

Expand Down
1 change: 0 additions & 1 deletion utils/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,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));
Expand Down

0 comments on commit 72bd3c6

Please sign in to comment.