Files
parcer/src/components/ui/buttons/Buttons.tsx

39 lines
896 B
TypeScript
Raw Normal View History

2024-06-14 23:12:31 +05:30
import styled from 'styled-components';
2024-11-24 00:49:39 +05:30
export const NavBarButton = styled.button<{ disabled: boolean, mode: 'light' | 'dark' }>`
2024-10-19 05:01:13 +05:30
margin-left: 10px;
2024-06-14 23:12:31 +05:30
margin-right: 5px;
padding: 0;
border: none;
2024-11-24 00:49:39 +05:30
background-color: ${mode => mode ? '#333' : '#ffffff'};
2024-06-14 23:12:31 +05:30
cursor: ${({ disabled }) => disabled ? 'default' : 'pointer'};
width: 24px;
height: 24px;
border-radius: 12px;
outline: none;
2024-11-24 00:49:39 +05:30
color: ${mode => mode ? '#ffffff' : '#333333'};
2024-06-14 23:12:31 +05:30
`;
export const UrlFormButton = styled.button`
position: absolute;
top: 0;
2024-10-19 05:01:13 +05:30
right: 10px;
2024-06-14 23:12:31 +05:30
padding: 0;
border: none;
background-color: transparent;
cursor: pointer;
width: 24px;
height: 24px;
border-radius: 12px;
outline: none;
2024-10-23 22:06:26 +05:30
// color: #333;
2024-06-14 23:12:31 +05:30
2024-10-23 22:06:26 +05:30
// &:hover {
// background-color: #ddd;
// },
2024-06-14 23:12:31 +05:30
2024-10-23 22:06:26 +05:30
// &:active {
// background-color: #d0d0d0;
// },
2024-06-14 23:12:31 +05:30
`;