@taiga-ui/styles 4.69.0 → 5.0.0-canary.0dd40e8
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/appearance.less +51 -0
- package/components/avatar.less +188 -0
- package/components/badge.less +128 -0
- package/components/block.less +118 -0
- package/components/button.less +135 -0
- package/components/checkbox.less +84 -0
- package/components/chip.less +131 -0
- package/components/comment.less +64 -0
- package/components/compass.less +49 -0
- package/components/group.less +172 -0
- package/components/icon.less +83 -0
- package/components/icons.less +79 -0
- package/components/label.less +51 -0
- package/components/like.less +67 -0
- package/components/link.less +69 -0
- package/components/message.less +33 -0
- package/components/notification.less +184 -0
- package/components/pin.less +164 -0
- package/components/progress-bar.less +117 -0
- package/components/radio.less +59 -0
- package/components/status.less +40 -0
- package/components/switch.less +103 -0
- package/components/textfield.less +362 -0
- package/components/title.less +80 -0
- package/components/toast.less +44 -0
- package/mixins/appearance.less +56 -0
- package/mixins/appearance.scss +57 -0
- package/mixins/browsers.less +23 -0
- package/mixins/browsers.scss +23 -0
- package/mixins/date-picker.less +152 -0
- package/mixins/miscellaneous.less +168 -0
- package/mixins/miscellaneous.scss +161 -0
- package/mixins/picker.less +200 -0
- package/mixins/picker.scss +199 -0
- package/mixins/slider.less +67 -0
- package/mixins/slider.scss +67 -0
- package/package.json +9 -2
- package/taiga-ui-fonts.less +4 -0
- package/taiga-ui-theme.less +4 -0
- package/theme/appearance/accent.less +14 -0
- package/theme/appearance/action.less +38 -0
- package/theme/appearance/flat.less +23 -0
- package/theme/appearance/floating.less +21 -0
- package/theme/appearance/glass.less +30 -0
- package/theme/appearance/outline.less +78 -0
- package/theme/appearance/primary.less +48 -0
- package/theme/appearance/secondary.less +77 -0
- package/theme/appearance/status.less +125 -0
- package/theme/appearance/table.less +68 -0
- package/theme/appearance/textfield.less +80 -0
- package/theme/appearance.less +12 -0
- package/theme/palette.less +161 -0
- package/theme/variables.less +57 -0
- package/utils.less +7 -0
- package/utils.scss +6 -0
- package/variables/media.less +23 -0
- package/variables/media.scss +23 -0
- package/basic/keyframes.less +0 -19
- package/basic/main.less +0 -80
- package/markup/tui-container.less +0 -64
- package/markup/tui-form.less +0 -145
- package/markup/tui-island.less +0 -200
- package/markup/tui-list.less +0 -136
- package/markup/tui-mobile-only.less +0 -5
- package/markup/tui-required.less +0 -13
- package/markup/tui-row.less +0 -139
- package/markup/tui-skeleton.less +0 -43
- package/markup/tui-space.less +0 -52
- package/markup/tui-table.less +0 -184
- package/markup/tui-text.less +0 -61
- package/project.json +0 -35
- package/taiga-ui-global.less +0 -14
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
@import 'miscellaneous';
|
|
2
|
+
|
|
3
|
+
// @deprecated
|
|
4
|
+
@mixin picker($itemSize) {
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
font: var(--tui-font-body-m);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.t-row {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
height: 2.25rem;
|
|
15
|
+
isolation: isolate;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.t-item {
|
|
19
|
+
position: relative;
|
|
20
|
+
flex: 1;
|
|
21
|
+
line-height: 2rem;
|
|
22
|
+
border-radius: var(--tui-radius-m);
|
|
23
|
+
|
|
24
|
+
&:before,
|
|
25
|
+
&:after {
|
|
26
|
+
@include fullsize(absolute, inset);
|
|
27
|
+
|
|
28
|
+
content: '';
|
|
29
|
+
z-index: -1;
|
|
30
|
+
border-radius: var(--tui-radius-m);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:after {
|
|
34
|
+
border-radius: 0.5rem;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.t-cell {
|
|
39
|
+
position: relative;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
width: $itemSize;
|
|
44
|
+
text-align: center;
|
|
45
|
+
outline: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
background-clip: content-box;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
border: 0.125rem solid transparent;
|
|
50
|
+
|
|
51
|
+
&:before {
|
|
52
|
+
content: '';
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 0;
|
|
55
|
+
left: 0;
|
|
56
|
+
right: 0;
|
|
57
|
+
bottom: 0;
|
|
58
|
+
z-index: -1;
|
|
59
|
+
border-radius: var(--tui-radius-m);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&_today:after {
|
|
63
|
+
@include center-left();
|
|
64
|
+
content: '';
|
|
65
|
+
bottom: 0.3125rem;
|
|
66
|
+
height: 0.125rem;
|
|
67
|
+
width: 0.75rem;
|
|
68
|
+
border-radius: 0.375rem;
|
|
69
|
+
background: var(--tui-text-primary);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&_interval {
|
|
73
|
+
&:before {
|
|
74
|
+
background: var(--tui-background-base-alt);
|
|
75
|
+
|
|
76
|
+
:host._single & {
|
|
77
|
+
background: var(--tui-background-neutral-1-hover);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:not(:last-child):before {
|
|
82
|
+
right: -0.1875rem;
|
|
83
|
+
border-top-right-radius: 0;
|
|
84
|
+
border-bottom-right-radius: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:not([data-range='start']):not(:first-child):before {
|
|
88
|
+
border-top-left-radius: 0;
|
|
89
|
+
border-bottom-left-radius: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:last-child:first-child:before {
|
|
93
|
+
right: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:first-child > .t-item {
|
|
97
|
+
border-top-left-radius: var(--tui-radius-m);
|
|
98
|
+
border-bottom-left-radius: var(--tui-radius-m);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:last-child > .t-item {
|
|
102
|
+
border-top-right-radius: var(--tui-radius-m);
|
|
103
|
+
border-bottom-right-radius: var(--tui-radius-m);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& > .t-item {
|
|
107
|
+
border-radius: 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&[data-range] {
|
|
112
|
+
&:after {
|
|
113
|
+
background: var(--tui-text-primary-on-accent-1);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& > .t-item {
|
|
117
|
+
color: var(--tui-text-primary-on-accent-1);
|
|
118
|
+
|
|
119
|
+
&:before,
|
|
120
|
+
&:after {
|
|
121
|
+
background: var(--tui-background-accent-1);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:hover > .t-item:before,
|
|
126
|
+
&:hover > .t-item:after {
|
|
127
|
+
background: var(--tui-background-accent-1-hover);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:active > .t-item:before,
|
|
131
|
+
&:active > .t-item:after {
|
|
132
|
+
background: var(--tui-background-accent-1-pressed);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&[data-range='end'] {
|
|
137
|
+
&:before {
|
|
138
|
+
background: var(--tui-background-base-alt);
|
|
139
|
+
|
|
140
|
+
:host._single & {
|
|
141
|
+
background: var(--tui-background-neutral-1-hover);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&:not(:first-child):before {
|
|
146
|
+
border-top-left-radius: 0;
|
|
147
|
+
border-bottom-left-radius: 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&[data-range='end'] > .t-item {
|
|
152
|
+
&:before {
|
|
153
|
+
left: 0.625rem;
|
|
154
|
+
border-top-left-radius: 0;
|
|
155
|
+
border-bottom-left-radius: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:after {
|
|
159
|
+
left: -2rem;
|
|
160
|
+
right: 100%;
|
|
161
|
+
transform: translateX(1.6rem) scaleY(0.83) scaleX(0.5) rotate(45deg);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&[data-range='start'] > .t-item {
|
|
166
|
+
&:before {
|
|
167
|
+
right: 0.625rem;
|
|
168
|
+
border-top-right-radius: 0;
|
|
169
|
+
border-bottom-right-radius: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:after {
|
|
173
|
+
left: 100%;
|
|
174
|
+
right: -2rem;
|
|
175
|
+
transform: translateX(-1.6rem) scaleY(0.83) scaleX(0.5) rotate(45deg);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&[data-range='single'] > .t-item:after {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&_disabled {
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
|
|
186
|
+
& > .t-item {
|
|
187
|
+
opacity: 0.36;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:hover:not([data-range]) > .t-item {
|
|
192
|
+
background: var(--tui-background-neutral-1-hover);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:active:not([data-range]) > .t-item {
|
|
196
|
+
background: var(--tui-background-neutral-1-pressed);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@track-inset: {
|
|
2
|
+
@s: 0.625rem;
|
|
3
|
+
@m: 0.75rem;
|
|
4
|
+
@l: 1rem;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
@thumb-diameter: var(--tui-thumb-size, 0.75rem);
|
|
8
|
+
@thumb-radius: calc(@thumb-diameter / 2);
|
|
9
|
+
@track-thickness: max(calc(@thumb-radius - 0.25rem), 0.125rem);
|
|
10
|
+
|
|
11
|
+
.tui-slider-ticks-labels() {
|
|
12
|
+
--t-offset: @thumb-radius;
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
font: var(--tui-font-body-s);
|
|
16
|
+
color: var(--tui-text-secondary);
|
|
17
|
+
margin: 0.25rem var(--t-offset) 0;
|
|
18
|
+
|
|
19
|
+
& > * {
|
|
20
|
+
position: relative;
|
|
21
|
+
flex: 2;
|
|
22
|
+
text-align: center;
|
|
23
|
+
|
|
24
|
+
&:first-child {
|
|
25
|
+
inset-inline-start: calc(-1 * var(--t-offset));
|
|
26
|
+
flex: 1;
|
|
27
|
+
text-align: start;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:last-child {
|
|
31
|
+
inset-inline-end: calc(-1 * var(--t-offset));
|
|
32
|
+
flex: 1;
|
|
33
|
+
text-align: end;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
tui-range + & {
|
|
38
|
+
--t-offset: @thumb-diameter;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
42
|
+
tui-textfield[data-size='l'] + & {
|
|
43
|
+
--t-offset: calc(@track-inset[@l] + @thumb-radius);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
47
|
+
tui-textfield[data-size='m'] + & {
|
|
48
|
+
--t-offset: calc(@track-inset[@m] + @thumb-radius);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
52
|
+
tui-textfield[data-size='s'] + & {
|
|
53
|
+
--t-offset: calc(@track-inset[@s] + @thumb-radius);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
tui-input-range[data-size='l'] + & {
|
|
57
|
+
--t-offset: calc(@track-inset[@l] + @thumb-diameter);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
tui-input-range[data-size='m'] + & {
|
|
61
|
+
--t-offset: calc(@track-inset[@m] + @thumb-diameter);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
tui-input-range[data-size='s'] + & {
|
|
65
|
+
--t-offset: calc(@track-inset[@s] + @thumb-diameter);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
$track-inset: (
|
|
2
|
+
's': 0.625rem,
|
|
3
|
+
'm': 0.75rem,
|
|
4
|
+
'l': 1rem,
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
$thumb-diameter: var(--tui-thumb-size, 0.75rem);
|
|
8
|
+
$thumb-radius: calc($thumb-diameter / 2);
|
|
9
|
+
$track-thickness: max(calc($thumb-radius - 0.25rem), 0.125rem);
|
|
10
|
+
|
|
11
|
+
@mixin tui-slider-ticks-labels() {
|
|
12
|
+
--t-offset: $thumb-radius;
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
font: var(--tui-font-body-s);
|
|
16
|
+
color: var(--tui-text-secondary);
|
|
17
|
+
margin: 0.25rem var(--t-offset) 0;
|
|
18
|
+
|
|
19
|
+
& > * {
|
|
20
|
+
position: relative;
|
|
21
|
+
flex: 2;
|
|
22
|
+
text-align: center;
|
|
23
|
+
|
|
24
|
+
&:first-child {
|
|
25
|
+
inset-inline-start: calc(-1 * var(--t-offset));
|
|
26
|
+
flex: 1;
|
|
27
|
+
text-align: start;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:last-child {
|
|
31
|
+
inset-inline-end: calc(-1 * var(--t-offset));
|
|
32
|
+
flex: 1;
|
|
33
|
+
text-align: end;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
tui-range + & {
|
|
38
|
+
--t-offset: $thumb-diameter;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
42
|
+
tui-textfield[data-size='l'] + & {
|
|
43
|
+
--t-offset: calc(map-get($track-inset, 'l') + $thumb-radius);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
47
|
+
tui-textfield[data-size='m'] + & {
|
|
48
|
+
--t-offset: calc(map-get($track-inset, 'm') + $thumb-radius);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* TODO: add :has([tuiInputSlider]) */
|
|
52
|
+
tui-textfield[data-size='s'] + & {
|
|
53
|
+
--t-offset: calc(map-get($track-inset, 's') + $thumb-radius);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
tui-input-range[data-size='l'] + & {
|
|
57
|
+
--t-offset: calc(map-get($track-inset, 'l') + $thumb-diameter);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
tui-input-range[data-size='m'] + & {
|
|
61
|
+
--t-offset: calc(map-get($track-inset, 'm') + $thumb-diameter);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
tui-input-range[data-size='s'] + & {
|
|
65
|
+
--t-offset: calc(map-get($track-inset, 's') + $thumb-diameter);
|
|
66
|
+
}
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/styles",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.0.0-canary.0dd40e8",
|
|
4
|
+
"description": "Framework-agnostic package with styles for Taiga UI",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./*": "./*"
|
|
8
|
+
},
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"@taiga-ui/design-tokens": "~0.277.0"
|
|
11
|
+
}
|
|
5
12
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='accent'] {
|
|
4
|
+
background: var(--tui-background-accent-2);
|
|
5
|
+
color: var(--tui-text-primary-on-accent-2);
|
|
6
|
+
|
|
7
|
+
.appearance-hover({
|
|
8
|
+
background: var(--tui-background-accent-2-hover);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
.appearance-active({
|
|
12
|
+
background: var(--tui-background-accent-2-pressed);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[tuiAppearance][data-appearance='action'] {
|
|
2
|
+
color: var(--tui-text-action);
|
|
3
|
+
background: transparent;
|
|
4
|
+
|
|
5
|
+
.appearance-hover({
|
|
6
|
+
color: var(--tui-text-action-hover);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
.appearance-active({
|
|
10
|
+
color: var(--tui-text-action-hover);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[tuiAppearance][data-appearance='action-destructive'] {
|
|
15
|
+
color: var(--tui-text-negative);
|
|
16
|
+
background: transparent;
|
|
17
|
+
|
|
18
|
+
.appearance-hover({
|
|
19
|
+
color: var(--tui-text-negative-hover);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
.appearance-active({
|
|
23
|
+
color: var(--tui-text-negative-hover);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[tuiAppearance][data-appearance='action-grayscale'] {
|
|
28
|
+
color: var(--tui-text-secondary);
|
|
29
|
+
background: transparent;
|
|
30
|
+
|
|
31
|
+
.appearance-hover({
|
|
32
|
+
color: var(--tui-text-primary);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
.appearance-active({
|
|
36
|
+
color: var(--tui-text-primary);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='flat'],
|
|
4
|
+
[tuiAppearance][data-appearance='flat-destructive'],
|
|
5
|
+
[tuiAppearance][data-appearance='flat-grayscale'] {
|
|
6
|
+
color: var(--tui-text-action);
|
|
7
|
+
|
|
8
|
+
.appearance-hover({
|
|
9
|
+
background: var(--tui-background-neutral-1-hover);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
.appearance-active({
|
|
13
|
+
background: var(--tui-background-neutral-1-pressed);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[tuiAppearance][data-appearance='flat-destructive'] {
|
|
18
|
+
color: var(--tui-text-negative);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[tuiAppearance][data-appearance='flat-grayscale'] {
|
|
22
|
+
color: var(--tui-text-primary);
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='floating'] {
|
|
4
|
+
background: var(--tui-background-elevation-2);
|
|
5
|
+
color: var(--tui-text-primary);
|
|
6
|
+
box-shadow: var(--tui-shadow-small);
|
|
7
|
+
|
|
8
|
+
&::before,
|
|
9
|
+
&::after {
|
|
10
|
+
transition-property: color;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.appearance-hover({
|
|
14
|
+
box-shadow: var(--tui-shadow-small-hover);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
.appearance-active({
|
|
18
|
+
background: var(--tui-background-base-alt);
|
|
19
|
+
box-shadow: var(--tui-shadow-small);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='glass'] {
|
|
4
|
+
background: rgba(0, 0, 0, 0.4);
|
|
5
|
+
color: #fff;
|
|
6
|
+
backdrop-filter: blur(1rem);
|
|
7
|
+
|
|
8
|
+
--tui-border-focus: rgba(255, 255, 255, 0.64);
|
|
9
|
+
|
|
10
|
+
.appearance-hover({
|
|
11
|
+
background: rgba(0, 0, 0, 0.48);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
.appearance-active({
|
|
15
|
+
background: rgba(0, 0, 0, 0.6);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[tuiTheme='dark'] [tuiAppearance][data-appearance='glass'],
|
|
20
|
+
[tuiTheme='dark'][tuiAppearance][data-appearance='glass'] {
|
|
21
|
+
background: rgba(255, 255, 255, 0.3);
|
|
22
|
+
|
|
23
|
+
.appearance-hover({
|
|
24
|
+
background: rgba(255, 255, 255, 0.4);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
.appearance-active({
|
|
28
|
+
background: rgba(255, 255, 255, 0.5);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='outline'],
|
|
4
|
+
[tuiAppearance][data-appearance='outline-destructive'],
|
|
5
|
+
[tuiAppearance][data-appearance='outline-grayscale'] {
|
|
6
|
+
--t-bs: var(--tui-border-normal);
|
|
7
|
+
|
|
8
|
+
color: var(--tui-text-action);
|
|
9
|
+
box-shadow: inset 0 0 0 1px var(--t-bs);
|
|
10
|
+
|
|
11
|
+
&:checked:not([data-mode]),
|
|
12
|
+
&[data-mode~='checked'] {
|
|
13
|
+
--t-bs: var(--tui-background-accent-1);
|
|
14
|
+
|
|
15
|
+
box-shadow: inset 0 0 0 2px var(--t-bs);
|
|
16
|
+
|
|
17
|
+
.appearance-hover({
|
|
18
|
+
--t-bs: var(--tui-background-accent-1-hover);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
.appearance-active({
|
|
22
|
+
--t-bs: var(--tui-background-accent-1-pressed);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.appearance-invalid({
|
|
27
|
+
box-shadow: inset 0 0 0 1px var(--tui-status-negative-pale-hover);
|
|
28
|
+
|
|
29
|
+
&:checked,
|
|
30
|
+
&[data-mode~='checked'] {
|
|
31
|
+
box-shadow: inset 0 0 0 2px var(--tui-status-negative);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
.appearance-hover({
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
--t-bs: var(--tui-border-hover);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
.appearance-active({
|
|
41
|
+
background: var(--tui-background-neutral-1);
|
|
42
|
+
--t-bs: var(--tui-border-hover);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[tuiAppearance][data-appearance='outline-grayscale'] {
|
|
47
|
+
color: var(--tui-text-primary);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[tuiAppearance][data-appearance='outline-destructive'] {
|
|
51
|
+
color: var(--tui-text-negative);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[tuiAppearance][data-appearance='icon'],
|
|
55
|
+
[tuiAppearance][data-appearance='outline-grayscale'],
|
|
56
|
+
[tuiAppearance][data-appearance='floating'] {
|
|
57
|
+
color: var(--tui-text-primary);
|
|
58
|
+
|
|
59
|
+
&::before,
|
|
60
|
+
&::after {
|
|
61
|
+
transition-property: color, transform;
|
|
62
|
+
color: var(--tui-text-tertiary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.appearance-hover({
|
|
66
|
+
&:before,
|
|
67
|
+
&:after {
|
|
68
|
+
color: var(--tui-text-secondary);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
.appearance-active({
|
|
73
|
+
&:before,
|
|
74
|
+
&:after {
|
|
75
|
+
color: var(--tui-text-primary);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='primary'] {
|
|
4
|
+
--t-bg: var(--tui-background-accent-1);
|
|
5
|
+
|
|
6
|
+
background: var(--t-bg);
|
|
7
|
+
color: var(--tui-text-primary-on-accent-1);
|
|
8
|
+
|
|
9
|
+
.appearance-invalid({
|
|
10
|
+
background: var(--tui-status-negative);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
.appearance-hover({
|
|
14
|
+
--t-bg: var(--tui-background-accent-1-hover);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
.appearance-active({
|
|
18
|
+
--t-bg: var(--tui-background-accent-1-pressed);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[tuiAppearance][data-appearance='primary-destructive'] {
|
|
23
|
+
color: #fff;
|
|
24
|
+
background: var(--tui-status-negative);
|
|
25
|
+
|
|
26
|
+
.appearance-hover({
|
|
27
|
+
filter: saturate(1) brightness(1.3);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
.appearance-active({
|
|
31
|
+
filter: saturate(0.8) brightness(1);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[tuiAppearance][data-appearance='primary-grayscale'] {
|
|
36
|
+
--tui-border-focus: #979797;
|
|
37
|
+
|
|
38
|
+
background: var(--tui-background-accent-opposite);
|
|
39
|
+
color: var(--tui-background-base);
|
|
40
|
+
|
|
41
|
+
.appearance-hover({
|
|
42
|
+
background: var(--tui-background-accent-opposite-hover);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
.appearance-active({
|
|
46
|
+
background: var(--tui-background-accent-opposite-pressed);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@import '../../utils.less';
|
|
2
|
+
|
|
3
|
+
[tuiAppearance][data-appearance='secondary'],
|
|
4
|
+
[tuiAppearance][data-appearance='secondary-destructive'],
|
|
5
|
+
[tuiAppearance][data-appearance='secondary-grayscale'] {
|
|
6
|
+
background: var(--tui-background-neutral-1);
|
|
7
|
+
color: var(--tui-text-action);
|
|
8
|
+
|
|
9
|
+
.appearance-hover({
|
|
10
|
+
background: var(--tui-background-neutral-1-hover);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
.appearance-active({
|
|
14
|
+
background: var(--tui-background-neutral-1-pressed);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
&:checked:not([data-mode]),
|
|
18
|
+
&[data-mode~='checked'],
|
|
19
|
+
&[type='checkbox']:indeterminate:not([data-mode]) {
|
|
20
|
+
background: var(--tui-background-accent-1);
|
|
21
|
+
color: var(--tui-text-primary-on-accent-1);
|
|
22
|
+
|
|
23
|
+
.appearance-hover({
|
|
24
|
+
background: var(--tui-background-accent-1-hover);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
.appearance-active({
|
|
28
|
+
background: var(--tui-background-accent-1-pressed);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
.appearance-invalid({
|
|
32
|
+
background: var(--tui-status-negative);
|
|
33
|
+
color: #fff;
|
|
34
|
+
|
|
35
|
+
.appearance-hover({
|
|
36
|
+
background: var(--tui-status-negative);
|
|
37
|
+
color: #fff;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
.appearance-active({
|
|
41
|
+
background: var(--tui-status-negative);
|
|
42
|
+
color: #fff;
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.appearance-invalid({
|
|
48
|
+
color: var(--tui-text-negative);
|
|
49
|
+
background: var(--tui-status-negative-pale);
|
|
50
|
+
|
|
51
|
+
.appearance-hover({
|
|
52
|
+
color: var(--tui-text-negative-hover);
|
|
53
|
+
background: var(--tui-status-negative-pale-hover);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
.appearance-active({
|
|
57
|
+
color: var(--tui-text-negative-hover);
|
|
58
|
+
background: var(--tui-status-negative-pale-hover);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[tuiAppearance][data-appearance='secondary-destructive'] {
|
|
64
|
+
color: var(--tui-text-negative);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[tuiAppearance][data-appearance='secondary-grayscale'] {
|
|
68
|
+
color: var(--tui-text-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Overriding to darker colors for small items
|
|
72
|
+
input[type='checkbox'][data-appearance='secondary'],
|
|
73
|
+
input[type='radio'][data-appearance='secondary'] {
|
|
74
|
+
--tui-background-neutral-1: var(--tui-background-neutral-2);
|
|
75
|
+
--tui-background-neutral-1-hover: var(--tui-background-neutral-2-hover);
|
|
76
|
+
--tui-background-neutral-1-pressed: var(--tui-background-neutral-2-pressed);
|
|
77
|
+
}
|