Elffuss BraidHub

kikocis/continue public

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