@konce-pt/styles 0.16.1 → 0.18.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/README.md +21 -5
- package/components.css +222 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Koncept UI - Base Styles
|
|
6
6
|
|
|
7
|
-
**Base CSS for Koncept UI - reset, cascade layers and
|
|
7
|
+
**Base CSS for Koncept UI - reset, cascade layers and light/dark `color-scheme` switching.**
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@konce-pt/styles)
|
|
10
10
|
[](https://bundlephobia.com/package/@konce-pt/styles)
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
The base stylesheet for [Koncept UI](https://www.npmjs.com/package/@konce-pt/angular): a modern reset, typography, and CSS **`@layer`** ordering (`kpt.reset, kpt.base, kpt.components, kpt.utilities`) so consumers can override styles without specificity wars. Built on top of [`@konce-pt/tokens`](https://www.npmjs.com/package/@konce-pt/tokens).
|
|
17
|
+
The base stylesheet for [Koncept UI](https://www.npmjs.com/package/@konce-pt/angular): a modern reset, typography, and CSS **`@layer`** ordering (`kpt.reset, kpt.base, kpt.components, kpt.utilities`) so consumers can override styles without specificity wars. Built on top of [`@konce-pt/tokens`](https://www.npmjs.com/package/@konce-pt/tokens) - the colours of the light and dark theme come from there; this sheet switches `color-scheme` under `[data-theme="dark"]` and paints `body` from the tokens.
|
|
18
|
+
|
|
19
|
+
It also ships a `:focus-visible` ring, token-driven scrollbars (`--kpt-scrollbar-*`), `.kpt-tooltip` and `.kpt-rich-content` (in `kpt.components`) and the utilities `.kpt-elevation-1..4` and `.kpt-visually-hidden` (in `kpt.utilities`).
|
|
18
20
|
|
|
19
21
|
## Installation
|
|
20
22
|
|
|
@@ -45,12 +47,23 @@ import '@konce-pt/tokens/css/dark';
|
|
|
45
47
|
import '@konce-pt/styles';
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
Or compose the SCSS source into your own build
|
|
50
|
+
Or compose the SCSS source into your own build (`pkg:` resolves the package `exports`; the Sass CLI
|
|
51
|
+
needs `--pkg-importer=node`):
|
|
49
52
|
|
|
50
53
|
```scss
|
|
51
|
-
@use '
|
|
54
|
+
@use 'pkg:@konce-pt/styles/scss';
|
|
52
55
|
```
|
|
53
56
|
|
|
57
|
+
**Component styles for the React port** - `@konce-pt/react` renders the same `kpt-*` classes and
|
|
58
|
+
needs their stylesheet:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import '@konce-pt/styles/components';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
`components.css` is generated from the Angular component SCSS. The Angular package injects its
|
|
65
|
+
component styles itself and does not need it.
|
|
66
|
+
|
|
54
67
|
## Layout
|
|
55
68
|
|
|
56
69
|
Layout is a separate, optional package: [`@konce-pt/grid`](https://www.npmjs.com/package/@konce-pt/grid)
|
|
@@ -76,7 +89,7 @@ MIT © konce.pt
|
|
|
76
89
|
|
|
77
90
|
## Wersja polska
|
|
78
91
|
|
|
79
|
-
Bazowy arkusz stylów [Koncept UI](https://www.npmjs.com/package/@konce-pt/angular): nowoczesny reset, typografia i warstwy CSS **`@layer`** (`kpt.reset, kpt.base, kpt.components, kpt.utilities`) - łatwe nadpisywanie bez wojen specyficzności. Bazuje na [`@konce-pt/tokens`](https://www.npmjs.com/package/@konce-pt/tokens); ładuj **po** tokenach.
|
|
92
|
+
Bazowy arkusz stylów [Koncept UI](https://www.npmjs.com/package/@konce-pt/angular): nowoczesny reset, typografia i warstwy CSS **`@layer`** (`kpt.reset, kpt.base, kpt.components, kpt.utilities`) - łatwe nadpisywanie bez wojen specyficzności. Bazuje na [`@konce-pt/tokens`](https://www.npmjs.com/package/@konce-pt/tokens) (stamtąd pochodzą kolory motywu jasnego i ciemnego; ten arkusz przełącza `color-scheme` pod `[data-theme="dark"]`); ładuj **po** tokenach. W pakiecie są też pierścień `:focus-visible`, paski przewijania z tokenów `--kpt-scrollbar-*`, `.kpt-tooltip`, `.kpt-rich-content` oraz utility `.kpt-elevation-1..4` i `.kpt-visually-hidden`.
|
|
80
93
|
|
|
81
94
|
**Angular CLI** - `angular.json -> styles[]` (najpierw tokeny, potem ten plik, na końcu Twój `src/styles.scss`):
|
|
82
95
|
|
|
@@ -91,6 +104,9 @@ Bazowy arkusz stylów [Koncept UI](https://www.npmjs.com/package/@konce-pt/angul
|
|
|
91
104
|
|
|
92
105
|
**Vite/webpack** - `import '@konce-pt/tokens/css'; import '@konce-pt/tokens/css/dark'; import '@konce-pt/styles';`
|
|
93
106
|
|
|
107
|
+
**Style komponentów dla portu React** - `import '@konce-pt/styles/components';` (`components.css`
|
|
108
|
+
generowany z SCSS komponentów Angulara; paczka Angulara wstrzykuje swoje style sama i go nie potrzebuje).
|
|
109
|
+
|
|
94
110
|
**Układ** to osobna, opcjonalna paczka [`@konce-pt/grid`](https://www.npmjs.com/package/@konce-pt/grid)
|
|
95
111
|
(siatka mobile-first, flexbox, gap, order) - ładuj ją zaraz po tym arkuszu. Pisze do tej samej
|
|
96
112
|
warstwy `kpt.utilities` i powtarza deklarację kolejności warstw, więc działa też bez tej paczki.
|
package/components.css
CHANGED
|
@@ -1858,6 +1858,7 @@
|
|
|
1858
1858
|
}
|
|
1859
1859
|
.kpt-carousel__viewport {
|
|
1860
1860
|
overflow: hidden;
|
|
1861
|
+
contain: inline-size;
|
|
1861
1862
|
}
|
|
1862
1863
|
.kpt-carousel__track {
|
|
1863
1864
|
display: flex;
|
|
@@ -2484,6 +2485,9 @@
|
|
|
2484
2485
|
.kpt-data-table__table thead tr:nth-child(2) th {
|
|
2485
2486
|
top: var(--kpt-thead-offset, 0px);
|
|
2486
2487
|
}
|
|
2488
|
+
.kpt-data-table__table thead tr:nth-child(3) th {
|
|
2489
|
+
top: var(--kpt-thead-offset-2, 0px);
|
|
2490
|
+
}
|
|
2487
2491
|
.kpt-data-table__table tfoot th,
|
|
2488
2492
|
.kpt-data-table__table tfoot td {
|
|
2489
2493
|
position: sticky;
|
|
@@ -2845,6 +2849,20 @@
|
|
|
2845
2849
|
.kpt-data-table thead tr:nth-child(2) .kpt-data-table__hspacer {
|
|
2846
2850
|
top: var(--kpt-thead-offset, 0px);
|
|
2847
2851
|
}
|
|
2852
|
+
.kpt-data-table thead tr:nth-child(3) .kpt-data-table__hspacer {
|
|
2853
|
+
top: var(--kpt-thead-offset-2, 0px);
|
|
2854
|
+
}
|
|
2855
|
+
.kpt-data-table__group {
|
|
2856
|
+
padding-block: var(--kpt-space-2, 0.5rem) !important;
|
|
2857
|
+
text-align: center !important;
|
|
2858
|
+
font-size: var(--kpt-font-size-xs, 0.75rem);
|
|
2859
|
+
letter-spacing: 0.02em;
|
|
2860
|
+
color: var(--kpt-color-on-surface-muted);
|
|
2861
|
+
box-shadow: inset 0 calc(-1 * var(--kpt-border-width-thick, 2px)) 0 var(--kpt-color-border);
|
|
2862
|
+
}
|
|
2863
|
+
.kpt-data-table__group--empty {
|
|
2864
|
+
box-shadow: none;
|
|
2865
|
+
}
|
|
2848
2866
|
.kpt-data-table tbody tr:last-child td {
|
|
2849
2867
|
border-bottom: 0;
|
|
2850
2868
|
}
|
|
@@ -4286,17 +4304,32 @@
|
|
|
4286
4304
|
display: flex;
|
|
4287
4305
|
align-items: center;
|
|
4288
4306
|
justify-content: center;
|
|
4307
|
+
aspect-ratio: var(--kpt-galleria-aspect-ratio, 16/9);
|
|
4289
4308
|
background: var(--kpt-color-muted);
|
|
4290
4309
|
border-radius: var(--kpt-radius-md, 0.5rem);
|
|
4291
4310
|
overflow: hidden;
|
|
4311
|
+
isolation: isolate;
|
|
4292
4312
|
}
|
|
4293
4313
|
.kpt-galleria__image {
|
|
4294
|
-
|
|
4295
|
-
|
|
4314
|
+
position: relative;
|
|
4315
|
+
z-index: 1;
|
|
4296
4316
|
display: block;
|
|
4317
|
+
width: 100%;
|
|
4318
|
+
height: 100%;
|
|
4319
|
+
object-fit: var(--kpt-galleria-fit, cover);
|
|
4320
|
+
}
|
|
4321
|
+
.kpt-galleria__ghost {
|
|
4322
|
+
position: absolute;
|
|
4323
|
+
inset: 0;
|
|
4324
|
+
z-index: 0;
|
|
4325
|
+
width: 100%;
|
|
4326
|
+
height: 100%;
|
|
4327
|
+
object-fit: var(--kpt-galleria-fit, cover);
|
|
4328
|
+
pointer-events: none;
|
|
4297
4329
|
}
|
|
4298
4330
|
.kpt-galleria__nav {
|
|
4299
4331
|
position: absolute;
|
|
4332
|
+
z-index: 2;
|
|
4300
4333
|
top: 50%;
|
|
4301
4334
|
transform: translateY(-50%);
|
|
4302
4335
|
display: inline-flex;
|
|
@@ -4324,12 +4357,41 @@
|
|
|
4324
4357
|
opacity: 0.4;
|
|
4325
4358
|
cursor: default;
|
|
4326
4359
|
}
|
|
4360
|
+
.kpt-galleria__strip {
|
|
4361
|
+
--_fade-start: 0px;
|
|
4362
|
+
--_fade-end: 0px;
|
|
4363
|
+
position: relative;
|
|
4364
|
+
margin-top: var(--kpt-space-2, 0.5rem);
|
|
4365
|
+
}
|
|
4366
|
+
.kpt-galleria__strip[data-scroll-start] {
|
|
4367
|
+
--_fade-start: 2.5rem;
|
|
4368
|
+
}
|
|
4369
|
+
.kpt-galleria__strip[data-scroll-end] {
|
|
4370
|
+
--_fade-end: 2.5rem;
|
|
4371
|
+
}
|
|
4327
4372
|
.kpt-galleria__thumbs {
|
|
4328
4373
|
display: flex;
|
|
4329
4374
|
gap: var(--kpt-space-2, 0.5rem);
|
|
4330
|
-
margin-top: var(--kpt-space-2, 0.5rem);
|
|
4331
4375
|
overflow-x: auto;
|
|
4332
|
-
|
|
4376
|
+
contain: inline-size;
|
|
4377
|
+
padding-block: var(--kpt-space-1, 0.25rem);
|
|
4378
|
+
scrollbar-width: none;
|
|
4379
|
+
overscroll-behavior-x: contain;
|
|
4380
|
+
cursor: grab;
|
|
4381
|
+
mask-image: linear-gradient(to right, transparent, var(--kpt-color-text) var(--_fade-start), var(--kpt-color-text) calc(100% - var(--_fade-end)), transparent);
|
|
4382
|
+
}
|
|
4383
|
+
.kpt-galleria__thumbs::-webkit-scrollbar {
|
|
4384
|
+
display: none;
|
|
4385
|
+
}
|
|
4386
|
+
.kpt-galleria__thumbs.is-dragging {
|
|
4387
|
+
cursor: grabbing;
|
|
4388
|
+
user-select: none;
|
|
4389
|
+
}
|
|
4390
|
+
.kpt-galleria__thumbs.is-dragging .kpt-galleria__thumb {
|
|
4391
|
+
pointer-events: none;
|
|
4392
|
+
}
|
|
4393
|
+
.kpt-galleria:dir(rtl) .kpt-galleria__thumbs {
|
|
4394
|
+
mask-image: linear-gradient(to left, transparent, var(--kpt-color-text) var(--_fade-start), var(--kpt-color-text) calc(100% - var(--_fade-end)), transparent);
|
|
4333
4395
|
}
|
|
4334
4396
|
.kpt-galleria__thumb {
|
|
4335
4397
|
flex: none;
|
|
@@ -4349,6 +4411,7 @@
|
|
|
4349
4411
|
height: 100%;
|
|
4350
4412
|
object-fit: cover;
|
|
4351
4413
|
display: block;
|
|
4414
|
+
-webkit-user-drag: none;
|
|
4352
4415
|
}
|
|
4353
4416
|
.kpt-galleria__thumb:hover {
|
|
4354
4417
|
opacity: 1;
|
|
@@ -4357,9 +4420,51 @@
|
|
|
4357
4420
|
opacity: 1;
|
|
4358
4421
|
border-color: var(--kpt-color-primary);
|
|
4359
4422
|
}
|
|
4360
|
-
.kpt-
|
|
4423
|
+
.kpt-galleria__scroll {
|
|
4424
|
+
position: absolute;
|
|
4425
|
+
z-index: 1;
|
|
4426
|
+
top: 50%;
|
|
4427
|
+
display: inline-flex;
|
|
4428
|
+
align-items: center;
|
|
4429
|
+
justify-content: center;
|
|
4430
|
+
width: 1.75rem;
|
|
4431
|
+
height: 1.75rem;
|
|
4432
|
+
padding: 0;
|
|
4433
|
+
border: 0;
|
|
4434
|
+
border-radius: 999px;
|
|
4435
|
+
background: var(--kpt-color-surface);
|
|
4436
|
+
color: var(--kpt-color-on-surface);
|
|
4437
|
+
box-shadow: var(--kpt-elevation-2);
|
|
4438
|
+
cursor: pointer;
|
|
4439
|
+
opacity: 0;
|
|
4440
|
+
pointer-events: none;
|
|
4441
|
+
translate: 0 -50%;
|
|
4442
|
+
scale: 0.7;
|
|
4443
|
+
transition: opacity var(--kpt-motion-duration-base, 200ms) var(--kpt-motion-easing-standard), scale var(--kpt-motion-duration-base, 200ms) var(--kpt-motion-easing-standard);
|
|
4444
|
+
}
|
|
4445
|
+
.kpt-galleria__scroll--back {
|
|
4446
|
+
inset-inline-start: calc(var(--kpt-space-1, 0.25rem) * -1);
|
|
4447
|
+
}
|
|
4448
|
+
.kpt-galleria__scroll--forward {
|
|
4449
|
+
inset-inline-end: calc(var(--kpt-space-1, 0.25rem) * -1);
|
|
4450
|
+
}
|
|
4451
|
+
.kpt-galleria__scroll:hover {
|
|
4452
|
+
background: var(--kpt-color-muted);
|
|
4453
|
+
}
|
|
4454
|
+
.kpt-galleria__strip[data-scroll-start] .kpt-galleria__scroll--back,
|
|
4455
|
+
.kpt-galleria__strip[data-scroll-end] .kpt-galleria__scroll--forward {
|
|
4456
|
+
opacity: 1;
|
|
4457
|
+
pointer-events: auto;
|
|
4458
|
+
scale: 1;
|
|
4459
|
+
}
|
|
4460
|
+
.kpt-galleria:dir(rtl) :is(.kpt-galleria__nav, .kpt-galleria__scroll) .kpt-icon-host {
|
|
4361
4461
|
transform: scaleX(-1);
|
|
4362
4462
|
}
|
|
4463
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4464
|
+
.kpt-galleria__scroll {
|
|
4465
|
+
transition: none;
|
|
4466
|
+
}
|
|
4467
|
+
}
|
|
4363
4468
|
.kpt-galleria__live {
|
|
4364
4469
|
position: absolute;
|
|
4365
4470
|
width: 1px;
|
|
@@ -4563,8 +4668,8 @@
|
|
|
4563
4668
|
background: var(--kpt-color-overlay-scrim);
|
|
4564
4669
|
}
|
|
4565
4670
|
.kpt-image__full {
|
|
4566
|
-
max-width: 90vw;
|
|
4567
|
-
max-height:
|
|
4671
|
+
max-width: var(--kpt-image-preview-max-width, 90vw);
|
|
4672
|
+
max-height: var(--kpt-image-preview-max-height, 80vh);
|
|
4568
4673
|
border-radius: var(--kpt-radius-md, 0.5rem);
|
|
4569
4674
|
cursor: default;
|
|
4570
4675
|
}
|
|
@@ -4630,6 +4735,27 @@
|
|
|
4630
4735
|
opacity: 0.6;
|
|
4631
4736
|
background-color: var(--kpt-color-surface-variant);
|
|
4632
4737
|
}
|
|
4738
|
+
.kpt-input-host[data-icon] {
|
|
4739
|
+
position: relative;
|
|
4740
|
+
}
|
|
4741
|
+
.kpt-input-host[data-icon] .kpt-input__field {
|
|
4742
|
+
padding-inline-start: calc(var(--kpt-space-3, 0.75rem) * 2 + 1rem);
|
|
4743
|
+
}
|
|
4744
|
+
.kpt-input__icon {
|
|
4745
|
+
position: absolute;
|
|
4746
|
+
z-index: 1;
|
|
4747
|
+
inset-block: 0;
|
|
4748
|
+
inset-inline-start: var(--kpt-space-3, 0.75rem);
|
|
4749
|
+
display: flex;
|
|
4750
|
+
height: 1rem;
|
|
4751
|
+
margin-block: auto;
|
|
4752
|
+
color: var(--kpt-form-field-placeholder);
|
|
4753
|
+
font-size: 1rem;
|
|
4754
|
+
pointer-events: none;
|
|
4755
|
+
}
|
|
4756
|
+
.kpt-input-host[data-icon]:has(.kpt-input__field:disabled) .kpt-input__icon {
|
|
4757
|
+
opacity: 0.6;
|
|
4758
|
+
}
|
|
4633
4759
|
.kpt-input-host[data-speech] {
|
|
4634
4760
|
position: relative;
|
|
4635
4761
|
}
|
|
@@ -4646,6 +4772,57 @@
|
|
|
4646
4772
|
inset-inline-end: var(--kpt-space-1, 0.25rem);
|
|
4647
4773
|
gap: var(--kpt-space-1, 0.25rem);
|
|
4648
4774
|
}
|
|
4775
|
+
.kpt-input__field::-webkit-search-cancel-button {
|
|
4776
|
+
appearance: none;
|
|
4777
|
+
display: none;
|
|
4778
|
+
}
|
|
4779
|
+
.kpt-input-host[data-clear] {
|
|
4780
|
+
position: relative;
|
|
4781
|
+
--_clear-end: var(--kpt-space-1, 0.25rem);
|
|
4782
|
+
}
|
|
4783
|
+
.kpt-input-host[data-clear][data-speech] {
|
|
4784
|
+
--_clear-end: 2.25rem;
|
|
4785
|
+
}
|
|
4786
|
+
.kpt-input-host[data-clear][data-speech=listening] {
|
|
4787
|
+
--_clear-end: 4.25rem;
|
|
4788
|
+
}
|
|
4789
|
+
.kpt-input-host[data-clear] .kpt-input__field {
|
|
4790
|
+
padding-inline-end: calc(var(--_clear-end) + 2rem);
|
|
4791
|
+
transition-property: border-color, box-shadow, padding-inline-end;
|
|
4792
|
+
}
|
|
4793
|
+
.kpt-input__clear {
|
|
4794
|
+
position: absolute;
|
|
4795
|
+
inset-block: 0;
|
|
4796
|
+
inset-inline-end: var(--_clear-end);
|
|
4797
|
+
display: inline-flex;
|
|
4798
|
+
align-items: center;
|
|
4799
|
+
justify-content: center;
|
|
4800
|
+
width: 1.75rem;
|
|
4801
|
+
height: 1.75rem;
|
|
4802
|
+
margin-block: auto;
|
|
4803
|
+
padding: 0;
|
|
4804
|
+
border: 0;
|
|
4805
|
+
border-radius: var(--kpt-radius-full, 9999px);
|
|
4806
|
+
background: transparent;
|
|
4807
|
+
color: var(--kpt-form-field-placeholder);
|
|
4808
|
+
font-size: 1rem;
|
|
4809
|
+
cursor: pointer;
|
|
4810
|
+
transition: color var(--kpt-motion-duration-fast, 120ms) var(--kpt-motion-easing-standard), background-color var(--kpt-motion-duration-fast, 120ms) var(--kpt-motion-easing-standard), scale calc(var(--_press-t, 0.45s) * var(--kpt-motion-scale, 1)) var(--_press-e, linear(0, 0.0884, 0.2807, 0.4973, 0.692, 0.8441, 0.9493, 1.013, 1.0446, 1.0542, 1.0506, 1.0406, 1.0288, 1.018, 1.0094, 1.0034, 0.9996, 0.9977, 0.9971, 0.9972, 0.9977, 0.9984, 0.999, 0.9994, 0.9998, 1, 1.0001, 1.0002, 1.0002, 1.0001, 1));
|
|
4811
|
+
}
|
|
4812
|
+
.kpt-input__clear:active:not(:disabled):not([aria-disabled=true]) {
|
|
4813
|
+
--_press-t: 0.08s;
|
|
4814
|
+
--_press-e: ease-out;
|
|
4815
|
+
scale: 0.9;
|
|
4816
|
+
}
|
|
4817
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4818
|
+
.kpt-input__clear:active:not(:disabled):not([aria-disabled=true]) {
|
|
4819
|
+
scale: none;
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4822
|
+
.kpt-input__clear:hover {
|
|
4823
|
+
color: var(--kpt-form-field-text);
|
|
4824
|
+
background: var(--kpt-color-surface-variant);
|
|
4825
|
+
}
|
|
4649
4826
|
}
|
|
4650
4827
|
|
|
4651
4828
|
/* src/lib/input-mask/input-mask.component.scss */
|
|
@@ -8304,13 +8481,23 @@
|
|
|
8304
8481
|
display: block;
|
|
8305
8482
|
}
|
|
8306
8483
|
.kpt-tabs__header {
|
|
8307
|
-
position: relative;
|
|
8308
8484
|
display: flex;
|
|
8309
8485
|
gap: 0.25rem;
|
|
8310
8486
|
border-bottom: var(--kpt-border-width-thin, 1px) solid var(--kpt-color-border);
|
|
8311
8487
|
}
|
|
8488
|
+
.kpt-tabs__list,
|
|
8489
|
+
.kpt-tabs__links {
|
|
8490
|
+
display: flex;
|
|
8491
|
+
gap: 0.25rem;
|
|
8492
|
+
}
|
|
8493
|
+
.kpt-tabs__list {
|
|
8494
|
+
position: relative;
|
|
8495
|
+
}
|
|
8312
8496
|
.kpt-tabs__tab {
|
|
8313
8497
|
appearance: none;
|
|
8498
|
+
display: inline-flex;
|
|
8499
|
+
align-items: center;
|
|
8500
|
+
gap: var(--kpt-space-2, 0.5rem);
|
|
8314
8501
|
border: 0;
|
|
8315
8502
|
background: none;
|
|
8316
8503
|
padding: 0.65rem 1rem;
|
|
@@ -8321,7 +8508,7 @@
|
|
|
8321
8508
|
cursor: pointer;
|
|
8322
8509
|
transition: color var(--kpt-motion-duration-fast, 120ms) var(--kpt-motion-easing-standard);
|
|
8323
8510
|
}
|
|
8324
|
-
.kpt-tabs__tab:hover:not(:disabled
|
|
8511
|
+
.kpt-tabs__tab:hover:not(:disabled, [aria-disabled=true], .is-active) {
|
|
8325
8512
|
color: var(--kpt-color-on-surface);
|
|
8326
8513
|
}
|
|
8327
8514
|
.kpt-tabs__tab.is-active {
|
|
@@ -8331,6 +8518,32 @@
|
|
|
8331
8518
|
opacity: 0.45;
|
|
8332
8519
|
cursor: not-allowed;
|
|
8333
8520
|
}
|
|
8521
|
+
.kpt-tabs__link {
|
|
8522
|
+
text-decoration: none;
|
|
8523
|
+
}
|
|
8524
|
+
.kpt-tabs__link[aria-disabled=true] {
|
|
8525
|
+
opacity: 0.45;
|
|
8526
|
+
cursor: not-allowed;
|
|
8527
|
+
}
|
|
8528
|
+
.kpt-tabs__icon {
|
|
8529
|
+
font-size: 1.125em;
|
|
8530
|
+
color: var(--_icon-color, currentColor);
|
|
8531
|
+
}
|
|
8532
|
+
.kpt-tabs__icon[data-color=primary] {
|
|
8533
|
+
--_icon-color: var(--kpt-color-primary);
|
|
8534
|
+
}
|
|
8535
|
+
.kpt-tabs__icon[data-color=success] {
|
|
8536
|
+
--_icon-color: var(--kpt-color-success);
|
|
8537
|
+
}
|
|
8538
|
+
.kpt-tabs__icon[data-color=warning] {
|
|
8539
|
+
--_icon-color: var(--kpt-color-warning);
|
|
8540
|
+
}
|
|
8541
|
+
.kpt-tabs__icon[data-color=danger] {
|
|
8542
|
+
--_icon-color: var(--kpt-color-danger);
|
|
8543
|
+
}
|
|
8544
|
+
.kpt-tabs__icon[data-color=info] {
|
|
8545
|
+
--_icon-color: var(--kpt-color-info);
|
|
8546
|
+
}
|
|
8334
8547
|
.kpt-tabs__ink {
|
|
8335
8548
|
position: absolute;
|
|
8336
8549
|
bottom: -1px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konce-pt/styles",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Base CSS for Koncept UI - reset, cascade @layer ordering and neutral light/dark theme (SCSS source).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "konce.pt",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"src"
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@konce-pt/tokens": "0.
|
|
55
|
+
"@konce-pt/tokens": "0.18.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"sass": "^1.77.0"
|