style.less
2.45 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
@import '~@qx/ui/src/style/variable.less';
.qx-formula-cm {
.CodeMirror {
height: auto;
line-height: 24px;
}
}
.cm-bg .CodeMirror {
border: 1px solid #e7e6e6;
background-color: #f9f9f9 !important;
}
.qx-copy-send-cm {
height: 100%;
.react-codemirror2 {
height: 100%;
.CodeMirror {
height: auto;
min-height: 80px;
line-height: 24px;
}
}
}
.qx-field-setter__clear {
position: absolute;
bottom: 8px;
right: 8px;
color: #bcb9b9;
font-size: 14px;
}
.CodeMirror-line {
.CodeMirror-matchingbracket {
outline: none !important;
background: #ccc;
border-radius: 2px;
//padding: 0 1px 2px;
}
}
body {
.CodeMirror-hints.idea {
background: #fff !important;
border: 1px solid @N4;
border-radius: 5px;
width: 240px;
.tree-node-high {
color: @B8;
}
.tag {
padding: 0 8px;
border-radius: 4px;
background-color: #e7efff;
font-size: 14px;
color: #1764ff;
white-space: nowrap;
margin-left: 10px;
}
.hint-line {
padding: 5px 0;
display: flex;
justify-content: space-between;
font-size: 13px;
&_left {
//overflow: hidden;
//white-space: nowrap;
//text-overflow: ellipsis;
width: 50%;
margin-right: 10px;
}
&_right {
color: #7c7e86;
width: 50%;
overflow: hidden;
text-align: right;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.CodeMirror-hints.idea .CodeMirror-hint-active {
background: #f5f5f5 !important;
}
.CodeMirror-hints::-webkit-scrollbar {
width: 10px; /* 设置滚动条宽度 */
background-color: #fff;
border-radius: 5px;
}
.CodeMirror-hints::-webkit-scrollbar-track {
background-color: #f1f1f1; /* 设置滚动条轨道背景色 */
border-radius: 10px; /* 设置滚动条轨道的圆角 */
}
.CodeMirror-hints::-webkit-scrollbar-thumb {
background-color: #ccc; /* 设置滚动条滑块颜色 */
border-radius: 10px; /* 设置滚动条滑块的圆角 */
}
.CodeMirror-hints::-webkit-scrollbar-thumb:hover {
background-color: #555; /* 设置滚动条滑块的悬停颜色 */
}
.CodeMirror-placeholder {
position: absolute;
top: 5px;
left: 5px;
color: #bfbfbf;
}
}
.CodeMirror-hint:hover {
background: #f5f5f5 !important;
}
.CodeMirror-line {
.bracket-mark {
padding: 0 1px 2px;
margin: 0 1px 0 0;
}
}