@alauda-fe/dynamic-plugin-shared 0.0.4-alpha.10 → 0.0.4-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/mixins.scss +261 -0
- package/styles/var.scss +5 -0
package/package.json
CHANGED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
// stylelint-disable no-descending-specificity
|
|
2
|
+
@use 'node_modules/@alauda/ui/theme/var' as *;
|
|
3
|
+
@use 'node_modules/@alauda/ui/theme/mixin' as *;
|
|
4
|
+
@use 'node_modules/@alauda/ui/theme/pattern' as *;
|
|
5
|
+
@use 'node_modules/@alauda-fe/dynamic-plugin-sdk/styles/mixins' as *;
|
|
6
|
+
@use './var' as shared-var;
|
|
7
|
+
|
|
8
|
+
@mixin detail-page-fullheight($gap: 0) {
|
|
9
|
+
display: block;
|
|
10
|
+
height: calc(
|
|
11
|
+
100vh - (#{shared-var.$page-top}) - #{111px + 16px + 20px + $gap}
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
> .aui-card {
|
|
15
|
+
height: 100%;
|
|
16
|
+
|
|
17
|
+
.aui-card__content,
|
|
18
|
+
aui-code-editor,
|
|
19
|
+
.aui-code-editor {
|
|
20
|
+
height: 100%;
|
|
21
|
+
min-height: 100%;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// 通用创建/更新页,撑屏内容高度
|
|
27
|
+
@mixin create-page-fullheight__card($hasSample: false) {
|
|
28
|
+
$height: calc(
|
|
29
|
+
100vh - (#{shared-var.$page-top}) - #{20px + 32px + 16px + 1px + 16px +
|
|
30
|
+
20px + 20px + shared-var.$fixed-form-footer-height}
|
|
31
|
+
);
|
|
32
|
+
@if $hasSample == true {
|
|
33
|
+
$height: calc(
|
|
34
|
+
100vh -
|
|
35
|
+
(#{shared-var.$page-top}) -
|
|
36
|
+
#{20px +
|
|
37
|
+
32px +
|
|
38
|
+
16px +
|
|
39
|
+
1px +
|
|
40
|
+
16px +
|
|
41
|
+
20px +
|
|
42
|
+
20px +
|
|
43
|
+
15px +
|
|
44
|
+
shared-var.$fixed-form-footer-height}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
display: block;
|
|
49
|
+
height: $height;
|
|
50
|
+
min-height: $height;
|
|
51
|
+
|
|
52
|
+
aui-code-editor,
|
|
53
|
+
.aui-code-editor {
|
|
54
|
+
height: 100%;
|
|
55
|
+
min-height: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// 创建页,无card-header时撑屏内容高度
|
|
60
|
+
@mixin create-page-fullheight__content {
|
|
61
|
+
height: calc(
|
|
62
|
+
100vh - (#{shared-var.$page-top}) - #{20px + 20px + 20px +
|
|
63
|
+
shared-var.$fixed-form-footer-height}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin table-row-placeholder-extend {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
z-index: 1;
|
|
72
|
+
@include text-set(m, help);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@mixin acl-select-prefix {
|
|
76
|
+
aui-select .acl-select-prefix__wrapper {
|
|
77
|
+
&.isOpened,
|
|
78
|
+
&:hover:not(.isDisabled) {
|
|
79
|
+
border-color: use-rgb(primary);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.isOpened {
|
|
83
|
+
@include outline-shadow(primary);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.isDisabled {
|
|
87
|
+
.acl-select-prefix__label {
|
|
88
|
+
background-color: use-rgb(n-8);
|
|
89
|
+
border-color: use-rgb(n-7);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
display: flex;
|
|
94
|
+
border: 1px solid use-rgb(border);
|
|
95
|
+
border-radius: use-var(border-radius-m);
|
|
96
|
+
overflow-y: hidden;
|
|
97
|
+
|
|
98
|
+
aui-input-group {
|
|
99
|
+
flex: 1;
|
|
100
|
+
margin-block: -1px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.aui-input {
|
|
104
|
+
box-shadow: none !important;
|
|
105
|
+
border: none !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.acl-select-prefix__label {
|
|
109
|
+
order: -1;
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
background-color: use-rgb(n-9);
|
|
113
|
+
padding-left: 8px;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
font-weight: use-var(font-weight-bold);
|
|
116
|
+
color: use-rgb(n-4);
|
|
117
|
+
white-space: nowrap;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
aui-multi-select {
|
|
122
|
+
.acl-select-prefix__label {
|
|
123
|
+
color: use-rgb(n-4);
|
|
124
|
+
margin-right: 8px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
aui-select.ng-invalid.ng-dirty,
|
|
129
|
+
.ng-submitted aui-select.ng-invalid {
|
|
130
|
+
.acl-select-prefix__wrapper {
|
|
131
|
+
@include input-error;
|
|
132
|
+
|
|
133
|
+
&.isOpened {
|
|
134
|
+
@include outline-shadow(red);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:hover:not(.isOpened) {
|
|
138
|
+
box-shadow: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@mixin acl-table-in-table {
|
|
145
|
+
.acl-table-in-table {
|
|
146
|
+
width: calc(100% + 16px);
|
|
147
|
+
margin-left: -8px;
|
|
148
|
+
margin-right: -8px;
|
|
149
|
+
|
|
150
|
+
td,
|
|
151
|
+
th {
|
|
152
|
+
line-height: 20px;
|
|
153
|
+
padding: 8px;
|
|
154
|
+
border-bottom: 1px solid use-rgb(n-8);
|
|
155
|
+
text-align: left;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
thead {
|
|
159
|
+
td,
|
|
160
|
+
th {
|
|
161
|
+
padding-top: 0;
|
|
162
|
+
color: use-rgb(n-4);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
tbody,
|
|
167
|
+
tfoot {
|
|
168
|
+
td {
|
|
169
|
+
color: use-rgb(n-1);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
> tr:last-child {
|
|
173
|
+
td {
|
|
174
|
+
padding-bottom: 0;
|
|
175
|
+
border-bottom: 0;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// 选中的产品和选中命名空间的背景颜色
|
|
183
|
+
@mixin select-background {
|
|
184
|
+
background-color: use-rgb(primary);
|
|
185
|
+
border-color: use-rgb(primary);
|
|
186
|
+
color: white;
|
|
187
|
+
cursor: default;
|
|
188
|
+
|
|
189
|
+
&:hover {
|
|
190
|
+
box-shadow: none;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@mixin co-line-clamp($lines: 3) {
|
|
195
|
+
display: -webkit-box;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
-webkit-box-orient: vertical;
|
|
198
|
+
-webkit-line-clamp: $lines;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@mixin lang-zh {
|
|
202
|
+
$scope: &;
|
|
203
|
+
|
|
204
|
+
@at-root {
|
|
205
|
+
#{selector-nest('html[lang|=zh]', $scope)} {
|
|
206
|
+
@content;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@mixin multi-line-textarea-wrapper {
|
|
212
|
+
display: grid;
|
|
213
|
+
align-items: stretch;
|
|
214
|
+
|
|
215
|
+
&:after,
|
|
216
|
+
textarea {
|
|
217
|
+
grid-area: 1 / 1;
|
|
218
|
+
width: auto;
|
|
219
|
+
padding: 3px 5px; // aui mini textarea padding
|
|
220
|
+
font: inherit;
|
|
221
|
+
resize: none;
|
|
222
|
+
max-height: 252px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&:after {
|
|
226
|
+
content: attr(data-value) ' ';
|
|
227
|
+
visibility: hidden;
|
|
228
|
+
white-space: pre-wrap;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
textarea {
|
|
232
|
+
overflow: auto;
|
|
233
|
+
height: auto !important;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:focus-within {
|
|
237
|
+
textarea:focus {
|
|
238
|
+
outline: none;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@mixin highlight-field-item() {
|
|
244
|
+
:host {
|
|
245
|
+
acl-field-set-item {
|
|
246
|
+
::ng-deep {
|
|
247
|
+
.field-set-item__value,
|
|
248
|
+
acl-status-icon {
|
|
249
|
+
color: use-rgb(n-1) !important;
|
|
250
|
+
font-weight: 500 !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
label,
|
|
254
|
+
.field-set-item__label:after {
|
|
255
|
+
color: use-rgb(n-2) !important;
|
|
256
|
+
font-weight: 400 !important;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|