1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | @mixin nb-tag-input-theme() {
|
8 | .nb-tag-input {
|
9 | appearance: none;
|
10 | border: transparent;
|
11 | background: transparent;
|
12 | outline: none;
|
13 |
|
14 | flex: 1;
|
15 | padding: 0;
|
16 | min-width: nb-theme(tag-input-min-width);
|
17 |
|
18 | font-family: nb-theme(tag-input-text-font-family);
|
19 |
|
20 | &::placeholder {
|
21 | font-family: nb-theme(tag-input-placeholder-text-font-family);
|
22 | }
|
23 |
|
24 | @each $size in nb-get-sizes() {
|
25 | &.size-#{$size} {
|
26 | font-size: nb-theme(tag-input-#{$size}-text-font-size);
|
27 | font-weight: nb-theme(tag-input-#{$size}-text-font-weight);
|
28 | line-height: nb-theme(tag-input-#{$size}-text-line-height);
|
29 |
|
30 | padding: nb-theme(tag-input-#{$size}-padding);
|
31 |
|
32 | &::placeholder {
|
33 | font-size: nb-theme(tag-input-#{$size}-placeholder-text-font-size);
|
34 | font-weight: nb-theme(tag-input-#{$size}-placeholder-text-font-weight);
|
35 | line-height: nb-theme(tag-input-#{$size}-placeholder-text-line-height);
|
36 | }
|
37 | }
|
38 | }
|
39 |
|
40 | @each $status in nb-get-statuses() {
|
41 | &.status-#{$status} {
|
42 | color: nb-theme(tag-input-#{$status}-text-color);
|
43 |
|
44 | &::placeholder {
|
45 | color: nb-theme(tag-input-#{$status}-placeholder-text-color);
|
46 | }
|
47 |
|
48 | &:disabled {
|
49 | color: nb-theme(tag-input-#{$status}-disabled-text-color);
|
50 |
|
51 | &::placeholder {
|
52 | color: nb-theme(tag-input-#{$status}-disabled-placeholder-text-color);
|
53 | }
|
54 | }
|
55 | }
|
56 | }
|
57 | }
|
58 | }
|