@neatui/css 1.0.21 → 1.0.23
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.
|
@@ -11,28 +11,28 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
11
11
|
overflow-y: hidden;
|
|
12
12
|
|
|
13
13
|
@include theme {
|
|
14
|
-
box-shadow: inset 0 -
|
|
14
|
+
box-shadow: inset 0 -1px 0 co(line);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
& > * {
|
|
18
18
|
position: relative;
|
|
19
19
|
display: inline-block;
|
|
20
20
|
cursor: pointer;
|
|
21
|
-
margin-left:
|
|
22
|
-
margin-right:
|
|
21
|
+
margin-left: 1em;
|
|
22
|
+
margin-right: 1em;
|
|
23
23
|
|
|
24
24
|
&:first-child {
|
|
25
|
-
margin-left: 0;
|
|
25
|
+
margin-left: 0 !important;
|
|
26
26
|
}
|
|
27
27
|
&:last-child {
|
|
28
|
-
margin-right: 0;
|
|
28
|
+
margin-right: 0 !important;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&.active {
|
|
32
32
|
-webkit-font-smoothing: auto;
|
|
33
33
|
@include theme {
|
|
34
34
|
color: co(main);
|
|
35
|
-
box-shadow: inset 0 -
|
|
35
|
+
box-shadow: inset 0 -2px 0 co(main);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -56,7 +56,12 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
56
56
|
&[ui-tabs~='#{$i}'] {
|
|
57
57
|
height: $base;
|
|
58
58
|
line-height: $base;
|
|
59
|
+
|
|
60
|
+
& > * {
|
|
61
|
+
margin-left: $base * 0.5 - 0.5em;
|
|
62
|
+
margin-right: $base * 0.5 - 0.5em;
|
|
63
|
+
}
|
|
59
64
|
}
|
|
60
|
-
$base: $base + 0.
|
|
65
|
+
$base: $base + 0.25;
|
|
61
66
|
}
|
|
62
67
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
$co: 'main', 'well', 'warn', 'risk', 'info';
|
|
2
|
+
$sz: 'xs', 's', 'm', 'l', 'xl';
|
|
3
|
+
|
|
4
|
+
[ui-tabs~='@b'] {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
height: 2.5em;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
overflow-x: auto;
|
|
11
|
+
overflow-y: hidden;
|
|
12
|
+
padding: 3px;
|
|
13
|
+
border-radius: 0.5em;
|
|
14
|
+
|
|
15
|
+
@include theme {
|
|
16
|
+
border: 1px solid co(line);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& > * {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
border-radius: 0.25em;
|
|
25
|
+
padding: 0.5em 1em;
|
|
26
|
+
&.active {
|
|
27
|
+
@include theme {
|
|
28
|
+
color: co(fore);
|
|
29
|
+
background: co(main);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 对齐
|
|
35
|
+
&,
|
|
36
|
+
&[ui-tabs~='al'] {
|
|
37
|
+
text-align: left;
|
|
38
|
+
}
|
|
39
|
+
&[ui-tabs~='ac'] {
|
|
40
|
+
text-align: center;
|
|
41
|
+
}
|
|
42
|
+
&[ui-tabs~='ar'] {
|
|
43
|
+
text-align: right;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 尺寸
|
|
47
|
+
$base: 1.5em;
|
|
48
|
+
@each $i in $sz {
|
|
49
|
+
&[ui-tabs~='#{$i}'] {
|
|
50
|
+
height: $base;
|
|
51
|
+
|
|
52
|
+
& > * {
|
|
53
|
+
padding: 0.5em $base - 1.25em;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
$base: $base + 0.5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[ui-tabs~=':round'] {
|
|
60
|
+
border-radius: 100em;
|
|
61
|
+
& > * {
|
|
62
|
+
border-radius: 100em;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
$co: 'main', 'well', 'warn', 'risk', 'info';
|
|
2
|
+
$sz: 'xs', 's', 'm', 'l', 'xl';
|
|
3
|
+
|
|
4
|
+
[ui-tabs~='@c'] {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
height: 2.5em;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
overflow-x: auto;
|
|
11
|
+
overflow-y: hidden;
|
|
12
|
+
padding: 2px;
|
|
13
|
+
border-radius: 0.35em;
|
|
14
|
+
|
|
15
|
+
@include theme {
|
|
16
|
+
background: co(weak);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& > * {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
border-radius: 0.25em;
|
|
25
|
+
padding: 0.5em 1em;
|
|
26
|
+
&.active {
|
|
27
|
+
@include theme {
|
|
28
|
+
color: co(main);
|
|
29
|
+
background: co(fore);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 对齐
|
|
35
|
+
&,
|
|
36
|
+
&[ui-tabs~='al'] {
|
|
37
|
+
text-align: left;
|
|
38
|
+
}
|
|
39
|
+
&[ui-tabs~='ac'] {
|
|
40
|
+
text-align: center;
|
|
41
|
+
}
|
|
42
|
+
&[ui-tabs~='ar'] {
|
|
43
|
+
text-align: right;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 尺寸
|
|
47
|
+
$base: 1.5em;
|
|
48
|
+
@each $i in $sz {
|
|
49
|
+
&[ui-tabs~='#{$i}'] {
|
|
50
|
+
height: $base;
|
|
51
|
+
|
|
52
|
+
& > * {
|
|
53
|
+
padding: 0.5em $base - 1.25em;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
$base: $base + 0.5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[ui-tabs~=':round'] {
|
|
60
|
+
border-radius: 100em;
|
|
61
|
+
& > * {
|
|
62
|
+
border-radius: 100em;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|