diff options
author | Megan Pearson <megan.e.pearson@gmail.com> | 2018-10-19 21:36:38 +0800 |
---|---|---|
committer | Megan Pearson <megan.e.pearson@gmail.com> | 2018-10-19 21:36:38 +0800 |
commit | 736e1717fa4e59594e76694f7f6cc9dd0b45f1a9 (patch) | |
tree | ac9a1879b9bbdda2bbaa6ea54094888b7e7b9b07 /packages/dev-tools-pages/ts/components/Trace.tsx | |
parent | 45a24738b585d568c765b641a94e9bbf941a8fd7 (diff) | |
parent | d6ac1a4f782c55407760d4502325b6aa2cf3730c (diff) | |
download | dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.tar dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.tar.gz dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.tar.bz2 dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.tar.lz dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.tar.xz dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.tar.zst dexon-sol-tools-736e1717fa4e59594e76694f7f6cc9dd0b45f1a9.zip |
Merge branch 'feature/responsive' into feature/variables
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Trace.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Trace.tsx | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/packages/dev-tools-pages/ts/components/Trace.tsx b/packages/dev-tools-pages/ts/components/Trace.tsx index f4b4e76a3..545e87d53 100644 --- a/packages/dev-tools-pages/ts/components/Trace.tsx +++ b/packages/dev-tools-pages/ts/components/Trace.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import styled from 'styled-components'; -import { colors } from '../variables'; +import { colors, media } from '../variables'; import { withContext, Props } from './withContext'; import { Alpha, Beta, Gamma } from './Typography'; @@ -101,6 +101,8 @@ const StyledSection = background: linear-gradient(to right, ${colors.black} 50%, ${props => props.background} 50%); padding-top: 6.25rem; padding-bottom: 5.25rem; + + ${media.small`background: none`}; `; const Wrapper = styled(Container)` @@ -108,7 +110,14 @@ const Wrapper = styled(Container)` ${Alpha} { padding-bottom: 2.5rem; + + ${media.small`padding-bottom: 1.875rem;`}; } + + ${media.small` + display: block; + width: 100%; + `}; `; const Block = @@ -125,27 +134,55 @@ const Block = :last-of-type { padding-left: 6.25rem; } + + ${media.small` + width: 100%; + padding-top: 2.5rem; + padding-bottom: 3.4375rem; + + :first-of-type { + padding-left: 1.875rem; + padding-right: 1.875rem; + } + :last-of-type { + padding-left: 1.875rem; + padding-right: 1.875rem; + } + `}; `; const MainCopy = styled(Beta)` margin-bottom: 3.1875rem; + ${media.small` + margin-bottom: 1.125rem; + font-size: 1rem; + `}; `; const List = styled.ul` margin-top: 6.25rem; margin-bottom: 0; padding: 0; + + ${media.small`margin-top: 3.4375rem;`}; `; const Item = styled.li` display: flex; align-items: center; - margin-bottom: 4.4375rem; + + :not(:last-child) { + margin-bottom: 4.4375rem; + + ${media.small`margin-bottom: 3.4375rem;`}; + } `; const Copy = styled.div` max-width: 20rem; margin-right: 5.875rem; + + ${media.small`margin-right: 2.0625rem;`}; `; export default withContext(Trace); |