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

Commit

Permalink
feat(lsg): remove margin from pattern list items
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpeschel committed Dec 20, 2017
1 parent 84de0d1 commit c7a6b75
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lsg/patterns/pattern-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const StyledPatternList = styled.div`
display: flex;
flex-wrap: wrap;
flex-basis: 100%;
justify-content: space-between;
margin: 0;
`;

Expand All @@ -34,7 +35,7 @@ const StyledPatternListItem = styled.div`
box-sizing: border-box;
width: calc(50% - ${getSpace(Size.XS) / 2}px);
padding: ${getSpace(Size.S)}px;
margin: 0 ${getSpace(Size.XS)}px ${getSpace(Size.XS)}px 0;
margin-bottom: ${getSpace(Size.XS)}px;
border-radius: 3px;
background: ${colors.white.toString()};
font-size: 12px;
Expand All @@ -48,10 +49,6 @@ const StyledPatternListItem = styled.div`
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}
:nth-child(2n) {
margin-right: 0;
}
${(props: PatternListItemProps) =>
props.draggable ? 'cursor: move;' : props.onClick ? 'cursor: pointer;' : ''};
`;
Expand Down

0 comments on commit c7a6b75

Please sign in to comment.