Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(lsg): replace spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpeschel authored and lkuechler committed Dec 7, 2017
1 parent f2accd7 commit adcc3df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { colors } from '../colors';
import { Icon, IconName, Size as IconSize } from '../icons';
import * as React from 'react';
import { getSpace, Size } from '../space';
import styled from 'styled-components';

export interface ElementProps {
Expand All @@ -19,9 +20,8 @@ const StyledElement = styled.div`
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 0 15px;
padding: 0 ${getSpace(Size.M)}px;
line-height: 30px;
margin-top: 0;
border-radius: 3px;
${(props: ElementProps) =>
props.active
Expand All @@ -37,7 +37,7 @@ const StyledElement = styled.div`

const StyledElementChild = styled.div`
flex-basis: 100%;
padding-left: 15px;
padding-left: ${getSpace(Size.M)}px;
${(props: StyledElementChildProps) => (props.open ? 'display: block;' : 'display: none;')};
`;

Expand Down
7 changes: 4 additions & 3 deletions src/lsg/patterns/pattern-list-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { colors } from '../colors';
import { fonts } from '../fonts';
import { Icon, IconName, Size as IconSize } from '../icons';
import * as React from 'react';
import { getSpace, Size } from '../space';
import styled from 'styled-components';

export interface PatternListItemProps {
Expand All @@ -12,7 +13,7 @@ export interface PatternListItemProps {
const StyledPatternListItem = styled.div`
display: flex;
align-items: center;
padding: 10px;
padding: ${getSpace(Size.S)}px;
border: 1px solid ${colors.grey90.toString()};
border-radius: 3px;
background: ${colors.white.toString()};
Expand All @@ -22,12 +23,12 @@ const StyledPatternListItem = styled.div`
`;

const StyledSVG = styled.svg`
margin-right: 20px;
margin-right: ${getSpace(Size.L)}px;
fill: ${colors.grey70.toString()};
`;

const StyledIcon = styled(Icon)`
margin-right: 20px;
margin-right: ${getSpace(Size.L)}px;
`;

const PatternListItem: React.StatelessComponent<PatternListItemProps> = props => (
Expand Down

0 comments on commit adcc3df

Please sign in to comment.