mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-06-28 17:03:08 +03:00
* Replace styled-components with Emotion in ui * react-dock * Remainder * Fix * Format * Update snapshots * Create bright-sheep-joke.md
37 lines
671 B
TypeScript
37 lines
671 B
TypeScript
import styled from '@emotion/styled';
|
|
import { Position } from '../Tabs';
|
|
|
|
interface StyleProps {
|
|
position: Position;
|
|
}
|
|
|
|
export const TabsContainer = styled.div<StyleProps>`
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
flex: 1;
|
|
overflow-y: hidden;
|
|
overflow-x: hidden;
|
|
height: 100%;
|
|
|
|
> div > div:first-child {
|
|
${(props) =>
|
|
props.position !== 'left' &&
|
|
`
|
|
margin-left: auto !important;
|
|
`}
|
|
${(props) =>
|
|
props.position === 'center' &&
|
|
`
|
|
margin-right: auto !important;
|
|
`}
|
|
}
|
|
|
|
> div:nth-child(2) {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
`;
|