Skip to content

Commit

Permalink
💄 Update system
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Nov 4, 2018
1 parent 0255713 commit aaab3c0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/utils/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const BadgeStyles = {
vertical-align: baseline;
${borderRadius};
${fontWeight};
${space};
`;
},
};
Expand Down Expand Up @@ -342,18 +343,14 @@ export const ContainerStyles = {
${vertical};
${alignContent};
${alignItems};
${alignSelf};
${display};
${flex};
${flexBasis};
${flexDirection};
${flexWrap};
${height};
${justifyContent};
${maxWidth};
${minHeight};
${minWidth};
${order};
${space};
${textAlign}
${width};
Expand All @@ -374,7 +371,6 @@ export const EmbedStyles = {
${display};
${ratio};
${space};
${width};
& > iframe {
border: 0;
Expand Down Expand Up @@ -481,6 +477,8 @@ export const FormStyles = {
${bordered ? `border-radius: ${px(radii)};` : ''}
${bordered ? `padding: ${px(padding)};` : ''}
text-align:left;
${space};
${width};
`;
},
group(props) {
Expand All @@ -498,6 +496,7 @@ export const FormStyles = {
margin-bottom: ${px(marginBottom)};
${bordered ? `padding: ${px(padding)};` : ''};
text-align: left;
${space};
${width};
`;
},
Expand Down Expand Up @@ -538,6 +537,8 @@ export const FormStyles = {
${['checkbox', 'radio'].includes(type) ? `margin: 0 ${px(inlineMargin)} 0 0` : ''};
padding: ${inputTextOptions.includes(type) ? px(padding[size]) : 0};
${!['checkbox', 'radio', 'color'].includes(type) ? 'width: 100%;' : ''};
${space};
${width};
&[type=file] {
font-size: ${px(inputFontSize[size] - 1)};
Expand Down Expand Up @@ -666,6 +667,8 @@ export const FormStyles = {
margin: 0;
padding: ${px(padding[size])};
width: 100%;
${space};
${width};
`;
},
// helpers
Expand Down Expand Up @@ -743,6 +746,7 @@ export const HeadingStyles = {
${space};
${textAlign};
${textTransform};
${width};
&:first-child {
margin-top: 0;
Expand All @@ -759,6 +763,7 @@ export const GroupStyles = {
flex-wrap: wrap;
${flexWrap}
${space};
${width};
> *:not(:first-child) {
margin-left: ${spacer(2)};
Expand All @@ -781,7 +786,6 @@ export const ImageStyles = {
${minHeight};
${minWidth};
${space};
${width};
`;
},
};
Expand Down Expand Up @@ -826,9 +830,9 @@ export const ListStyles = {
${fontWeight};
margin: 0;
${as === 'ul' && styleType === 'none' ? 'padding: 0;' : ''};
${as === 'ul' ? `list-style-type: ${styleType};` : ''};
${space};
${textAlign};
${as === 'ul' ? `list-style-type: ${styleType};` : ''};
`;
},
item(props) {
Expand Down Expand Up @@ -938,6 +942,7 @@ export const TableStyles = {
border-collapse: collapse;
color: ${colors[inverted ? 'primary' : 'secondary']};
width: 100%;
${space};
`;
},
caption(props) {
Expand Down

0 comments on commit aaab3c0

Please sign in to comment.