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
41 lines (32 loc) · 924 Bytes
/
elements.ts
File metadata and controls
41 lines (32 loc) · 924 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import styled from 'styled-components';
import { Preference } from '../../components/Preference';
export const PaddedPreference = (styled(Preference)`
width: 100%;
padding: 0;
font-weight: 400;
` as unknown) as typeof Preference;
export const PaddedConfig = styled.div`
padding-bottom: 0.75rem;
margin-bottom: 0.75rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
`;
export const ConfigItem = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
`;
export const ConfigName = styled.span`
flex: 1;
font-weight: 400;
color: ${props => props.theme['sideBar.foreground'] || 'inherit'};
`;
export const ConfigValue = styled.div``;
export const ConfigDescription = styled.div`
margin-top: 0.25rem;
font-weight: 500;
color: ${props => props.theme['sideBar.foreground'] || 'inherit'};
opacity: 0.8;
font-size: 0.875rem;
max-width: 75%;
`;