-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(resolution): Expand media query support
- Lower the min width to account for iPhone 5 resolution - Add support for OR logic within displayAliases - This is to support applying a media query when either the screen or the device with are within certain values BREAKING CHANGE layout defaults change
- Loading branch information
Oscar Bartra
committed
Feb 18, 2018
1 parent
3f8386c
commit f19590e
Showing
18 changed files
with
538 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// @flow | ||
import cxs from 'cxs/monolithic' | ||
|
||
cxs.prefix('xnr_') | ||
cxs.prefix('gym_') | ||
|
||
export default cxs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// @flow | ||
import * as React from 'react' | ||
import { ConfigProvider, Grid } from 'gymnast' | ||
import { colors } from '../../shared' | ||
|
||
export default () => { | ||
const displayAliases = { | ||
test: { | ||
minWidth: '351px', | ||
maxWidth: '600px', | ||
}, | ||
test2: [ | ||
{ | ||
maxWidth: '350px', | ||
}, | ||
{ | ||
minWidth: '601px', | ||
}, | ||
], | ||
} | ||
|
||
return ( | ||
<ConfigProvider displayAliases={displayAliases}> | ||
<Grid justify="center"> | ||
<Grid show="test" style={colors.colors1} margin="L" size={6}> | ||
<Grid justify="center" style={colors.colors2} padding="L"> | ||
I am only visible between 150-600px | ||
</Grid> | ||
</Grid> | ||
<Grid show="test2" style={colors.colors2} margin="L" size={6}> | ||
<Grid justify="center" style={colors.colors1} padding="L"> | ||
I am visible all other times! | ||
</Grid> | ||
</Grid> | ||
</Grid> | ||
</ConfigProvider> | ||
) | ||
} |
Oops, something went wrong.