@taiga-ui/styles 5.23.0-canary.dd294f6 → 5.24.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/card-large.less +95 -0
- package/components/card-medium.less +26 -0
- package/components/card-row.less +29 -0
- package/components/card.less +23 -0
- package/mixins/browsers.less +6 -0
- package/mixins/browsers.scss +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
:where([tuiCardLarge]:not([tuiHeader])&) {
|
|
2
|
+
font: var(--tui-typography-body-m);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[tuiCardLarge][data-space]:where(*&) {
|
|
6
|
+
--t-space: 0.75rem;
|
|
7
|
+
--t-radius: var(--tui-radius-l);
|
|
8
|
+
--t-comp: -0.25rem;
|
|
9
|
+
--t-padding: 0.75rem;
|
|
10
|
+
--t-dim: calc(var(--t-padding) + var(--t-comp));
|
|
11
|
+
|
|
12
|
+
padding: var(--t-padding);
|
|
13
|
+
border-radius: var(--t-radius);
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
text-align: start;
|
|
16
|
+
|
|
17
|
+
&[data-space='normal'] {
|
|
18
|
+
--t-radius: 1.5rem;
|
|
19
|
+
--t-padding: 1.5rem;
|
|
20
|
+
--t-space: 1.5rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-space='compact'] {
|
|
24
|
+
--t-radius: 1rem;
|
|
25
|
+
--t-padding: 1.25rem;
|
|
26
|
+
--t-space: 1.25rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:not([tuiCell], [tuiHeader], [tuiForm]) {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: var(--t-space);
|
|
32
|
+
align-items: stretch;
|
|
33
|
+
|
|
34
|
+
> :last-child:not([tuiCell]) {
|
|
35
|
+
margin-block-start: auto;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[tuiHeader] {
|
|
40
|
+
padding: var(--t-dim) var(--t-padding);
|
|
41
|
+
|
|
42
|
+
[tuiButton]:last-child,
|
|
43
|
+
[tuiAvatar]:last-child,
|
|
44
|
+
[tuiSwitch]:last-child,
|
|
45
|
+
tui-segmented:last-child {
|
|
46
|
+
margin-inline-end: var(--t-comp);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
> [tuiHeader] {
|
|
51
|
+
margin: var(--t-comp) 0 calc(2 * var(--t-comp));
|
|
52
|
+
|
|
53
|
+
[tuiButton]:last-child,
|
|
54
|
+
[tuiAvatar]:last-child,
|
|
55
|
+
[tuiSwitch]:last-child,
|
|
56
|
+
tui-segmented:last-child {
|
|
57
|
+
margin-inline-end: var(--t-comp);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[tuiCell]:not(:where(tui-textfield *, [tuiStep])) {
|
|
62
|
+
inline-size: 100%;
|
|
63
|
+
margin: -0.5rem -0.5rem -0.75rem;
|
|
64
|
+
border-radius: var(--tui-radius-l);
|
|
65
|
+
|
|
66
|
+
--t-pad: 0.5rem;
|
|
67
|
+
|
|
68
|
+
&:last-of-type {
|
|
69
|
+
margin-block-end: -0.5rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[tuiHeader] + [tuiDescription] {
|
|
74
|
+
margin-block: -0.5rem -0.25rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[tuiHeader] + [tuiCell] {
|
|
78
|
+
margin-block-start: var(--t-comp);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[tuiAccessories] > [tuiButtonX] {
|
|
82
|
+
align-self: flex-start;
|
|
83
|
+
|
|
84
|
+
--t-size: 1.5rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
> footer {
|
|
88
|
+
margin-block-end: var(--t-comp);
|
|
89
|
+
|
|
90
|
+
> [tuiButton],
|
|
91
|
+
> [tuiBlock] {
|
|
92
|
+
margin-block-end: calc(-1 * var(--t-comp));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[tuiCardMedium]:where(*&) {
|
|
2
|
+
inline-size: calc(8.75rem * var(--tui-font-scale));
|
|
3
|
+
block-size: calc(8.75rem * var(--tui-font-scale));
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
padding: 0.75rem;
|
|
7
|
+
border-radius: var(--tui-radius-l);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
|
|
10
|
+
&[tuiTitle] {
|
|
11
|
+
padding: 0.625rem 0.75rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[tuiTitle] {
|
|
15
|
+
margin: -0.125rem 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[tuiSubtitle] {
|
|
19
|
+
color: var(--tui-text-primary);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[tuiTitle],
|
|
23
|
+
[tuiTitle]:not([tuiCell] *):not([tuiLabel] *) {
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[tuiCardRow]:where(*&) {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 3rem;
|
|
5
|
+
|
|
6
|
+
tui-icon {
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[tuiTitle] {
|
|
11
|
+
font: var(--tui-typography-body-s);
|
|
12
|
+
|
|
13
|
+
> :not([tuiSubtitle]) {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 0.25rem;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[tuiSubtitle] {
|
|
21
|
+
color: var(--tui-text-secondary);
|
|
22
|
+
font: var(--tui-typography-body-xs);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& > [tuiButton],
|
|
26
|
+
& > [tuiIconButton] {
|
|
27
|
+
margin-inline-start: auto;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import '@taiga-ui/styles/utils';
|
|
2
|
+
|
|
3
|
+
[tuiCardMedium],
|
|
4
|
+
[tuiCardLarge] {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 0;
|
|
13
|
+
background: var(--tui-background-elevation-2);
|
|
14
|
+
|
|
15
|
+
[tuiTitle],
|
|
16
|
+
[tuiSubtitle] {
|
|
17
|
+
max-inline-size: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> * {
|
|
21
|
+
.scrollbar-hidden();
|
|
22
|
+
}
|
|
23
|
+
}
|
package/mixins/browsers.less
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.liquid-glass-only(@ruleset) {
|
|
20
|
+
@supports (-webkit-touch-callout: none) and (position-anchor: --value) {
|
|
21
|
+
@ruleset();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
.chrome-only(@ruleset) {
|
|
20
26
|
@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)) {
|
|
21
27
|
@ruleset();
|
package/mixins/browsers.scss
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
@mixin liquid-glass-only {
|
|
20
|
+
@supports (-webkit-touch-callout: none) and (position-anchor: --value) {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
@mixin chrome-only {
|
|
20
26
|
@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)) {
|
|
21
27
|
@content;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/styles",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.24.0",
|
|
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.320.0"
|
|
29
29
|
}
|
|
30
30
|
}
|