@taiga-ui/styles 5.33.0 → 5.34.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.
- package/components/floating-container.less +9 -0
- package/components/form.less +1 -1
- package/components/icons.less +1 -1
- package/mixins/miscellaneous.less +1 -0
- package/mixins/miscellaneous.scss +1 -0
- package/mixins/theme/palette.less +3 -3
- package/mixins/theme/variables.less +3 -1
- package/package.json +1 -1
- package/taiga-ui-theme.css +11 -12
- package/theme/appearance/textfield.less +5 -3
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
font: var(--tui-typography-ui-s);
|
|
35
35
|
color: var(--tui-text-secondary);
|
|
36
36
|
|
|
37
|
+
// TODO: remove attribute in 6.0
|
|
38
|
+
tui-dropdown[tuiDropdownMobile] & {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
&.tui-enter,
|
|
38
43
|
&.tui-leave {
|
|
39
44
|
animation-name: tuiSlide;
|
|
@@ -76,3 +81,7 @@ tui-sheet-dialog [tuiFloatingContainer]:where(*&) {
|
|
|
76
81
|
margin-block-end: ~'calc(-1* max(1.5rem, env(safe-area-inset-bottom)))';
|
|
77
82
|
animation-timing-function: cubic-bezier(0.1, 0.8, 0.5, 1);
|
|
78
83
|
}
|
|
84
|
+
|
|
85
|
+
tui-dialog[data-appearance~='fullscreen'] [tuiFloatingContainer]:where(*&) {
|
|
86
|
+
margin-block-end: ~'calc(-1* max(1rem, env(safe-area-inset-bottom)))';
|
|
87
|
+
}
|
package/components/form.less
CHANGED
package/components/icons.less
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--t-icon-start: none;
|
|
22
22
|
--t-icon-end: none;
|
|
23
23
|
// Equals to 1 if the font offset is over 10px (150% OS scaling)
|
|
24
|
-
--t-zoom: ~'
|
|
24
|
+
--t-zoom: ~'clamp(0, (var(--tui-font-scale-factor, 1) - 1.4999) * 10000, 1)';
|
|
25
25
|
|
|
26
26
|
&::before,
|
|
27
27
|
&::after {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
--tui-text-primary: rgba(255, 255, 255, 1);
|
|
38
38
|
--tui-text-secondary: rgba(255, 255, 255, 0.72);
|
|
39
39
|
--tui-text-tertiary: rgba(255, 255, 255, 0.6);
|
|
40
|
-
--tui-text-action: #
|
|
40
|
+
--tui-text-action: #7693ff;
|
|
41
41
|
--tui-text-action-hover: #526ed3;
|
|
42
42
|
--tui-text-positive: #44c596;
|
|
43
43
|
--tui-text-positive-hover: #3aa981;
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
--tui-text-tertiary: rgba(27, 31, 59, 0.4);
|
|
95
95
|
--tui-text-primary-on-accent-1: #fff;
|
|
96
96
|
--tui-text-primary-on-accent-2: #fff;
|
|
97
|
-
--tui-text-action: #
|
|
97
|
+
--tui-text-action: #4c65c2;
|
|
98
98
|
--tui-text-action-hover: #6c86e2;
|
|
99
99
|
--tui-text-positive: #008764;
|
|
100
100
|
--tui-text-positive-hover: #7ac5aa;
|
|
101
|
-
--tui-text-negative: #
|
|
101
|
+
--tui-text-negative: #e01600;
|
|
102
102
|
--tui-text-negative-hover: #ff4d4d;
|
|
103
103
|
// Charts
|
|
104
104
|
--tui-chart-categorical-00: var(--tui-background-accent-1);
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
--tui-typography-family-text: 'Manrope', system-ui, sans-serif;
|
|
4
4
|
--tui-typography-family-display: 'Manrope', system-ui, sans-serif;
|
|
5
5
|
--tui-font-offset: calc(var(--t-font-offset, 0) * 1px);
|
|
6
|
-
--tui-font-scale: calc((22 + var(--t-font-offset, 0)) / 22);
|
|
6
|
+
--tui-font-scale-factor: calc((22 + var(--t-font-offset, 0)) / 22);
|
|
7
|
+
// @deprecated TODO: remove in v6
|
|
8
|
+
--tui-font-scale: var(--tui-font-scale-factor);
|
|
7
9
|
// Heading
|
|
8
10
|
--tui-typography-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(56 / 50) var(--tui-typography-family-display);
|
|
9
11
|
--tui-typography-heading-h2: bold calc(var(--tui-font-offset) + 2.75rem) / calc(48 / 44) var(--tui-typography-family-display);
|
package/package.json
CHANGED
package/taiga-ui-theme.css
CHANGED
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
--tui-typography-family-text: 'Manrope', system-ui, sans-serif;
|
|
25
25
|
--tui-typography-family-display: 'Manrope', system-ui, sans-serif;
|
|
26
26
|
--tui-font-offset: calc(var(--t-font-offset, 0) * 1px);
|
|
27
|
-
--tui-font-scale: calc((22 + var(--t-font-offset, 0)) / 22);
|
|
27
|
+
--tui-font-scale-factor: calc((22 + var(--t-font-offset, 0)) / 22);
|
|
28
|
+
--tui-font-scale: var(--tui-font-scale-factor);
|
|
28
29
|
--tui-typography-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(56 / 50) var(--tui-typography-family-display);
|
|
29
30
|
--tui-typography-heading-h2: bold calc(var(--tui-font-offset) + 2.75rem) / calc(48 / 44) var(--tui-typography-family-display);
|
|
30
31
|
--tui-typography-heading-h3: bold calc(var(--tui-font-offset) + 2.25rem) / calc(40 / 36) var(--tui-typography-family-display);
|
|
@@ -111,7 +112,7 @@
|
|
|
111
112
|
--tui-text-primary: #ffffff;
|
|
112
113
|
--tui-text-secondary: rgba(255, 255, 255, 0.72);
|
|
113
114
|
--tui-text-tertiary: rgba(255, 255, 255, 0.6);
|
|
114
|
-
--tui-text-action: #
|
|
115
|
+
--tui-text-action: #7693ff;
|
|
115
116
|
--tui-text-action-hover: #526ed3;
|
|
116
117
|
--tui-text-positive: #44c596;
|
|
117
118
|
--tui-text-positive-hover: #3aa981;
|
|
@@ -168,11 +169,11 @@
|
|
|
168
169
|
--tui-text-tertiary: rgba(27, 31, 59, 0.4);
|
|
169
170
|
--tui-text-primary-on-accent-1: #fff;
|
|
170
171
|
--tui-text-primary-on-accent-2: #fff;
|
|
171
|
-
--tui-text-action: #
|
|
172
|
+
--tui-text-action: #4c65c2;
|
|
172
173
|
--tui-text-action-hover: #6c86e2;
|
|
173
174
|
--tui-text-positive: #008764;
|
|
174
175
|
--tui-text-positive-hover: #7ac5aa;
|
|
175
|
-
--tui-text-negative: #
|
|
176
|
+
--tui-text-negative: #e01600;
|
|
176
177
|
--tui-text-negative-hover: #ff4d4d;
|
|
177
178
|
--tui-chart-categorical-00: var(--tui-background-accent-1);
|
|
178
179
|
--tui-chart-categorical-01: #ea97c4;
|
|
@@ -253,11 +254,11 @@
|
|
|
253
254
|
--tui-text-tertiary: rgba(27, 31, 59, 0.4);
|
|
254
255
|
--tui-text-primary-on-accent-1: #fff;
|
|
255
256
|
--tui-text-primary-on-accent-2: #fff;
|
|
256
|
-
--tui-text-action: #
|
|
257
|
+
--tui-text-action: #4c65c2;
|
|
257
258
|
--tui-text-action-hover: #6c86e2;
|
|
258
259
|
--tui-text-positive: #008764;
|
|
259
260
|
--tui-text-positive-hover: #7ac5aa;
|
|
260
|
-
--tui-text-negative: #
|
|
261
|
+
--tui-text-negative: #e01600;
|
|
261
262
|
--tui-text-negative-hover: #ff4d4d;
|
|
262
263
|
--tui-chart-categorical-00: var(--tui-background-accent-1);
|
|
263
264
|
--tui-chart-categorical-01: #ea97c4;
|
|
@@ -1137,11 +1138,13 @@ input[type='radio'][data-appearance='secondary'] {
|
|
|
1137
1138
|
color: var(--tui-text-secondary);
|
|
1138
1139
|
}
|
|
1139
1140
|
[tuiAppearance][data-appearance='textfield']:focus-visible:not([data-focus='false']) {
|
|
1141
|
+
background-color: transparent !important;
|
|
1140
1142
|
box-shadow: none;
|
|
1141
1143
|
outline: 0.125rem solid var(--tui-background-accent-1);
|
|
1142
1144
|
outline-offset: -0.125rem;
|
|
1143
1145
|
}
|
|
1144
1146
|
[tuiAppearance][data-appearance='textfield'][data-focus='true'] {
|
|
1147
|
+
background-color: transparent !important;
|
|
1145
1148
|
box-shadow: none;
|
|
1146
1149
|
outline: 0.125rem solid var(--tui-background-accent-1);
|
|
1147
1150
|
outline-offset: -0.125rem;
|
|
@@ -1188,11 +1191,7 @@ input[type='radio'][data-appearance='secondary'] {
|
|
|
1188
1191
|
[tuiTheme='dark'][tuiAppearance][data-appearance='textfield'][data-state='hover'] {
|
|
1189
1192
|
background-color: var(--tui-background-neutral-1-hover);
|
|
1190
1193
|
}
|
|
1191
|
-
[tuiTheme='
|
|
1192
|
-
[tuiTheme='
|
|
1193
|
-
background-color: transparent !important;
|
|
1194
|
-
}
|
|
1195
|
-
[tuiTheme='dark'] [tuiAppearance][data-appearance='textfield'][data-focus='true'],
|
|
1196
|
-
[tuiTheme='dark'][tuiAppearance][data-appearance='textfield'][data-focus='true'] {
|
|
1194
|
+
[tuiTheme='light'] [tuiAppearance][data-appearance='textfield'],
|
|
1195
|
+
[tuiTheme='light'][tuiAppearance][data-appearance='textfield'] {
|
|
1197
1196
|
background-color: transparent !important;
|
|
1198
1197
|
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.appearance-focus({
|
|
32
|
+
background-color: transparent !important;
|
|
32
33
|
box-shadow: none;
|
|
33
34
|
outline: 0.125rem solid var(--tui-background-accent-1);
|
|
34
35
|
outline-offset: -0.125rem;
|
|
@@ -73,8 +74,9 @@
|
|
|
73
74
|
.appearance-hover({
|
|
74
75
|
background-color: var(--tui-background-neutral-1-hover);
|
|
75
76
|
});
|
|
77
|
+
}
|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
[tuiTheme='light'] [tuiAppearance][data-appearance='textfield'],
|
|
80
|
+
[tuiTheme='light'][tuiAppearance][data-appearance='textfield'] {
|
|
81
|
+
background-color: transparent !important;
|
|
80
82
|
}
|