forked from shesha-io/shesha-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.ts
More file actions
89 lines (77 loc) · 2.32 KB
/
styles.ts
File metadata and controls
89 lines (77 loc) · 2.32 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import { createGlobalStyle } from "antd-style";
import { sheshaStyles } from '@/styles';
import { DEFAULT_MARGINS } from "@/components/formDesigner/utils/designerConstants";
export const GlobalTableStyles = createGlobalStyle`
.sha-components-container.sha-index-table-control {
background: white;
padding: ${sheshaStyles.paddingMD}px ${sheshaStyles.paddingLG}px !important;
justify-content: space-between;
align-items: center;
min-height: ${sheshaStyles.pageHeadingHeight} !important;
border-bottom: ${sheshaStyles.border};
.sha-components-container,
.sha-components-container-inner {
height: 100% !important;
}
.${(p) => p.theme.prefixCls}-form-item {
margin: unset !important;
}
.index-table-controls-left,
.index-table-controls-right {
.sha-components-container {
justify-content: unset;
align-items: center;
.sha-components-container-inner {
height: ${sheshaStyles.pageHeadingHeight} !important;
display: flex;
align-items: center;
button {
padding: unset;
}
}
}
}
}
@media (${sheshaStyles.mediaPhoneLg}) {
.sha-components-container.sha-index-table-control {
.index-table-controls-left,
.index-table-controls-right {
.sha-components-container {
.sha-components-container-inner {
height: unset !important;
}
}
}
}
}
.sha-datatable-wrapper {
position: relative;
/* Enable horizontal scrolling when table content exceeds container width */
overflow-x: auto;
}
.sha-react-table {
overflow: auto;
.td {
.${(p) => p.theme.prefixCls}-form-item {
width: calc(100% - (2 * ${DEFAULT_MARGINS.horizontal}));
.${(p) => p.theme.prefixCls}-row {
&.${(p) => p.theme.prefixCls}-form-item-row {
margin: 0;
.${(p) => p.theme.prefixCls}-picker, .${(p) => p.theme.prefixCls}-input-number {
width: 100%;
}
}
}
}
.sha-form-cell {
.${(p) => p.theme.prefixCls}-form-item {
.${(p) => p.theme.prefixCls}-row {
&.${(p) => p.theme.prefixCls}-form-item-row {
margin-bottom: 5px;
}
}
}
}
}
}
`;