feat: url & navbar buttons

This commit is contained in:
karishmas6
2024-06-14 23:12:31 +05:30
parent 63c2c815b3
commit 374cf4036f

View File

@@ -0,0 +1,47 @@
import styled from 'styled-components';
export const NavBarButton = styled.button<{ disabled: boolean }>`
margin-left: 5px;
margin-right: 5px;
padding: 0;
border: none;
background-color: transparent;
cursor: ${({ disabled }) => disabled ? 'default' : 'pointer'};
width: 24px;
height: 24px;
border-radius: 12px;
outline: none;
color: ${({ disabled }) => disabled ? '#999' : '#333'};
${({ disabled }) => disabled ? null : `
&:hover {
background-color: #ddd;
}
&:active {
background-color: #d0d0d0;
}
`};
`;
export const UrlFormButton = styled.button`
position: absolute;
top: 0;
right: 0;
padding: 0;
border: none;
background-color: transparent;
cursor: pointer;
width: 24px;
height: 24px;
border-radius: 12px;
outline: none;
color: #333;
&:hover {
background-color: #ddd;
},
&:active {
background-color: #d0d0d0;
},
`;