| 1 | import styled from "styled-components"; |
| 2 | import { |
| 3 | defaultBorderRadius, |
| 4 | lightGray, |
| 5 | vscButtonBackground, |
| 6 | vscButtonForeground, |
| 7 | vscForeground, |
| 8 | } from "../.."; |
| 9 | import { fontSize } from "../../../util"; |
| 10 | |
| 11 | export 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 | `; |