forked from coldemo/gallery.code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyled.ts
More file actions
40 lines (34 loc) · 723 Bytes
/
styled.ts
File metadata and controls
40 lines (34 loc) · 723 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
import { Col, Row } from 'antd';
import styled from 'styled-components';
import media from 'styled-media-query';
/**
* https://github.com/morajabi/styled-media-query
* export const defaultBreakpoints = {
huge: '1440px',
large: '1170px',
medium: '768px',
small: '450px',
};
*/
export let MainRow = styled(Row)`
height: 100%;
display: flex;
${media.lessThan('medium')`
flex-direction: column;
`}
`;
export let MainCol = styled(Col)`
height: 100%;
`;
export let MountNode = styled.div`
height: 100%;
min-height: 100px;
overflow-y: auto;
word-break: break-word;
`;
export let ErrorInfo = styled.pre`
font-size: 12px;
color: red;
white-space: pre-wrap;
padding: 10px;
`;