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
128 lines (121 loc) · 3.64 KB
/
styles.ts
File metadata and controls
128 lines (121 loc) · 3.64 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import { createStyles, sheshaStyles } from '@/styles';
export const useStyles = createStyles(({ css, cx, token, prefixCls, iconPrefixCls }) => {
const csHeader = "sha-cs-header";
const csHeaderLeft = "sha-cs-header-left";
const csHeaderCenter = "sha-cs-header-center";
const csHeaderRight = "sha-cs-header-right";
const csContent = "sha-cs-content";
const csLogo = "sha-cs-logo";
const csTreeArea = "sha-cs-tree-area";
const csWorkArea = "sha-cs-work-area";
const csNavPanelSpinner = "sha-cs-tree-spinner";
const csNavPanelContent = "sha-cs-nav-content";
const csNavPanelHeader = 'sha-cs-nav-content-hd';
const csNavPanelTree = 'sha-cs-nav-content-tree';
const csQuickInfoIcons = 'sha-cs-quick-info-icons';
const csDocTabs = 'sha-cs-doc-tabs';
const csDocEditor = 'sha-cs-doc-editor';
const headerHeight = 60;
const tabCardHeight = 40;
const configStudio = cx("sha-config-studio", css`
.${csHeader} {
height: ${headerHeight}px;
padding: 0;
background: ${token.colorBgContainer};
display: flex;
justify-content: space-between;
align-items: center;
.${csLogo}{
margin: 0 5px;
}
>div{
display: flex;
align-items: center;
}
.${csHeaderLeft}{
}
.${csHeaderCenter}{
.${csQuickInfoIcons}{
>.${iconPrefixCls} {
margin-left: 5px;
}
}
}
.${csHeaderRight}{
margin-right: 10px;
}
}
.${csContent}{
background-color: ${token.colorBgContainer};
}
.${csTreeArea}{
height: calc(100vh - ${headerHeight}px);
overflow: auto;
.${csNavPanelSpinner}{
height: 100%;
>.${prefixCls}-spin-container {
height: 100%;
}
}
.${csNavPanelContent}{
display: flex;
flex-direction: column;
height: 100%;
.${csNavPanelHeader}{
margin-bottom: 8px;
flex-grow: 0;
}
.${csNavPanelTree}{
flex-grow: 1;
>.${prefixCls}-tree{
height:100%;
}
.${prefixCls}-tree-treenode {
.${prefixCls}-tree-draggable-icon {
display: none;
}
}
}
}
}
.${csWorkArea}{
height: calc(100vh - ${headerHeight}px);
overflow: auto;
flex-grow: 1 !important;
.${csDocTabs}{
height: 100%;
>.ant-tabs-content-holder{
height: 100%;
${sheshaStyles.thinScrollbars}
>.ant-tabs-content{
height: 100%;
overflow: hidden;
}
}
}
}
.${csDocEditor}{
padding: 0;
overflow: auto;
height: calc(100vh - ${headerHeight}px - ${tabCardHeight}px);
}
`);
return {
csLogo,
configStudio,
csHeader,
csHeaderLeft,
csHeaderCenter,
csHeaderRight,
csContent,
csTreeArea,
csWorkArea,
csNavPanelSpinner,
csNavPanelContent,
csNavPanelHeader,
csNavPanelTree,
csQuickInfoIcons,
csDocTabs,
csDocEditor,
};
});