@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
65 lines (62 loc) • 1.55 kB
text/typescript
import styled from 'styled-components';
import {
akEditorTableToolbarSelected,
akEditorTableBorder,
akEditorTableBorderSelected,
akEditorTableToolbar,
} from '../../styles';
export const toolbarSize = 11;
// tslint:disable-next-line:variable-name
export const Container = styled.div`
position: relative;
`;
// tslint:disable-next-line:variable-name
export const HeaderButtonDefault = styled.button`
background: ${akEditorTableToolbar};
border-top: 1px solid ${akEditorTableBorder};
border-left: 1px solid ${akEditorTableBorder};
display: block;
padding: 0;
cursor: pointer;
&:hover, .active > &, .tableSelected & {
background-color: ${akEditorTableToolbarSelected};
border-color: ${akEditorTableBorderSelected};
}
&:focus {
outline: none;
}
`;
// tslint:disable-next-line:variable-name
export const InsertButtonDefault = styled.div`
position: absolute;
z-index: 20;
display: none;
width: 20px;
height: 20px;
justify-content: center;
& button {
width: 100%;
}
& button * {
width: 100%;
height: 100%;
}
`;
// tslint:disable-next-line:variable-name
export const InsertMarkerDefault = styled.div`
background-color: ${akEditorTableBorder};
position: absolute;
height: 4px;
width: 4px;
border-radius: 50%;
div:hover > & {
background-color: ${akEditorTableBorderSelected}
}
`;
// tslint:disable-next-line:variable-name
export const LineMarkerDefault = styled.div`
background: ${akEditorTableBorderSelected};
display: none;
position: absolute;
z-index: 1;
`;