From 317ff817445c20a64b5978dae1210a515c248f4f Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 15 May 2018 16:18:49 -0700 Subject: Set up scaffolding for new drawer --- packages/website/ts/utils/utils.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/website/ts/utils') diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index 3c99bd2fe..c370ac90c 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -314,4 +314,7 @@ export const utils = { return _.includes(window.location.href, configs.DOMAIN_STAGING); }, isDogfood, + shouldShowPortalV2(): boolean { + return this.isDevelopment() || this.isStaging() || this.isDogfood(); + }, }; -- cgit v1.2.3 From 9ce7be050a04cde0ab5f6e894c70f6f63b0c1fd4 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Thu, 17 May 2018 13:35:20 -0700 Subject: Refactor portal specific colors out of react-shared --- packages/website/ts/utils/colors.ts | 17 +++++++++++++++++ packages/website/ts/utils/wallet_item_styles.ts | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 packages/website/ts/utils/colors.ts (limited to 'packages/website/ts/utils') diff --git a/packages/website/ts/utils/colors.ts b/packages/website/ts/utils/colors.ts new file mode 100644 index 000000000..34db3f77e --- /dev/null +++ b/packages/website/ts/utils/colors.ts @@ -0,0 +1,17 @@ +import { colors as sharedColors } from '@0xproject/react-shared'; + +const appColors = { + walletBoxShadow: 'rgba(56, 59, 137, 0.2)', + walletBorder: '#ededee', + walletDefaultItemBackground: '#fbfbfc', + walletFocusedItemBackground: '#f0f1f4', + allowanceToggleShadow: 'rgba(0, 0, 0, 0)', + allowanceToggleOffTrack: '#adadad', + allowanceToggleOnTrack: sharedColors.mediumBlue, + wrapEtherConfirmationButton: sharedColors.mediumBlue, +}; + +export const colors = { + ...sharedColors, + ...appColors, +}; diff --git a/packages/website/ts/utils/wallet_item_styles.ts b/packages/website/ts/utils/wallet_item_styles.ts index 1ad304ce1..6b038efd2 100644 --- a/packages/website/ts/utils/wallet_item_styles.ts +++ b/packages/website/ts/utils/wallet_item_styles.ts @@ -1,4 +1,6 @@ -import { colors, Styles } from '@0xproject/react-shared'; +import { Styles } from '@0xproject/react-shared'; + +import { colors } from 'ts/utils/colors'; export const styles: Styles = { focusedItem: { -- cgit v1.2.3 From b9ca055586ee1bdc89684b173186c92bd2f97e9f Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Thu, 17 May 2018 17:27:31 -0700 Subject: Fix styling of portal menu --- packages/website/ts/utils/colors.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/website/ts/utils') diff --git a/packages/website/ts/utils/colors.ts b/packages/website/ts/utils/colors.ts index 34db3f77e..5ffdd6ba7 100644 --- a/packages/website/ts/utils/colors.ts +++ b/packages/website/ts/utils/colors.ts @@ -9,6 +9,8 @@ const appColors = { allowanceToggleOffTrack: '#adadad', allowanceToggleOnTrack: sharedColors.mediumBlue, wrapEtherConfirmationButton: sharedColors.mediumBlue, + drawerMenuBackground: '#4a4a4a', + menuItemDefaultSelectedBackground: '#424242', }; export const colors = { -- cgit v1.2.3