mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 01:25:51 +07:00
refactor: move cascaded CSS from templates to JS objects
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import styled, { css } from 'react-emotion';
|
||||
|
||||
export const Content = styled('div')`
|
||||
&& {
|
||||
background-color: #ffffff;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
position: relative;
|
||||
flex-direction: column;
|
||||
}
|
||||
`;
|
||||
export const Content = styled('div')({
|
||||
'&&': {
|
||||
backgroundColor: '#ffffff',
|
||||
flex: 1,
|
||||
display: 'flex',
|
||||
position: 'relative',
|
||||
flexDirection: 'column',
|
||||
},
|
||||
});
|
||||
|
||||
export const Container = styled('div')`
|
||||
&& {
|
||||
|
||||
Reference in New Issue
Block a user