@streamscloud/kit 0.0.1-1770364570820 → 0.0.1-1770761136792
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/dist/core/continuation-token.d.ts +1 -0
- package/dist/core/continuation-token.js +4 -1
- package/dist/styles/_colors.scss +126 -0
- package/dist/styles/_form-group.scss +37 -0
- package/dist/styles/_functions.scss +37 -0
- package/dist/styles/_index.scss +6 -0
- package/dist/styles/_mixins.scss +128 -0
- package/dist/styles/_normalize.scss +257 -0
- package/dist/styles/_reset.scss +194 -0
- package/dist/styles/_responsive.scss +70 -0
- package/dist/styles/_row.scss +81 -0
- package/dist/styles/_theme.scss +68 -0
- package/dist/ui/button/cmp.button.svelte +10 -0
- package/dist/ui/button/cmp.button.svelte.d.ts +16 -0
- package/dist/ui/button/cmp.options-button.svelte +202 -0
- package/dist/ui/button/cmp.options-button.svelte.d.ts +21 -0
- package/dist/ui/button/index.d.ts +3 -0
- package/dist/ui/button/index.js +2 -0
- package/dist/ui/button/resources/button-base.svelte +81 -0
- package/dist/ui/button/resources/button-base.svelte.d.ts +13 -0
- package/dist/ui/button/resources/button-theme.svelte +233 -0
- package/dist/ui/button/resources/button-theme.svelte.d.ts +10 -0
- package/dist/ui/button/resources/types.d.ts +2 -0
- package/dist/ui/button/resources/types.js +1 -0
- package/dist/ui/dialog/cmp.dialog-button.svelte +13 -0
- package/dist/ui/dialog/cmp.dialog-button.svelte.d.ts +15 -0
- package/dist/ui/dialog/cmp.dialog-cancel-button.svelte +13 -0
- package/dist/ui/dialog/cmp.dialog-cancel-button.svelte.d.ts +11 -0
- package/dist/ui/dialog/cmp.dialog-close-button.svelte +17 -0
- package/dist/ui/dialog/cmp.dialog-close-button.svelte.d.ts +27 -0
- package/dist/ui/dialog/cmp.dialog-container.svelte +183 -0
- package/dist/ui/dialog/cmp.dialog-container.svelte.d.ts +27 -0
- package/dist/ui/dialog/cmp.dialog.svelte +113 -0
- package/dist/ui/dialog/cmp.dialog.svelte.d.ts +35 -0
- package/dist/ui/dialog/dialog-controller.d.ts +22 -0
- package/dist/ui/dialog/dialog-controller.js +45 -0
- package/dist/ui/dialog/dialog-data.d.ts +27 -0
- package/dist/ui/dialog/dialog-data.js +1 -0
- package/dist/ui/dialog/dialog-mount.d.ts +3 -0
- package/dist/ui/dialog/dialog-mount.js +19 -0
- package/dist/ui/dialog/dialogs.svelte.d.ts +13 -0
- package/dist/ui/dialog/dialogs.svelte.js +67 -0
- package/dist/ui/dialog/index.d.ts +8 -0
- package/dist/ui/dialog/index.js +7 -0
- package/dist/ui/dialog/types.svelte.d.ts +30 -0
- package/dist/ui/dialog/types.svelte.js +25 -0
- package/dist/ui/icon/cmp.icon.svelte +76 -0
- package/dist/ui/icon/cmp.icon.svelte.d.ts +8 -0
- package/dist/ui/icon/index.d.ts +2 -0
- package/dist/ui/icon/index.js +1 -0
- package/dist/ui/icon/types.d.ts +1 -0
- package/dist/ui/icon/types.js +1 -0
- package/package.json +42 -7
|
@@ -5,6 +5,7 @@ export declare class ContinuationToken {
|
|
|
5
5
|
static init(): ContinuationToken;
|
|
6
6
|
static fromPayload(value: string | null): ContinuationToken;
|
|
7
7
|
static preventLoading(): ContinuationToken;
|
|
8
|
+
toNextChunkString(): string | null | undefined;
|
|
8
9
|
toString(): string | null;
|
|
9
10
|
toJSON(): string | null;
|
|
10
11
|
}
|
|
@@ -10,7 +10,7 @@ export class ContinuationToken {
|
|
|
10
10
|
return new ContinuationToken(true, null);
|
|
11
11
|
}
|
|
12
12
|
static fromPayload(value) {
|
|
13
|
-
if (value?.length && value.length >
|
|
13
|
+
if (value?.length && value.length > 1 && value.length < 5000) {
|
|
14
14
|
// initialized with server response that there is more data, and value is valid
|
|
15
15
|
return new ContinuationToken(true, value);
|
|
16
16
|
}
|
|
@@ -23,6 +23,9 @@ export class ContinuationToken {
|
|
|
23
23
|
// additional initilizer, to block further loading
|
|
24
24
|
return new ContinuationToken(false, null);
|
|
25
25
|
}
|
|
26
|
+
toNextChunkString() {
|
|
27
|
+
return this.canLoadMore ? this.value || undefined : this.value;
|
|
28
|
+
}
|
|
26
29
|
toString() {
|
|
27
30
|
return this.value;
|
|
28
31
|
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
$color-white: #ffffff;
|
|
2
|
+
$color-black: #000000;
|
|
3
|
+
|
|
4
|
+
$color-dark-50: #383838;
|
|
5
|
+
$color-dark-100: #343434;
|
|
6
|
+
$color-dark-200: #333333;
|
|
7
|
+
$color-dark-300: #2e2e2e;
|
|
8
|
+
$color-dark-400: #2c2c2c;
|
|
9
|
+
$color-dark-500: #272727;
|
|
10
|
+
$color-dark-600: #242424;
|
|
11
|
+
$color-dark-700: #222222;
|
|
12
|
+
$color-dark-800: #1e1e1e;
|
|
13
|
+
$color-dark-900: #121212;
|
|
14
|
+
|
|
15
|
+
$color-neutral-50: #f9fafb;
|
|
16
|
+
$color-neutral-100: #f2f2f3;
|
|
17
|
+
$color-neutral-200: #e5e7eb;
|
|
18
|
+
$color-neutral-300: #d1d5db;
|
|
19
|
+
$color-neutral-400: #9ca3af;
|
|
20
|
+
$color-neutral-500: #6b7280;
|
|
21
|
+
$color-neutral-600: #4b5563;
|
|
22
|
+
$color-neutral-700: #374151;
|
|
23
|
+
$color-neutral-800: #1f2937;
|
|
24
|
+
$color-neutral-900: #111827;
|
|
25
|
+
|
|
26
|
+
$color-primary-50: #f1f6fd;
|
|
27
|
+
$color-primary-100: #dfe9fb;
|
|
28
|
+
$color-primary-200: #bad0f7;
|
|
29
|
+
$color-primary-300: #91b3f3;
|
|
30
|
+
$color-primary-400: #5a8dec;
|
|
31
|
+
$color-primary-500: #144ab0;
|
|
32
|
+
$color-primary-600: #1244a0;
|
|
33
|
+
$color-primary-700: #103a89;
|
|
34
|
+
$color-primary-800: #0c2d69;
|
|
35
|
+
$color-primary-900: #0a2557;
|
|
36
|
+
|
|
37
|
+
$color-success-50: #ecfef4;
|
|
38
|
+
$color-success-100: #d4fce7;
|
|
39
|
+
$color-success-200: #bbf7d0;
|
|
40
|
+
$color-success-300: #39f393;
|
|
41
|
+
$color-success-400: #0de374;
|
|
42
|
+
$color-success-500: #0cce6b;
|
|
43
|
+
$color-success-600: #0bbc60;
|
|
44
|
+
$color-success-700: #0aa454;
|
|
45
|
+
$color-success-800: #088745;
|
|
46
|
+
$color-success-900: #066031;
|
|
47
|
+
|
|
48
|
+
$color-warning-50: #fffbeb;
|
|
49
|
+
$color-warning-100: #fef3c7;
|
|
50
|
+
$color-warning-200: #fde68a;
|
|
51
|
+
$color-warning-300: #fcd34d;
|
|
52
|
+
$color-warning-400: #fbbf24;
|
|
53
|
+
$color-warning-500: #ffa62b;
|
|
54
|
+
$color-warning-600: #d97706;
|
|
55
|
+
$color-warning-700: #b45309;
|
|
56
|
+
$color-warning-800: #92400e;
|
|
57
|
+
$color-warning-900: #78350f;
|
|
58
|
+
|
|
59
|
+
$color-destructive-50: #fef1f3;
|
|
60
|
+
$color-destructive-100: #fde8ea;
|
|
61
|
+
$color-destructive-200: #f9c8cd;
|
|
62
|
+
$color-destructive-300: #f6a7b1;
|
|
63
|
+
$color-destructive-400: #f17e8b;
|
|
64
|
+
$color-destructive-500: #e71d36;
|
|
65
|
+
$color-destructive-600: #d4172d;
|
|
66
|
+
$color-destructive-700: #b81427;
|
|
67
|
+
$color-destructive-800: #981020;
|
|
68
|
+
$color-destructive-900: #730c18;
|
|
69
|
+
|
|
70
|
+
$color-secondary-purple: #b497d6;
|
|
71
|
+
$color-secondary-light-blue: #72a1e5;
|
|
72
|
+
$color-secondary-burgundy: #45062e;
|
|
73
|
+
$color-secondary-dark-green: #3d7068;
|
|
74
|
+
$color-secondary-pink: #f26ca7;
|
|
75
|
+
|
|
76
|
+
// Legacy - to be removed later
|
|
77
|
+
|
|
78
|
+
$color-system-blue: $color-primary-500;
|
|
79
|
+
$color-system-red: $color-destructive-500;
|
|
80
|
+
$color-system-green: $color-success-500;
|
|
81
|
+
$color-system-orange: $color-warning-500;
|
|
82
|
+
|
|
83
|
+
$color-gray-50: #fafafa;
|
|
84
|
+
$color-gray-100: #f2f2f2;
|
|
85
|
+
$color-gray-200: #c1c1c1;
|
|
86
|
+
$color-gray-500: #999999;
|
|
87
|
+
$color-gray-550: #83838b;
|
|
88
|
+
$color-gray-600: #7d7d7d;
|
|
89
|
+
$color-gray-700: #4d4d4d;
|
|
90
|
+
$color-gray-800: #2e2e2e;
|
|
91
|
+
$color-gray-900: #1c1c1c;
|
|
92
|
+
|
|
93
|
+
// Q3 Figma Colors
|
|
94
|
+
$colors--primary--blue-50: #f1f6fd;
|
|
95
|
+
$colors--primary--blue-100: #dfe9fb;
|
|
96
|
+
$colors--primary--blue-200: #bad0f7;
|
|
97
|
+
$colors--primary--blue-800: #0c2d69;
|
|
98
|
+
|
|
99
|
+
$backgrounds--bg-brand: #144ab0;
|
|
100
|
+
$backgrounds--bg-secondary: #ffffff;
|
|
101
|
+
$backgrounds--bg-secondary-dark: #121212;
|
|
102
|
+
$backgrounds--bg-element: #f9fafb;
|
|
103
|
+
$backgrounds--bg-element-dark: #1e1e1e;
|
|
104
|
+
$backgrounds--bg-primary: #ffffff;
|
|
105
|
+
$backgrounds--bg-light: #9ca3af;
|
|
106
|
+
$backgrounds--bg-menu-active: #f1f6fd;
|
|
107
|
+
|
|
108
|
+
$borders--border-primary: #f2f2f3;
|
|
109
|
+
$borders--border-primary-dark: #1e1e1e;
|
|
110
|
+
$borders--border-white: #ffffff;
|
|
111
|
+
$borders--border-white-dark: #121212;
|
|
112
|
+
$borders--border-secondary: #f2f2f3;
|
|
113
|
+
$borders--border-secondary--dark: #343434;
|
|
114
|
+
$borders--border-active: #5a8dec;
|
|
115
|
+
|
|
116
|
+
$icons--icon-primary: #1f2937;
|
|
117
|
+
$icons--icon-brand: #144ab0;
|
|
118
|
+
$icons--icon-brand-dark: #ffffff;
|
|
119
|
+
|
|
120
|
+
$texts--text-brand: #5a8dec;
|
|
121
|
+
$texts--text-secondary: #6b7280;
|
|
122
|
+
$texts--text-secondary-dark: #d1d5db;
|
|
123
|
+
$texts--text-primary: #000000;
|
|
124
|
+
$texts--text-primary-dark: #ffffff;
|
|
125
|
+
|
|
126
|
+
$graphics--button--green: #0cce6b;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use 'functions';
|
|
2
|
+
@use 'colors';
|
|
3
|
+
|
|
4
|
+
.g-form-group {
|
|
5
|
+
--_form-group--margin-bottom: var(--form-group--margin-bottom, #{functions.rem(20)});
|
|
6
|
+
--_form-group--label--font-size: var(--form-group--label--font-size, #{functions.rem(14)});
|
|
7
|
+
--_form-group--label--font-weight: var(--form-group--label--font-weight, 400);
|
|
8
|
+
--_form-group--label--color: var(--form-group--label--color);
|
|
9
|
+
--_form-group--label--margin-bottom: var(--form-group--label--margin-bottom, #{functions.rem(8)});
|
|
10
|
+
--_form-group--note--font-size: var(--form-group--note--font-size, #{functions.rem(14)});
|
|
11
|
+
--_form-group--note--font-weight: var(--form-group--note--font-weight, 300);
|
|
12
|
+
|
|
13
|
+
display: block;
|
|
14
|
+
margin-bottom: var(--_form-group--margin-bottom);
|
|
15
|
+
|
|
16
|
+
&__label {
|
|
17
|
+
font-size: var(--_form-group--label--font-size);
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin-bottom: var(--_form-group--label--margin-bottom);
|
|
20
|
+
font-weight: var(--_form-group--label--font-weight);
|
|
21
|
+
display: block;
|
|
22
|
+
color: var(--_form-group--label--color);
|
|
23
|
+
|
|
24
|
+
&--with-tooltip {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: functions.rem(4);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__note {
|
|
32
|
+
margin-top: functions.rem(8);
|
|
33
|
+
color: colors.$color-neutral-400;
|
|
34
|
+
font-size: var(--_form-group--note--font-size);
|
|
35
|
+
font-weight: var(--_form-group--note--font-weight);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
|
|
4
|
+
$browser-font-size: 16; // Default
|
|
5
|
+
|
|
6
|
+
@function rem($pixels) {
|
|
7
|
+
@return #{restrict-decimal-places(calc($pixels/$browser-font-size))}rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@function em($pixels, $context: $browser-font-size) {
|
|
11
|
+
@return #{restrict-decimal-places(calc($pixels/$context))}em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@function cqi($pixels, $container-width, $max-decimal-places: 1) {
|
|
15
|
+
@return #{restrict-decimal-places(calc($pixels/$container-width * 100), $max-decimal-places)}cqi;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@function restrict-decimal-places($value, $places: 4) {
|
|
19
|
+
$multiplier: math.pow(10, $places);
|
|
20
|
+
@return calc(round($value * $multiplier) / $multiplier);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@function invert-color($color, $alpha-override: null) {
|
|
24
|
+
$red: color.red($color);
|
|
25
|
+
$green: color.green($color);
|
|
26
|
+
$blue: color.blue($color);
|
|
27
|
+
$alpha: color.alpha($color);
|
|
28
|
+
@if $alpha-override {
|
|
29
|
+
$alpha: $alpha-override;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
$inverted-red: 255 - $red;
|
|
33
|
+
$inverted-green: 255 - $green;
|
|
34
|
+
$inverted-blue: 255 - $blue;
|
|
35
|
+
|
|
36
|
+
@return rgba($inverted-red, $inverted-green, $inverted-blue, $alpha);
|
|
37
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@mixin no-select {
|
|
2
|
+
-webkit-user-drag: none;
|
|
3
|
+
user-select: none;
|
|
4
|
+
:global [contenteditable] {
|
|
5
|
+
user-select: text;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin respect-new-lines {
|
|
10
|
+
white-space: pre-line;
|
|
11
|
+
word-break: break-word;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin ellipsis {
|
|
15
|
+
text-overflow: ellipsis;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin line-clamp($lines) {
|
|
22
|
+
white-space: pre-line;
|
|
23
|
+
word-break: break-word;
|
|
24
|
+
|
|
25
|
+
display: -webkit-box;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
-webkit-box-orient: vertical;
|
|
28
|
+
-webkit-line-clamp: $lines;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin width($width) {
|
|
32
|
+
width: $width;
|
|
33
|
+
min-width: $width;
|
|
34
|
+
max-width: $width;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin height($height) {
|
|
38
|
+
height: $height;
|
|
39
|
+
min-height: $height;
|
|
40
|
+
max-height: $height;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin hide-empty($display: block) {
|
|
44
|
+
:global &:not(:has(*)) {
|
|
45
|
+
display: none !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:global &:has(*) {
|
|
49
|
+
display: $display !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin absolute-fill {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin absolute-center {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 50%;
|
|
61
|
+
left: 50%;
|
|
62
|
+
transform: translate(-50%, -50%);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin media-fit($objectFit: cover) {
|
|
66
|
+
object-fit: $objectFit;
|
|
67
|
+
min-width: 100%;
|
|
68
|
+
min-height: 100%;
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
max-height: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin scrollbar($thumb-color: var(--scrollbar--thumb-color, #7d7d7d), $track-color: var(--scrollbar--track-color, transparent)) {
|
|
74
|
+
--_cross-browser-scrollbar--thumb-color: #{$thumb-color};
|
|
75
|
+
--_cross-browser-scrollbar--track-color: #{$track-color};
|
|
76
|
+
|
|
77
|
+
@include _cross-browser-scrollbar;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin scrollbar-on-hover($thumb-color: var(--scrollbar--thumb-color, #7d7d7d), $track-color: var(--scrollbar--track-color, transparent)) {
|
|
81
|
+
--_cross-browser-scrollbar--thumb-color: transparent;
|
|
82
|
+
--_cross-browser-scrollbar--track-color: transparent;
|
|
83
|
+
|
|
84
|
+
&:hover {
|
|
85
|
+
--_cross-browser-scrollbar--thumb-color: #{$thumb-color};
|
|
86
|
+
--_cross-browser-scrollbar--track-color: #{$track-color};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include _cross-browser-scrollbar;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@mixin _cross-browser-scrollbar {
|
|
93
|
+
&::-webkit-scrollbar {
|
|
94
|
+
width: 6px;
|
|
95
|
+
height: 6px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&::-webkit-scrollbar-track {
|
|
99
|
+
background: var(--_cross-browser-scrollbar--track-color);
|
|
100
|
+
border-radius: 100vw;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::-webkit-scrollbar-thumb {
|
|
104
|
+
background: var(--_cross-browser-scrollbar--thumb-color);
|
|
105
|
+
border-radius: 100vw;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@supports (scrollbar-color: transparent transparent) {
|
|
109
|
+
scrollbar-color: var(--_cross-browser-scrollbar--thumb-color) var(--_cross-browser-scrollbar--track-color);
|
|
110
|
+
scrollbar-width: thin;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@mixin fade-in-animation($duration: 5s) {
|
|
115
|
+
animation: fadeIn $duration linear infinite;
|
|
116
|
+
|
|
117
|
+
@keyframes fadeIn {
|
|
118
|
+
0% {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
}
|
|
121
|
+
50% {
|
|
122
|
+
opacity: 0.4;
|
|
123
|
+
}
|
|
124
|
+
100% {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/* Document
|
|
2
|
+
* ========================================================================== */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 1. Correct the line height in all browsers.
|
|
6
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
:where(html) {
|
|
10
|
+
line-height: 1.15; /* 1 */
|
|
11
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
12
|
+
text-size-adjust: 100%; /* 2 */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Sections
|
|
16
|
+
* ========================================================================== */
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
20
|
+
* `article` contexts in Chrome, Edge, Firefox, and Safari.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
:where(h1) {
|
|
24
|
+
font-size: 2em;
|
|
25
|
+
margin-block-end: 0.67em;
|
|
26
|
+
margin-block-start: 0.67em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Grouping content
|
|
30
|
+
* ========================================================================== */
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Remove the margin on nested lists in Chrome, Edge, and Safari.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
:where(dl, ol, ul) :where(dl, ol, ul) {
|
|
37
|
+
margin-block-end: 0;
|
|
38
|
+
margin-block-start: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 1. Add the correct box sizing in Firefox.
|
|
43
|
+
* 2. Correct the inheritance of border color in Firefox.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
:where(hr) {
|
|
47
|
+
box-sizing: content-box; /* 1 */
|
|
48
|
+
color: inherit; /* 2 */
|
|
49
|
+
height: 0; /* 1 */
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Text-level semantics
|
|
53
|
+
* ========================================================================== */
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Add the correct text decoration in Safari.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
:where(abbr[title]) {
|
|
60
|
+
text-decoration: underline;
|
|
61
|
+
text-decoration: underline dotted;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
:where(b, strong) {
|
|
69
|
+
font-weight: bolder;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
74
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
:where(code, kbd, pre, samp) {
|
|
78
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; /* 1 */
|
|
79
|
+
font-size: 1em; /* 2 */
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Add the correct font size in all browsers.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
:where(small) {
|
|
87
|
+
font-size: 80%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Tabular data
|
|
91
|
+
* ========================================================================== */
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 1. Correct table border color in Chrome, Edge, and Safari.
|
|
95
|
+
* 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
:where(table) {
|
|
99
|
+
border-color: currentColor; /* 1 */
|
|
100
|
+
text-indent: 0; /* 2 */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Forms
|
|
104
|
+
* ========================================================================== */
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Remove the margin on controls in Safari.
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
:where(button, input, select) {
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Remove the inheritance of text transform in Firefox.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
:where(button) {
|
|
119
|
+
text-transform: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Correct the inability to style buttons in iOS and Safari.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
:where(button, input:is([type='button' i], [type='reset' i], [type='submit' i])) {
|
|
127
|
+
-webkit-appearance: button;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Add the correct vertical alignment in Chrome, Edge, and Firefox.
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
:where(progress) {
|
|
135
|
+
vertical-align: baseline;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Remove the inheritance of text transform in Firefox.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
:where(select) {
|
|
143
|
+
text-transform: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Remove the margin in Firefox and Safari.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
:where(textarea) {
|
|
151
|
+
margin: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 1. Correct the odd appearance in Chrome, Edge, and Safari.
|
|
156
|
+
* 2. Correct the outline style in Safari.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
:where(input[type='search' i]) {
|
|
160
|
+
-webkit-appearance: textfield; /* 1 */
|
|
161
|
+
outline-offset: -2px; /* 2 */
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Correct the cursor style of increment and decrement buttons in Safari.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
::-webkit-inner-spin-button,
|
|
169
|
+
::-webkit-outer-spin-button {
|
|
170
|
+
height: auto;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
::-webkit-input-placeholder {
|
|
178
|
+
color: inherit;
|
|
179
|
+
opacity: 0.54;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Remove the inner padding in Chrome, Edge, and Safari on macOS.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
::-webkit-search-decoration {
|
|
187
|
+
-webkit-appearance: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* 1. Correct the inability to style upload buttons in iOS and Safari.
|
|
192
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
::-webkit-file-upload-button {
|
|
196
|
+
-webkit-appearance: button; /* 1 */
|
|
197
|
+
font: inherit; /* 2 */
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Remove the inner border and padding of focus outlines in Firefox.
|
|
202
|
+
*/
|
|
203
|
+
|
|
204
|
+
:where(button, input:is([type='button' i], [type='color' i], [type='reset' i], [type='submit' i]))::-moz-focus-inner {
|
|
205
|
+
border-style: none;
|
|
206
|
+
padding: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Restore the focus outline styles unset by the previous rule in Firefox.
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
:where(button, input:is([type='button' i], [type='color' i], [type='reset' i], [type='submit' i]))::-moz-focusring {
|
|
214
|
+
outline: 1px dotted ButtonText;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Remove the additional :invalid styles in Firefox.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
:where(:-moz-ui-invalid) {
|
|
222
|
+
box-shadow: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Interactive
|
|
226
|
+
* ========================================================================== */
|
|
227
|
+
|
|
228
|
+
/*
|
|
229
|
+
* Add the correct styles in Safari.
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
:where(dialog) {
|
|
233
|
+
background-color: white;
|
|
234
|
+
border: solid;
|
|
235
|
+
color: black;
|
|
236
|
+
height: -moz-fit-content;
|
|
237
|
+
height: fit-content;
|
|
238
|
+
left: 0;
|
|
239
|
+
margin: auto;
|
|
240
|
+
padding: 1em;
|
|
241
|
+
position: absolute;
|
|
242
|
+
right: 0;
|
|
243
|
+
width: -moz-fit-content;
|
|
244
|
+
width: fit-content;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:where(dialog:not([open])) {
|
|
248
|
+
display: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/*
|
|
252
|
+
* Add the correct display in all browsers.
|
|
253
|
+
*/
|
|
254
|
+
|
|
255
|
+
:where(summary) {
|
|
256
|
+
display: list-item;
|
|
257
|
+
}
|