From c424df5192f346dba5332a4b3a2de43b2f028e0c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 9 Feb 2017 01:20:09 +0100 Subject: Progress on moving color styles to Sass --- .../features/account/components/action_bar.jsx | 29 +++++--------- .../features/account/components/header.jsx | 13 ++++--- .../features/compose/components/compose_form.jsx | 16 ++++---- .../features/compose/components/drawer.jsx | 45 +++------------------- .../features/compose/components/navigation_bar.jsx | 6 +-- .../compose/components/reply_indicator.jsx | 7 ++-- .../features/compose/components/search.jsx | 22 ++--------- .../components/features/getting_started/index.jsx | 2 +- .../features/status/components/action_bar.jsx | 5 ++- .../components/features/ui/components/column.jsx | 9 +---- .../features/ui/components/column_header.jsx | 2 +- .../components/features/ui/components/tabs_bar.jsx | 33 +++------------- .../javascripts/components/features/ui/index.jsx | 2 +- 13 files changed, 54 insertions(+), 137 deletions(-) (limited to 'app/assets/javascripts/components/features') diff --git a/app/assets/javascripts/components/features/account/components/action_bar.jsx b/app/assets/javascripts/components/features/account/components/action_bar.jsx index ab7b08dc7..fe110954d 100644 --- a/app/assets/javascripts/components/features/account/components/action_bar.jsx +++ b/app/assets/javascripts/components/features/account/components/action_bar.jsx @@ -14,15 +14,6 @@ const messages = defineMessages({ block: { id: 'account.block', defaultMessage: 'Block' } }); -const outerStyle = { - borderTop: '1px solid #363c4b', - borderBottom: '1px solid #363c4b', - lineHeight: '36px', - overflow: 'hidden', - flex: '0 0 auto', - display: 'flex' -}; - const outerDropdownStyle = { padding: '10px', flex: '1 1 auto' @@ -64,25 +55,25 @@ const ActionBar = React.createClass({ } return ( -
+
- - - + + + - - - + + + - - - + + +
diff --git a/app/assets/javascripts/components/features/account/components/header.jsx b/app/assets/javascripts/components/features/account/components/header.jsx index 30e0449c5..b2d943c1c 100644 --- a/app/assets/javascripts/components/features/account/components/header.jsx +++ b/app/assets/javascripts/components/features/account/components/header.jsx @@ -16,7 +16,8 @@ const Header = React.createClass({ propTypes: { account: ImmutablePropTypes.map.isRequired, me: React.PropTypes.number.isRequired, - onFollow: React.PropTypes.func.isRequired + onFollow: React.PropTypes.func.isRequired, + intl: React.PropTypes.object.isRequired }, mixins: [PureRenderMixin], @@ -61,18 +62,18 @@ const Header = React.createClass({ const displayNameHTML = { __html: emojify(escapeTextContentForBrowser(displayName)) }; return ( -
-
+
+
- +
- @{account.get('acct')} {lockedIcon} -
+ @{account.get('acct')} {lockedIcon} +
{info} {actionBtn} diff --git a/app/assets/javascripts/components/features/compose/components/compose_form.jsx b/app/assets/javascripts/components/features/compose/components/compose_form.jsx index 48939054d..46b62964a 100644 --- a/app/assets/javascripts/components/features/compose/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/compose_form.jsx @@ -166,30 +166,30 @@ const ComposeForm = React.createClass({
-