securityos/components/system/Taskbar/StartButton/StyledStartButton.ts

46 lines
1011 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import styled from "styled-components";
import Button from "styles/common/Button";
type StyledStartButtonProps = {
$active: boolean;
};
const StyledStartButton = styled(Button)<StyledStartButtonProps>`
background-color: ${({ $active, theme }) =>
$active && theme.colors.taskbar.foreground};
display: flex;
fill: ${({ theme }) => theme.colors.startButton};
height: 100%;
left: 0;
place-content: center;
place-items: center;
position: absolute;
&& {
width: ${({ theme }) => theme.sizes.startButton.width};
}
svg {
height: ${({ theme }) => theme.sizes.startButton.iconSize};
}
&:hover {
background-color: ${({ $active, theme }) =>
$active ? undefined : theme.colors.taskbar.hover};
svg {
fill: ${({ theme }) => theme.colors.highlight};
}
}
&:active {
background-color: hsla(0, 0%, 20%, 70%);
svg {
fill: hsla(207, 100%, 60%, 80%);
}
}
`;
export default StyledStartButton;