Elffuss BraidHub

kikocis/continue public

db0553d9db9f · 713 BRawPermalink
1import styled from "styled-components";
2import {
3 defaultBorderRadius,
4 lightGray,
5 vscButtonBackground,
6 vscButtonForeground,
7 vscForeground,
8} from "../..";
9import { fontSize } from "../../../util";
10
11export const EnterButton = styled.button<{ isPrimary?: boolean }>`
12 all: unset;
13 font-size: ${fontSize(-3)};
14 padding: 2px 4px;
15 display: flex;
16 align-items: center;
17 background-color: ${(props) =>
18 !props.disabled && props.isPrimary
19 ? vscButtonBackground
20 : lightGray + "33"};
21 border-radius: ${defaultBorderRadius};
22 color: ${(props) =>
23 !props.disabled && props.isPrimary ? vscButtonForeground : vscForeground};
24 cursor: pointer;
25
26 :disabled {
27 cursor: not-allowed;
28 }
29`;