@taiga-ui/core 4.55.0 → 4.57.0

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.
@@ -6,8 +6,8 @@ tui-textfield {
6
6
 
7
7
  --t-height: var(--tui-height-l);
8
8
  --t-padding: var(--tui-padding-l);
9
- --t-label: -0.7em;
10
- --t-label-size: 0.83em;
9
+ --t-label-y: -0.75rem;
10
+ --t-label-font: var(--tui-font-text-s);
11
11
  --t-end: ~'0rem';
12
12
  --t-start: ~'0rem';
13
13
 
@@ -133,6 +133,8 @@ tui-textfield {
133
133
  &[data-size='m'] {
134
134
  --t-height: var(--tui-height-m);
135
135
  --t-padding: var(--tui-padding-m);
136
+ --t-label-font: var(--tui-font-text-xs);
137
+ --t-label-y: -0.5625rem;
136
138
 
137
139
  border-radius: var(--tui-radius-m);
138
140
  font: var(--tui-font-text-ui-s);
@@ -307,8 +309,9 @@ tui-textfield {
307
309
  &:-webkit-autofill,
308
310
  &:not(._empty):not(:placeholder-shown) {
309
311
  & ~ label {
310
- font-size: var(--t-label-size);
311
- transform: translateY(var(--t-label));
312
+ font: var(--t-label-font);
313
+ line-height: var(--t-height);
314
+ transform: translateY(var(--t-label-y));
312
315
  }
313
316
 
314
317
  &:not(:disabled)[data-mode~='invalid'] ~ label,
@@ -330,8 +333,9 @@ tui-textfield {
330
333
 
331
334
  & ~ label {
332
335
  color: var(--tui-text-primary) !important;
333
- font-size: var(--t-label-size);
334
- transform: translateY(var(--t-label));
336
+ font: var(--t-label-font);
337
+ line-height: var(--t-height);
338
+ transform: translateY(var(--t-label-y));
335
339
  }
336
340
  });
337
341
  }
@@ -50,21 +50,16 @@
50
50
  margin-inline-start: calc(var(--tui-radius-m) / 2 + var(--t-offset));
51
51
  }
52
52
 
53
- /* TODO: add :has([tuiInputSlider]) */
54
- tui-textfield + & {
55
- --t-offset: calc(var(--tui-radius-m) / 2 + @thumb / 2);
56
- }
57
-
58
- /* TODO: add :has([tuiInputSlider]) */
59
- tui-textfield[data-size='l'] + & {
60
- --t-offset: calc(var(--tui-radius-l) / 2 + @thumb / 2);
61
- }
62
-
63
53
  tui-input-range:not([new]) + &, /* TODO(v5): delete */
64
54
  tui-range + & {
65
55
  --t-offset: @thumb;
66
56
  }
67
57
 
58
+ /* TODO: add :has([tuiInputSlider]) */
59
+ tui-textfield + & {
60
+ --t-offset: calc(@track-inset[@@input-size] + @thumb / 2);
61
+ }
62
+
68
63
  tui-input-range[new] + & {
69
64
  --t-offset: calc(@track-inset[@@input-size] + @thumb);
70
65
  }
@@ -62,7 +62,7 @@
62
62
  &:-webkit-autofill {
63
63
  -webkit-text-fill-color: var(--tui-text-primary) !important;
64
64
  caret-color: var(--tui-text-primary) !important;
65
- box-shadow: 0 0 0 100rem var(--tui-service-autofill-background) inset !important;
65
+ box-shadow: 0 0 0 1000rem var(--tui-service-autofill-background) inset !important;
66
66
  transition: background-color 600000s 0s;
67
67
  }
68
68
  }