aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-03 09:14:21 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-03 09:14:21 +0800
commitf62044c1e3f35e0985724ebc1bac3a9b23dc2c2e (patch)
tree3b907d5f574fa3d41222eed5af22421be1e55ff2 /packages/website/ts
parenta5231df6d9d8c9b89431df2e4674f46d307f6d80 (diff)
downloaddexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.tar
dexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.tar.gz
dexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.tar.bz2
dexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.tar.lz
dexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.tar.xz
dexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.tar.zst
dexon-sol-tools-f62044c1e3f35e0985724ebc1bac3a9b23dc2c2e.zip
Add media file and remove stray comment
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/components/onboarding/portal_onboarding_flow.tsx2
-rw-r--r--packages/website/ts/style/media.ts15
2 files changed, 15 insertions, 2 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
index 6d8007659..c8786da13 100644
--- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
@@ -45,8 +45,6 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
private _unlisten: () => void;
public componentDidMount(): void {
this._adjustStepIfShould();
- // Wait until the step is adjusted to decide whether we should show onboarding.
- // setTimeout(this._autoStartOnboardingIfShould.bind(this), 1000);
// If there is a route change, just close onboarding.
this._unlisten = this.props.history.listen(() => this.props.updateIsRunning(false));
}
diff --git a/packages/website/ts/style/media.ts b/packages/website/ts/style/media.ts
new file mode 100644
index 000000000..2f8551f34
--- /dev/null
+++ b/packages/website/ts/style/media.ts
@@ -0,0 +1,15 @@
+import * as _ from 'lodash';
+import { css } from 'ts/style/theme';
+import { ScreenWidths } from 'ts/types';
+
+const generateMediaWrapper = (screenWidth: ScreenWidths) => (...args: any[]) => css`
+ @media (max-width: ${screenWidth}) {
+ ${css.apply(css, args)};
+ }
+`;
+
+export const media = {
+ small: generateMediaWrapper(ScreenWidths.Sm),
+ medium: generateMediaWrapper(ScreenWidths.Md),
+ large: generateMediaWrapper(ScreenWidths.Lg),
+};