-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Box): Support responsive padding, margin and display (#100)
- Loading branch information
1 parent
04297c3
commit 7cd69a6
Showing
87 changed files
with
941 additions
and
30 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
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,7 @@ | ||
export default { | ||
'.block': { display: 'block' }, | ||
'.inline': { display: 'inline' }, | ||
'.none': { display: 'none' }, | ||
'.inlineBlock': { display: 'inline-block' }, | ||
'.flex': { display: 'flex' } | ||
}; |
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,7 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const block: string; | ||
export const flex: string; | ||
export const inline: string; | ||
export const inlineBlock: string; | ||
export const none: string; |
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,13 @@ | ||
import createDesktopRules from '../../utils/createDesktopRules'; | ||
import tokens from '../tokens/tokens'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: { | ||
'.block': { display: 'block' }, | ||
'.inline': { display: 'inline' }, | ||
'.none': { display: 'none' }, | ||
'.inlineBlock': { display: 'inline-block' }, | ||
'.flex': { display: 'flex' } | ||
} | ||
}); |
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,7 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const block: string; | ||
export const flex: string; | ||
export const inline: string; | ||
export const inlineBlock: string; | ||
export const none: string; |
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import rowSpacingForCssRule from '../../../utils/rowSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: rowSpacingForCssRule('marginBottom', tokens) | ||
}); |
10 changes: 10 additions & 0 deletions
10
lib/themes/jobStreet/atoms/margin/marginBottomDesktop.css.js.d.ts
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,10 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import columnSpacingForCssRule from '../../../utils/columnSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: columnSpacingForCssRule('marginLeft', tokens) | ||
}); |
11 changes: 11 additions & 0 deletions
11
lib/themes/jobStreet/atoms/margin/marginLeftDesktop.css.js.d.ts
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,11 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const gutter: string; | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import columnSpacingForCssRule from '../../../utils/columnSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: columnSpacingForCssRule('marginRight', tokens) | ||
}); |
11 changes: 11 additions & 0 deletions
11
lib/themes/jobStreet/atoms/margin/marginRightDesktop.css.js.d.ts
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,11 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const gutter: string; | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import rowSpacingForCssRule from '../../../utils/rowSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: rowSpacingForCssRule('marginTop', tokens) | ||
}); |
10 changes: 10 additions & 0 deletions
10
lib/themes/jobStreet/atoms/margin/marginTopDesktop.css.js.d.ts
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,10 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
8 changes: 8 additions & 0 deletions
8
lib/themes/jobStreet/atoms/padding/paddingBottomDesktop.css.js
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import rowSpacingForCssRule from '../../../utils/rowSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: rowSpacingForCssRule('paddingBottom', tokens) | ||
}); |
10 changes: 10 additions & 0 deletions
10
lib/themes/jobStreet/atoms/padding/paddingBottomDesktop.css.js.d.ts
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,10 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import columnSpacingForCssRule from '../../../utils/columnSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: columnSpacingForCssRule('paddingLeft', tokens) | ||
}); |
11 changes: 11 additions & 0 deletions
11
lib/themes/jobStreet/atoms/padding/paddingLeftDesktop.css.js.d.ts
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,11 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const gutter: string; | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
8 changes: 8 additions & 0 deletions
8
lib/themes/jobStreet/atoms/padding/paddingRightDesktop.css.js
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import columnSpacingForCssRule from '../../../utils/columnSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: columnSpacingForCssRule('paddingRight', tokens) | ||
}); |
11 changes: 11 additions & 0 deletions
11
lib/themes/jobStreet/atoms/padding/paddingRightDesktop.css.js.d.ts
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,11 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const gutter: string; | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
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,8 @@ | ||
import tokens from '../../tokens/tokens'; | ||
import rowSpacingForCssRule from '../../../utils/rowSpacingForCssRule'; | ||
import createDesktopRules from '../../../utils/createDesktopRules'; | ||
|
||
export default createDesktopRules({ | ||
tokens, | ||
css: rowSpacingForCssRule('paddingTop', tokens) | ||
}); |
10 changes: 10 additions & 0 deletions
10
lib/themes/jobStreet/atoms/padding/paddingTopDesktop.css.js.d.ts
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,10 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const large: string; | ||
export const medium: string; | ||
export const none: string; | ||
export const small: string; | ||
export const xlarge: string; | ||
export const xsmall: string; | ||
export const xxlarge: string; | ||
export const xxsmall: string; |
Oops, something went wrong.