@neatui/css 3.15.1 → 3.16.1
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/core/basic.scss +45 -43
- package/package.json +1 -1
package/core/basic.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use "./media.scss" as *;
|
|
2
|
+
@use "./vars.scss" as *;
|
|
3
3
|
|
|
4
|
-
@mixin base($d:
|
|
4
|
+
@mixin base($d: "") {
|
|
5
5
|
.#{$d}w-auto {
|
|
6
6
|
width: auto;
|
|
7
7
|
}
|
|
@@ -188,23 +188,23 @@
|
|
|
188
188
|
@include base();
|
|
189
189
|
|
|
190
190
|
// 平板
|
|
191
|
-
@include med(
|
|
192
|
-
@include base(
|
|
191
|
+
@include med("<dpc") {
|
|
192
|
+
@include base("pad\\:");
|
|
193
193
|
}
|
|
194
194
|
// 移动
|
|
195
|
-
@include med(
|
|
196
|
-
@include base(
|
|
195
|
+
@include med("<pad") {
|
|
196
|
+
@include base("mob\\:");
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
// 代码
|
|
200
200
|
code,
|
|
201
201
|
.code {
|
|
202
|
-
font-family: Menlo, Monaco,
|
|
202
|
+
font-family: Menlo, Monaco, "Courier New", monospace;
|
|
203
203
|
-webkit-font-smoothing: antialiased;
|
|
204
204
|
-moz-osx-font-smoothing: grayscale;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
[layout=
|
|
207
|
+
[layout="full"] {
|
|
208
208
|
&,
|
|
209
209
|
body {
|
|
210
210
|
width: 100%;
|
|
@@ -218,36 +218,38 @@ code,
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
// 容器
|
|
221
|
-
.box,
|
|
222
|
-
.box-base {
|
|
223
|
-
position: relative;
|
|
224
|
-
width: 100%;
|
|
225
|
-
max-width: 92rem;
|
|
226
|
-
margin: 0 auto;
|
|
227
|
-
}
|
|
228
221
|
.box-full,
|
|
229
|
-
[layout=
|
|
222
|
+
[layout="full"] .box {
|
|
230
223
|
width: 100%;
|
|
231
|
-
max-width:
|
|
224
|
+
max-width: none;
|
|
232
225
|
}
|
|
233
226
|
.box-wide,
|
|
234
|
-
[layout=
|
|
235
|
-
width:
|
|
236
|
-
max-width:
|
|
227
|
+
[layout="wide"] .box {
|
|
228
|
+
width: 100%;
|
|
229
|
+
max-width: 1600px;
|
|
237
230
|
}
|
|
238
|
-
.box-
|
|
239
|
-
[layout=
|
|
240
|
-
width:
|
|
241
|
-
max-width:
|
|
231
|
+
.box-norm,
|
|
232
|
+
[layout="norm"] .box {
|
|
233
|
+
width: 100%;
|
|
234
|
+
max-width: 1440px;
|
|
235
|
+
}
|
|
236
|
+
.box,
|
|
237
|
+
.box-base,
|
|
238
|
+
[layout="base"] .box {
|
|
239
|
+
width: 100%;
|
|
240
|
+
max-width: 1280px;
|
|
242
241
|
}
|
|
243
242
|
.box-slim,
|
|
244
|
-
|
|
243
|
+
.doc,
|
|
244
|
+
[layout="slim"] .box {
|
|
245
245
|
width: 100%;
|
|
246
|
-
max-width:
|
|
246
|
+
max-width: 800px;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
.box,
|
|
250
|
+
.box-base,
|
|
249
251
|
.box-wide,
|
|
250
|
-
.box-
|
|
252
|
+
.box-norm,
|
|
251
253
|
.box-slim {
|
|
252
254
|
position: relative;
|
|
253
255
|
margin: 0 auto;
|
|
@@ -263,11 +265,11 @@ code,
|
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
// 文档
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
.doc {
|
|
269
|
+
p {
|
|
270
|
+
margin-bottom: 0.5em;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
271
273
|
|
|
272
274
|
.bk {
|
|
273
275
|
&-solid {
|
|
@@ -290,36 +292,36 @@ code,
|
|
|
290
292
|
text-overflow: ellipsis;
|
|
291
293
|
-webkit-text-size-adjust: 100%;
|
|
292
294
|
}
|
|
293
|
-
[ui-omit]:not([ui-omit~=
|
|
295
|
+
[ui-omit]:not([ui-omit~="1"]) {
|
|
294
296
|
display: -webkit-box;
|
|
295
297
|
-webkit-box-orient: vertical;
|
|
296
298
|
-webkit-line-clamp: var(--line);
|
|
297
299
|
}
|
|
298
|
-
[ui-omit~=
|
|
300
|
+
[ui-omit~="1"] {
|
|
299
301
|
white-space: nowrap;
|
|
300
302
|
}
|
|
301
|
-
[ui-omit~=
|
|
303
|
+
[ui-omit~="2"] {
|
|
302
304
|
--line: 2;
|
|
303
305
|
}
|
|
304
|
-
[ui-omit~=
|
|
306
|
+
[ui-omit~="3"] {
|
|
305
307
|
--line: 3;
|
|
306
308
|
}
|
|
307
|
-
[ui-omit~=
|
|
309
|
+
[ui-omit~="4"] {
|
|
308
310
|
--line: 4;
|
|
309
311
|
}
|
|
310
|
-
[ui-omit~=
|
|
312
|
+
[ui-omit~="5"] {
|
|
311
313
|
--line: 5;
|
|
312
314
|
}
|
|
313
|
-
[ui-omit~=
|
|
315
|
+
[ui-omit~="6"] {
|
|
314
316
|
--line: 6;
|
|
315
317
|
}
|
|
316
|
-
[ui-omit~=
|
|
318
|
+
[ui-omit~="7"] {
|
|
317
319
|
--line: 7;
|
|
318
320
|
}
|
|
319
|
-
[ui-omit~=
|
|
321
|
+
[ui-omit~="8"] {
|
|
320
322
|
--line: 8;
|
|
321
323
|
}
|
|
322
|
-
[ui-omit~=
|
|
324
|
+
[ui-omit~="9"] {
|
|
323
325
|
--line: 9;
|
|
324
326
|
}
|
|
325
327
|
|