@kizmann/nano-ui 0.8.8 → 0.8.10
Sign up to get free protection for your applications and to get access to all the features.
- package/demos/overview.html +32 -0
- package/dist/nano-ui.css +1 -1
- package/dist/nano-ui.js +3 -3
- package/dist/nano-ui.js.map +1 -1
- package/dist/themes/light.css +1 -1
- package/package.json +1 -1
- package/src/collapse/src/collapse-item/collapse-item.js +9 -3
- package/src/index.js +1 -0
- package/src/index.scss +1 -0
- package/src/info/src/info/info.js +5 -1
- package/src/tags/index.js +7 -0
- package/src/tags/index.scss +2 -0
- package/src/tags/src/tags/tags.js +109 -0
- package/src/tags/src/tags/tags.scss +5 -0
- package/src/tags/src/tags-item/tags-item.js +104 -0
- package/src/tags/src/tags-item/tags-item.scss +55 -0
- package/themes/light/index.scss +1 -0
- package/themes/light/root/vars.scss +23 -0
- package/themes/light/tags/index.scss +2 -0
- package/themes/light/tags/src/tags/tags.scss +1 -0
- package/themes/light/tags/src/tags-item/tags-item.scss +12 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
@import "../../../root/vars";
|
2
|
+
|
3
|
+
.n-tags-item {
|
4
|
+
overflow: hidden;
|
5
|
+
display: inline-flex;
|
6
|
+
flex-direction: row;
|
7
|
+
align-items: center;
|
8
|
+
justify-content: flex-start;
|
9
|
+
max-width: 160px;
|
10
|
+
border-radius: $sm-radius;
|
11
|
+
background: $color-gray-10;
|
12
|
+
}
|
13
|
+
|
14
|
+
.n-tags-item i {
|
15
|
+
flex: 0 0 auto;
|
16
|
+
color: $color-gray-40;
|
17
|
+
text-align: center;
|
18
|
+
}
|
19
|
+
|
20
|
+
.n-tags-item span {
|
21
|
+
overflow: hidden;
|
22
|
+
display: block;
|
23
|
+
white-space: nowrap;
|
24
|
+
text-overflow: ellipsis;
|
25
|
+
flex: 1 1 auto;
|
26
|
+
}
|
27
|
+
|
28
|
+
@each $suffix, $values in $form {
|
29
|
+
|
30
|
+
$-tags-item-font: map-get($values, 'font');
|
31
|
+
$-tags-item-size: map-get($values, 'size');
|
32
|
+
$-tags-item-radius: map-get($values, 'radius');
|
33
|
+
$-tags-item-ratio: map-get($values, 'ratio');
|
34
|
+
|
35
|
+
.n-tags-item--#{$suffix} {
|
36
|
+
padding: 0 $-tags-item-size * 0.3 0 $-tags-item-size * 0.3;
|
37
|
+
}
|
38
|
+
|
39
|
+
.n-tags-item--#{$suffix} i,
|
40
|
+
.n-tags-item--#{$suffix} span {
|
41
|
+
height: $-tags-item-size * 0.8;
|
42
|
+
line-height: $-tags-item-size * 0.8;
|
43
|
+
}
|
44
|
+
|
45
|
+
.n-tags-item--#{$suffix} i {
|
46
|
+
height: $-tags-item-size * 0.8;
|
47
|
+
margin-right: $-tags-item-size * 0.2;
|
48
|
+
font-size: $-tags-item-font - 2;
|
49
|
+
}
|
50
|
+
|
51
|
+
.n-tags-item--#{$suffix} span {
|
52
|
+
font-size: $-tags-item-font - 1;
|
53
|
+
margin-left: 2px;
|
54
|
+
}
|
55
|
+
}
|
package/themes/light/index.scss
CHANGED
@@ -158,3 +158,26 @@ $colors: (
|
|
158
158
|
'dark': $color-danger-dark
|
159
159
|
),
|
160
160
|
) !default;
|
161
|
+
|
162
|
+
$colors-tags: (
|
163
|
+
'0': mix($color-secondary, $color-secondary, 65%),
|
164
|
+
'1': mix($color-primary, $color-secondary, 65%),
|
165
|
+
'2': mix($color-danger, $color-secondary, 65%),
|
166
|
+
'3': mix($color-success, $color-secondary, 65%),
|
167
|
+
'4': mix($color-warning, $color-secondary, 65%),
|
168
|
+
'5': mix($color-primary, $color-success, 65%),
|
169
|
+
'6': mix($color-secondary, $color-success, 65%),
|
170
|
+
'7': mix($color-danger, $color-success, 65%),
|
171
|
+
'8': mix($color-success, $color-success, 65%),
|
172
|
+
'9': mix($color-warning, $color-success, 65%),
|
173
|
+
'10': mix($color-primary, $color-danger, 65%),
|
174
|
+
'11': mix($color-secondary, $color-danger, 65%),
|
175
|
+
'12': mix($color-danger, $color-danger, 65%),
|
176
|
+
'13': mix($color-success, $color-danger, 65%),
|
177
|
+
'14': mix($color-warning, $color-danger, 65%),
|
178
|
+
'15': mix($color-primary, $color-warning, 65%),
|
179
|
+
'16': mix($color-secondary, $color-warning, 65%),
|
180
|
+
'17': mix($color-danger, $color-warning, 65%),
|
181
|
+
'18': mix($color-success, $color-warning, 65%),
|
182
|
+
'19': mix($color-warning, $color-warning, 65%),
|
183
|
+
) !default;
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "../../../root/vars";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@import "../../../root/vars";
|
2
|
+
|
3
|
+
@each $-tags-index, $-tags-color in $colors-tags {
|
4
|
+
|
5
|
+
.n-tags-item--color-#{$-tags-index} {
|
6
|
+
background: rgba($-tags-color, 0.15);
|
7
|
+
}
|
8
|
+
.n-tags-item--color-#{$-tags-index} i {
|
9
|
+
color: rgba($-tags-color, 0.75);
|
10
|
+
}
|
11
|
+
|
12
|
+
}
|