Skip to content

Commit

Permalink
💄 Update system
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Oct 27, 2018
1 parent 37f206d commit f70ce4d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/utils/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import {
ratio,
right,
space,
style,
textAlign,
textTransform,
top,
width,
zIndex,
Expand All @@ -42,6 +42,12 @@ import { calcUnits, getColor, getTheme, getYiq, px, themeGet } from './helpers';
import { placeholder } from './mixins';
import { inputTextOptions } from './options';

const textTransform = style({
prop: 'textTransform',
cssProperty: 'textTransform',
transformValue: px,
});

const base = {
color: props => {
const { disabled, outline } = props;
Expand Down Expand Up @@ -138,23 +144,17 @@ export const BoxStyles = {
base() {
return css`
width: 100%;
${alignContent};
${alignItems};
${alignSelf};
${backgroundImage};
${borders};
${bottom};
${color};
${display};
${flex};
${flexBasis};
${flexDirection};
${flexWrap};
${fontFamily};
${fontSize};
${fontWeight};
${height};
${justifyContent};
${left};
${maxHeight};
${maxWidth};
Expand Down Expand Up @@ -650,14 +650,18 @@ export const HeadingStyles = {
font-family: inherit;
font-weight: ${headingWeight};
line-height: ${base.lineHeight};
margin: 0 0 ${gutterBottom ? px(gutter[2]) : 0};
margin: ${px(gutter[2])} 0 ${gutterBottom ? px(gutter[2]) : 0};
${borders};
${fontSize};
${fontWeight};
${lineHeight};
${space};
${textAlign};
${textTransform};
&:first-child {
margin-top: 0;
}
`;
},
};
Expand Down

0 comments on commit f70ce4d

Please sign in to comment.