From 1a71589dce9781be8c9eca17a5d96f94b57d0679 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 25 Aug 2017 19:29:31 +0500 Subject: PLT-7224 - Updating post textbox UI (#7153) * PLT-7224 - Updating post textbox UI * Updating post textbox spacing * Updating emoji icon --- webapp/utils/constants.jsx | 3 ++- webapp/utils/utils.jsx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'webapp/utils') diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index a5e24c69c..ea6d1dba3 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -470,12 +470,13 @@ export const Constants = { OPEN_TEAM: 'O', MAX_POST_LEN: 4000, EMOJI_SIZE: 16, + EMOJI_ICON_SVG: " ", UNREAD_ICON_SVG: "", MEMBERS_ICON_SVG: " ", TEAM_INFO_SVG: " ", FLAG_FILLED_ICON_SVG: " ", FLAG_ICON_SVG: " ", - ATTACHMENT_ICON_SVG: "", + ATTACHMENT_ICON_SVG: " ", MATTERMOST_ICON_SVG: " ", ONLINE_AVATAR_SVG: " ", AWAY_AVATAR_SVG: " ", diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index 2df4a753e..52574e735 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -650,9 +650,9 @@ export function applyTheme(theme) { changeCss('.app__body .post-image__details', 'color:' + theme.centerChannelColor); changeCss('.app__body .post-image__column a, .app__body .post-image__column a:hover, .app__body .post-image__column a:focus', 'color:' + theme.centerChannelColor); changeCss('@media(min-width: 768px){.app__body .search-bar__container .search__form .search-bar, .app__body .form-control', 'color:' + theme.centerChannelColor); - changeCss('.app__body .input-group-addon, .app__body .form-control', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2)); + changeCss('.app__body .input-group-addon, .app__body .form-control, .app__body .post-create__container .post-body__actions > span', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1)); changeCss('@media(min-width: 768px){.app__body .post-list__table .post-list__content .dropdown-menu a:hover', 'background:' + changeOpacity(theme.centerChannelColor, 0.1)); - changeCss('.app__body .form-control:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3)); + changeCss('.app__body .form-control:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2)); changeCss('.app__body .attachment .attachment__content', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3)); changeCss('.app__body .input-group-addon, .app__body .channel-intro .channel-intro__content, .app__body .webhooks__container', 'background:' + changeOpacity(theme.centerChannelColor, 0.05)); changeCss('.app__body .date-separator .separator__text', 'color:' + theme.centerChannelColor); @@ -679,7 +679,7 @@ export function applyTheme(theme) { changeCss('body.app__body ::-webkit-scrollbar-thumb', 'background:' + changeOpacity(theme.centerChannelColor, 0.4)); } changeCss('body', 'scrollbar-arrow-color:' + theme.centerChannelColor); - changeCss('.app__body .post-create__container .post-create-body .btn-file svg, .app__body .post.post--compact .post-image__column .post-image__details svg, .app__body .modal .about-modal .about-modal__logo svg, .app__body .post .post__img svg', 'fill:' + theme.centerChannelColor); + changeCss('.app__body .post-create__container .post-create-body .btn-file svg, .app__body .post.post--compact .post-image__column .post-image__details svg, .app__body .modal .about-modal .about-modal__logo svg, .app__body .post .post__img svg, .app__body .post-body__actions svg', 'fill:' + theme.centerChannelColor); changeCss('.app__body .scrollbar--horizontal, .app__body .scrollbar--vertical', 'background:' + changeOpacity(theme.centerChannelColor, 0.5)); changeCss('.app__body .post-list__new-messages-below', 'background:' + changeColor(theme.centerChannelColor, 0.5)); changeCss('.app__body .post.post--comment .post__body', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2)); -- cgit v1.2.3-1-g7c22