@taiga-ui/styles 5.1.0 → 5.2.0-canary.0a441e4
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/button.less +15 -0
- package/components/notification.less +12 -4
- package/package.json +2 -2
- package/theme/variables.less +6 -1
package/components/button.less
CHANGED
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
&[data-icon-start='font']::before,
|
|
47
|
+
&[data-icon-end='font']::after {
|
|
48
|
+
font-size: 1.5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
46
51
|
&[data-size='xs'] {
|
|
47
52
|
--t-size: var(--tui-height-xs);
|
|
48
53
|
--t-radius: var(--tui-radius-xs);
|
|
@@ -73,6 +78,11 @@
|
|
|
73
78
|
&:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance^='action'])::after {
|
|
74
79
|
font-size: 1rem;
|
|
75
80
|
}
|
|
81
|
+
|
|
82
|
+
&[data-icon-start='font']::before,
|
|
83
|
+
&[data-icon-end='font']::after {
|
|
84
|
+
font-size: 1rem;
|
|
85
|
+
}
|
|
76
86
|
}
|
|
77
87
|
|
|
78
88
|
&[data-size='m'] {
|
|
@@ -84,6 +94,11 @@
|
|
|
84
94
|
|
|
85
95
|
font: var(--tui-typography-body-m);
|
|
86
96
|
font-weight: bold;
|
|
97
|
+
|
|
98
|
+
&[data-icon-start='font']::before,
|
|
99
|
+
&[data-icon-end='font']::after {
|
|
100
|
+
font-size: 1.5rem;
|
|
101
|
+
}
|
|
87
102
|
}
|
|
88
103
|
|
|
89
104
|
&._loading {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
display: flow-root;
|
|
29
29
|
max-block-size: 100%;
|
|
30
30
|
color: var(--tui-text-primary);
|
|
31
|
-
padding: var(--tui-padding-l);
|
|
31
|
+
padding: var(--t-offset) var(--tui-padding-l);
|
|
32
32
|
font: var(--tui-typography-body-m);
|
|
33
33
|
border-radius: var(--tui-radius-l);
|
|
34
34
|
box-sizing: border-box;
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
border-inline-start: var(--t-start) solid transparent;
|
|
38
38
|
border-inline-end: var(--t-end) solid transparent;
|
|
39
39
|
|
|
40
|
+
--t-offset: calc((var(--t-height) - var(--tui-lh)) / 2);
|
|
41
|
+
--t-height: var(--tui-height-l);
|
|
42
|
+
|
|
40
43
|
.interactive({
|
|
41
44
|
cursor: pointer;
|
|
42
45
|
});
|
|
@@ -55,6 +58,8 @@
|
|
|
55
58
|
&::before {
|
|
56
59
|
position: absolute;
|
|
57
60
|
inset-inline-start: -1rem;
|
|
61
|
+
inset-block-start: calc(var(--t-offset) + var(--tui-lh));
|
|
62
|
+
transform: translateY(-100%);
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
&::after {
|
|
@@ -69,16 +74,17 @@
|
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
&[data-size='s'] {
|
|
72
|
-
padding:
|
|
77
|
+
padding: var(--t-offset) 0.5rem;
|
|
73
78
|
font: var(--tui-typography-body-s);
|
|
74
79
|
border-radius: var(--tui-radius-m);
|
|
75
80
|
|
|
81
|
+
--t-height: var(--tui-height-s);
|
|
82
|
+
|
|
76
83
|
&[data-icon-start] {
|
|
77
84
|
--t-start: 1.5rem;
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
&::before {
|
|
81
|
-
inset-block-start: 0.5rem;
|
|
82
88
|
inset-inline-start: -1rem;
|
|
83
89
|
font-size: 1rem;
|
|
84
90
|
}
|
|
@@ -112,10 +118,12 @@
|
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
&[data-size='m'] {
|
|
115
|
-
padding: var(--tui-padding-m);
|
|
121
|
+
padding: var(--t-offset) var(--tui-padding-m);
|
|
116
122
|
font: var(--tui-typography-body-s);
|
|
117
123
|
border-radius: var(--tui-radius-m);
|
|
118
124
|
|
|
125
|
+
--t-height: var(--tui-height-m);
|
|
126
|
+
|
|
119
127
|
&[data-icon-start] {
|
|
120
128
|
--t-start: 1.625rem;
|
|
121
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/styles",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-canary.0a441e4",
|
|
4
4
|
"description": "Framework-agnostic package with styles for Taiga UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"./*": "./*"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@taiga-ui/design-tokens": "~0.
|
|
28
|
+
"@taiga-ui/design-tokens": "~0.293.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/theme/variables.less
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--tui-typography-family-display: 'Manrope', system-ui, sans-serif;
|
|
9
9
|
--tui-font-offset: ~'0rem';
|
|
10
10
|
// Heading
|
|
11
|
-
--tui-typography-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(
|
|
11
|
+
--tui-typography-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(56 / 50)
|
|
12
12
|
var(--tui-typography-family-display);
|
|
13
13
|
--tui-typography-heading-h2: bold calc(var(--tui-font-offset) + 2.75rem) / calc(48 / 44)
|
|
14
14
|
var(--tui-typography-family-display);
|
|
@@ -58,10 +58,15 @@
|
|
|
58
58
|
--tui-stroke-width: 0.125rem;
|
|
59
59
|
--tui-duration: 0.3s;
|
|
60
60
|
--tui-disabled-opacity: 0.56;
|
|
61
|
+
--tui-lh: 1.4em;
|
|
61
62
|
// logical
|
|
62
63
|
--tui-inline-start: left;
|
|
63
64
|
--tui-inline-end: right;
|
|
64
65
|
--tui-inline: 1;
|
|
66
|
+
|
|
67
|
+
@supports (font-size: 1lh) {
|
|
68
|
+
--tui-lh: 1lh;
|
|
69
|
+
}
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
[dir='rtl'] {
|