kafka-ui/kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts
2022-08-01 21:09:26 +04:00

77 lines
1.5 KiB
TypeScript

import styled, { css } from 'styled-components';
import BaseSQLEditor from 'components/common/SQLEditor/SQLEditor';
export const QueryWrapper = styled.div`
padding: 16px;
`;
export const KSQLInputsWrapper = styled.div`
width: 100%;
display: flex;
gap: 24px;
padding-bottom: 16px;
& > div {
flex-grow: 1;
}
`;
export const KSQLInputHeader = styled.div`
display: flex;
justify-content: space-between;
`;
export const KSQLButtons = styled.div`
display: flex;
gap: 16px;
`;
export const StreamPropertiesContainer = styled.label`
display: flex;
flex-direction: column;
gap: 10px;
width: 50%;
`;
export const InputsContainer = styled.div`
display: flex;
justify-content: center;
gap: 10px;
`;
export const StreamPropertiesInputWrapper = styled.div`
& > input {
height: 40px;
border: 1px solid grey;
border-radius: 4px;
min-width: 300px;
font-size: 16px;
padding-left: 15px;
}
`;
export const DeleteButtonWrapper = styled.div`
min-height: 32px;
display: flex;
flex-direction: column;
align-items: center;
justify-self: flex-start;
margin-top: 10px;
`;
export const Fieldset = styled.fieldset`
width: 50%;
`;
export const SQLEditor = styled(BaseSQLEditor)(
({ readOnly, theme }) =>
css`
background: ${readOnly && theme.ksqlDb.query.editor.readonly.background};
.ace-cursor {
${readOnly && theme.ksqlDb.query.editor.readonly.cursor}
}
.ace_print-margin {
display: none;
}
`
);