refactor: with styled-components

This commit is contained in:
Daniel Soares
2021-12-18 00:50:54 -03:00
parent 5138b4dfc2
commit 47d03b6d73
42 changed files with 845 additions and 934 deletions

View File

@@ -1,30 +1,28 @@
import { styled, theme } from '../../styles/stitches.config'
import styled from 'styled-components'
export const Wrapper = styled('main', {
display: 'grid',
gridTemplateColumns: '1fr 1fr',
position: 'fixed',
inset: 0
})
export const Wrapper = styled.main`
display: grid;
grid-template-columns: 1fr 1fr;
position: fixed;
inset: 0;
`
export const Content = styled('div', {
display: 'flex',
flexDirection: 'column',
gap: '1rem',
padding: '5rem 1rem 1rem',
fontFamily: theme.fonts.roboto,
color: theme.colors.slate900,
background: theme.colors.slate50,
overflowY: 'scroll'
})
export const Content = styled.div`
display: flex;
flex-direction: column;
gap: 1rem;
padding: 5rem 1rem 1rem;
font-family: 'Roboto', sans-serif;
overflow-y: scroll;
`
export const Preview = styled('div', {
position: 'relative',
overflowY: 'scroll',
export const Preview = styled.div`
position: relative;
overflow-y: scroll;
'&::after': {
content: '',
position: 'absolute',
inset: 0
&::after {
content: '';
position: absolute;
inset: 0;
}
})
`