mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-22 11:08:34 +00:00
refactor: with styled-components
This commit is contained in:
42 files changed
+845
-934
No files matched your search
@@ -1,38 +1,19 @@
|
||||
import { styled, theme } from '../../../styles/stitches.config'
|
||||
import styled from 'styled-components'
|
||||
|
||||
export const Wrapper = styled('div', {
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: '50%',
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
padding: '1rem',
|
||||
background: theme.colors.sky200,
|
||||
color: theme.colors.slate700,
|
||||
fontFamily: theme.fonts.roboto,
|
||||
fontSize: '0.875rem',
|
||||
lineHeight: 1,
|
||||
transition: 'all 0.25s ease-in-out',
|
||||
export const Wrapper = styled.div`
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 50%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1;
|
||||
`
|
||||
|
||||
variants: {
|
||||
show: {
|
||||
true: {
|
||||
opacity: 1
|
||||
},
|
||||
false: {
|
||||
opacity: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
defaultVariant: {
|
||||
show: false
|
||||
}
|
||||
})
|
||||
|
||||
export const ButtonsGroup = styled('div', {
|
||||
display: 'flex',
|
||||
gap: '1rem'
|
||||
})
|
||||
export const ButtonsGroup = styled.div`
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
`
|
||||
Reference in new issue
Block a user