Elffuss BraidHub

kikocis/continue public

e841ee848161 · 1.4 KiBRawPermalink
1import styled from "styled-components";
2import {
3 defaultBorderRadius,
4 lightGray,
5 vscBadgeBackground,
6 vscCommandCenterActiveBorder,
7 vscCommandCenterInactiveBorder,
8 vscForeground,
9 vscInputBackground,
10 vscInputBorderFocus,
11} from "../../..";
12import { getFontSize } from "../../../../util";
13
14export const InputBoxDiv = styled.div<{}>`
15 resize: none;
16 font-family: inherit;
17 border-radius: ${defaultBorderRadius};
18 padding-bottom: 1px;
19 margin: 0;
20 height: auto;
21 width: 100%;
22 background-color: ${vscInputBackground};
23 color: ${vscForeground};
24
25 border: 1px solid ${vscCommandCenterInactiveBorder};
26 transition: border-color 0.15s ease-in-out;
27 &:focus-within {
28 border: 1px solid ${vscCommandCenterActiveBorder};
29 }
30
31 outline: none;
32 font-size: ${getFontSize()}px;
33
34 &:focus {
35 outline: none;
36
37 border: 0.5px solid ${vscInputBorderFocus};
38 }
39
40 &::placeholder {
41 color: ${lightGray}cc;
42 }
43
44 display: flex;
45 flex-direction: column;
46`;
47
48export const HoverDiv = styled.div`
49 position: absolute;
50 width: 100%;
51 height: 100%;
52 top: 0;
53 left: 0;
54 opacity: 0.5;
55 background-color: ${vscBadgeBackground};
56 color: ${vscForeground};
57 display: flex;
58 align-items: center;
59 justify-content: center;
60`;
61
62export const HoverTextDiv = styled.div`
63 position: absolute;
64 width: 100%;
65 height: 100%;
66 top: 0;
67 left: 0;
68 color: ${vscForeground};
69 display: flex;
70 align-items: center;
71 justify-content: center;
72`;