-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsc.tsx
40 lines (37 loc) · 868 Bytes
/
sc.tsx
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
import styled, { css } from 'styled-components';
export const SummaryWrapper = styled.div`
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align:center;
overflow: hidden;
`;
export const CurrentValueWrapper = styled.div<{ color: string }>`
font-size: 120px;
white-space: nowrap;
${props => {
return css`
color: ${props.color};
`;
}};
`;
export const FormWrapper = styled.div<{ openSetting: boolean, readOnly: boolean }>`
border-left: 1px solid var(--borderCommonDefault);
width: 320px;
flex-shrink: 0;
height: 100%;
padding: 1rem;
overflow-y: auto;
display: ${(props) => props.openSetting ? 'block' : 'none'};
${(props) => {
if (props.readOnly) {
return css`
pointer-events: none;
opacity: 0.5;
`;
}
return;
}}
`;