forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.ts
More file actions
25 lines (23 loc) · 656 Bytes
/
elements.ts
File metadata and controls
25 lines (23 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import styled from 'styled-components';
export const Container = styled.div`
position: relative;
color: ${props => props.theme.gray.darken(0.2)()};
vertical-align: middle;
font-size: 1rem;
`;
export const InputContainer = styled.div`
input {
border-radius: 4px;
outline: none;
/* border: 1px solid #ccc; */
border: 0px solid transparent;
padding: 0.2rem 0.5rem;
color: black;
width: 100%;
color: ${props =>
props.theme['input.foreground'] || 'rgba(255, 255, 255, 0.8)'};
box-sizing: border-box;
background-color: ${props =>
props.theme['input.background'] || props.theme.background4};
}
`;