mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-25 19:40:24 +00:00
59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
import { grey } from '@ant-design/colors';
|
|
import { Typography as TypographyComponent } from 'antd';
|
|
import styled from 'styled-components';
|
|
|
|
export const HeaderContainer = styled.div<{ hover: boolean }>`
|
|
width: 100%;
|
|
text-align: center;
|
|
padding: 0.25rem 0;
|
|
font-size: 0.8rem;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
`;
|
|
|
|
export const HeaderContentContainer = styled.span`
|
|
cursor: pointer;
|
|
position: relative;
|
|
text-align: center;
|
|
`;
|
|
|
|
export const ThesholdContainer = styled.span`
|
|
margin-top: -0.3rem;
|
|
`;
|
|
|
|
export const DisplayThresholdContainer = styled.div`
|
|
display: flex;
|
|
align-items: center;
|
|
width: auto;
|
|
justify-content: space-between;
|
|
`;
|
|
|
|
export const WidgetHeaderContainer = styled.div`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
height: 30px;
|
|
width: 100%;
|
|
left: 0;
|
|
`;
|
|
|
|
export const ArrowContainer = styled.span<{ hover: boolean }>`
|
|
visibility: ${({ hover }): string => (hover ? 'visible' : 'hidden')};
|
|
`;
|
|
|
|
export const Typography = styled(TypographyComponent)`
|
|
&&& {
|
|
width: auto;
|
|
margin-left: 0.2rem;
|
|
color: ${grey[2]};
|
|
}
|
|
`;
|
|
|
|
export const TypographHeading = styled(TypographyComponent)`
|
|
&&& {
|
|
color: ${grey[2]};
|
|
}
|
|
`;
|