Browse Source

Update Breadcrumb style

master
meriadec 7 years ago
parent
commit
692b03165b
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 27
      src/components/Breadcrumb/Step.js
  2. 1
      src/components/Breadcrumb/index.js

27
src/components/Breadcrumb/Step.js

@ -5,12 +5,14 @@ import styled from 'styled-components'
import Box from 'components/base/Box' import Box from 'components/base/Box'
const RADIUS = 17
const Wrapper = styled(Box).attrs({ const Wrapper = styled(Box).attrs({
align: 'center', align: 'center',
justify: 'center', justify: 'center',
color: p => (p.isActive ? 'wallet' : 'fog'), color: p => (p.isActive ? 'wallet' : 'fog'),
})` })`
width: 40px; width: ${RADIUS}px;
flex-shrink: 0; flex-shrink: 0;
text-align: center; text-align: center;
font-size: 9px; font-size: 9px;
@ -19,22 +21,26 @@ const Wrapper = styled(Box).attrs({
const Number = styled(Box).attrs({ const Number = styled(Box).attrs({
align: 'center', align: 'center',
justify: 'center', justify: 'center',
color: p => (p.isActive ? 'white' : 'fog'), color: 'white',
bg: p => (p.isActive ? 'wallet' : 'pearl'), bg: p => (p.isActive ? 'wallet' : 'fog'),
ff: 'Rubik|Regular',
})` })`
width: 20px; width: ${RADIUS}px;
height: 20px; height: ${RADIUS}px;
border-radius: 50%; border-radius: 50%;
font-size: 9px; font-size: 10px;
line-height: 10px;
box-shadow: ${p => `0 0 0 ${p.isActive ? 4 : 0}px ${p.theme.colors.lightGrey}`}; box-shadow: ${p => `0 0 0 ${p.isActive ? 4 : 0}px ${p.theme.colors.lightGrey}`};
transition: all ease-in-out 0.1s ${p => (p.isActive ? 0.4 : 0)}s; transition: all ease-in-out 0.1s ${p => (p.isActive ? 0.4 : 0)}s;
` `
const Bar = styled.div` const Bar = styled.div`
height: 2px; height: 2px;
background: ${p => p.theme.colors.pearl}; background: ${p => p.theme.colors.fog};
flex-grow: 1; flex-grow: 1;
max-width: 100px;
position: relative; position: relative;
margin-top: -2px;
&:after { &:after {
background: ${p => p.theme.colors.pearl}; background: ${p => p.theme.colors.pearl};
@ -52,9 +58,12 @@ const Bar = styled.div`
} }
` `
const Label = styled(Box)` const Label = styled(Box).attrs({
fontSize: 3,
ff: 'Museo Sans|Bold',
})`
position: absolute; position: absolute;
margin-top: 30px; margin-top: 27px;
transition: color ease-in-out 0.1s ${p => (p.isActive ? 0.4 : 0)}s; transition: color ease-in-out 0.1s ${p => (p.isActive ? 0.4 : 0)}s;
` `

1
src/components/Breadcrumb/index.js

@ -16,6 +16,7 @@ type Props = {
const Wrapper = styled(Box).attrs({ const Wrapper = styled(Box).attrs({
horizontal: true, horizontal: true,
align: 'center', align: 'center',
justify: 'center',
})` })`
margin-bottom: 25px; margin-bottom: 25px;
` `

Loading…
Cancel
Save