aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/style
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-04 05:43:23 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-04 05:43:23 +0800
commit52c956222e8a737c05bae49a97e457df81933000 (patch)
tree8f9cec16388d872fbabf61c33d8717daefb88344 /packages/website/ts/style
parent9389d643924316a18ac8503211d39bb4ebf2156b (diff)
parent0900e0c85e76a34301ad5a336d2b195ed595aef7 (diff)
downloaddexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.tar
dexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.tar.gz
dexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.tar.bz2
dexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.tar.lz
dexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.tar.xz
dexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.tar.zst
dexon-sol-tools-52c956222e8a737c05bae49a97e457df81933000.zip
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/website/portal-mobile-improvements
Diffstat (limited to 'packages/website/ts/style')
-rw-r--r--packages/website/ts/style/media.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/website/ts/style/media.ts b/packages/website/ts/style/media.ts
new file mode 100644
index 000000000..3c992eb9f
--- /dev/null
+++ b/packages/website/ts/style/media.ts
@@ -0,0 +1,14 @@
+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),
+};