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