securityos/components/system/Taskbar/Clock/StyledClock.ts

26 lines
674 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import styled from "styled-components";
const StyledClock = styled.div`
color: ${({ theme }) => theme.colors.text};
display: flex;
font-size: ${({ theme }) => theme.sizes.clock.fontSize};
height: 100%;
max-width: ${({ theme }) => `calc(${theme.sizes.clock.width} + 10px)`};
min-width: ${({ theme }) => theme.sizes.clock.width};
padding: 0 5px;
place-content: center;
place-items: center;
position: absolute;
right: 0;
&:hover {
background-color: ${({ theme }) => theme.colors.taskbar.hover};
}
&:active {
background-color: ${({ theme }) => theme.colors.taskbar.foreground};
}
`;
export default StyledClock;